You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/proto-public/pbmulticluster/v2beta1/sameness_group_json.gen.go

34 lines
1.0 KiB

// Code generated by protoc-json-shim. DO NOT EDIT.
package multiclusterv2beta1
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}
)