// Code generated by protoc-json-shim. DO NOT EDIT. package meshv2beta1 import ( protojson "google.golang.org/protobuf/encoding/protojson" ) // MarshalJSON is a custom marshaler for TCPRoute func (this *TCPRoute) MarshalJSON() ([]byte, error) { str, err := TcpRouteMarshaler.Marshal(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for TCPRoute func (this *TCPRoute) UnmarshalJSON(b []byte) error { return TcpRouteUnmarshaler.Unmarshal(b, this) } // MarshalJSON is a custom marshaler for TCPRouteRule func (this *TCPRouteRule) MarshalJSON() ([]byte, error) { str, err := TcpRouteMarshaler.Marshal(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for TCPRouteRule func (this *TCPRouteRule) UnmarshalJSON(b []byte) error { return TcpRouteUnmarshaler.Unmarshal(b, this) } // MarshalJSON is a custom marshaler for TCPBackendRef func (this *TCPBackendRef) MarshalJSON() ([]byte, error) { str, err := TcpRouteMarshaler.Marshal(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for TCPBackendRef func (this *TCPBackendRef) UnmarshalJSON(b []byte) error { return TcpRouteUnmarshaler.Unmarshal(b, this) } var ( TcpRouteMarshaler = &protojson.MarshalOptions{} TcpRouteUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )