mirror of
https://github.com/alibaba/higress.git
synced 2026-02-24 04:30:51 +08:00
79 lines
2.4 KiB
Go
79 lines
2.4 KiB
Go
// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
|
|
package v1
|
|
|
|
import (
|
|
bytes "bytes"
|
|
jsonpb "github.com/golang/protobuf/jsonpb"
|
|
)
|
|
|
|
// MarshalJSON is a custom marshaler for Http2Rpc
|
|
func (this *Http2Rpc) MarshalJSON() ([]byte, error) {
|
|
str, err := Http_2RpcMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Http2Rpc
|
|
func (this *Http2Rpc) UnmarshalJSON(b []byte) error {
|
|
return Http_2RpcUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for DubboService
|
|
func (this *DubboService) MarshalJSON() ([]byte, error) {
|
|
str, err := Http_2RpcMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for DubboService
|
|
func (this *DubboService) UnmarshalJSON(b []byte) error {
|
|
return Http_2RpcUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for Method
|
|
func (this *Method) MarshalJSON() ([]byte, error) {
|
|
str, err := Http_2RpcMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Method
|
|
func (this *Method) UnmarshalJSON(b []byte) error {
|
|
return Http_2RpcUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for Param
|
|
func (this *Param) MarshalJSON() ([]byte, error) {
|
|
str, err := Http_2RpcMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Param
|
|
func (this *Param) UnmarshalJSON(b []byte) error {
|
|
return Http_2RpcUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for ParamFromEntireBody
|
|
func (this *ParamFromEntireBody) MarshalJSON() ([]byte, error) {
|
|
str, err := Http_2RpcMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for ParamFromEntireBody
|
|
func (this *ParamFromEntireBody) UnmarshalJSON(b []byte) error {
|
|
return Http_2RpcUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for GrpcService
|
|
func (this *GrpcService) MarshalJSON() ([]byte, error) {
|
|
str, err := Http_2RpcMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for GrpcService
|
|
func (this *GrpcService) UnmarshalJSON(b []byte) error {
|
|
return Http_2RpcUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
var (
|
|
Http_2RpcMarshaler = &jsonpb.Marshaler{}
|
|
Http_2RpcUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
|
|
)
|