mirror of
https://github.com/alibaba/higress.git
synced 2026-02-25 13:10:50 +08:00
35 lines
1012 B
Go
35 lines
1012 B
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 McpBridge
|
|
func (this *McpBridge) MarshalJSON() ([]byte, error) {
|
|
str, err := McpBridgeMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for McpBridge
|
|
func (this *McpBridge) UnmarshalJSON(b []byte) error {
|
|
return McpBridgeUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for RegistryConfig
|
|
func (this *RegistryConfig) MarshalJSON() ([]byte, error) {
|
|
str, err := McpBridgeMarshaler.MarshalToString(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for RegistryConfig
|
|
func (this *RegistryConfig) UnmarshalJSON(b []byte) error {
|
|
return McpBridgeUnmarshaler.Unmarshal(bytes.NewReader(b), this)
|
|
}
|
|
|
|
var (
|
|
McpBridgeMarshaler = &jsonpb.Marshaler{}
|
|
McpBridgeUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
|
|
)
|