consul/proto-public/pbmesh/v2beta1/pbproxystate/escape_hatches_json.gen.go

23 lines
653 B
Go

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