mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
fd1d97c334
* add build tags/import k8s specific proto packages * fix generated import paths * fix gomod linting issue * mod tidy every go mod file * revert protobuff version, take care of in different pr * cleaned up new lines * added newline to end of file
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}
|
|
)
|