consul/proto-public/pbmesh/v2beta1/gatewayclassconfig_json.gen.go

45 lines
1.4 KiB
Go
Raw Normal View History

// 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 GatewayClassConfig
func (this *GatewayClassConfig) MarshalJSON() ([]byte, error) {
str, err := GatewayclassconfigMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for GatewayClassConfig
func (this *GatewayClassConfig) UnmarshalJSON(b []byte) error {
return GatewayclassconfigUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for CopyAnnotations
func (this *CopyAnnotations) MarshalJSON() ([]byte, error) {
str, err := GatewayclassconfigMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CopyAnnotations
func (this *CopyAnnotations) UnmarshalJSON(b []byte) error {
return GatewayclassconfigUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for Deployment
func (this *Deployment) MarshalJSON() ([]byte, error) {
str, err := GatewayclassconfigMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Deployment
func (this *Deployment) UnmarshalJSON(b []byte) error {
return GatewayclassconfigUnmarshaler.Unmarshal(b, this)
}
var (
GatewayclassconfigMarshaler = &protojson.MarshalOptions{}
GatewayclassconfigUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)