consul/proto-public/pbmulticluster/v2/sameness_group_json.gen.go

34 lines
1.0 KiB
Go
Raw Normal View History

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