mirror of https://github.com/status-im/consul.git
34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
|
// 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}
|
||
|
)
|