consul/proto-public/pbresource/annotations_json.gen.go

23 lines
655 B
Go

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