mirror of https://github.com/hashicorp/consul
45 lines
1.4 KiB
Go
45 lines
1.4 KiB
Go
// 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}
|
|
)
|