2023-10-13 14:55:58 +00:00
|
|
|
// Code generated by protoc-json-shim. DO NOT EDIT.
|
2023-10-16 21:43:47 +00:00
|
|
|
package tenancyv2beta1
|
2023-10-13 14:55:58 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
protojson "google.golang.org/protobuf/encoding/protojson"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MarshalJSON is a custom marshaler for Namespace
|
|
|
|
func (this *Namespace) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := NamespaceMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Namespace
|
|
|
|
func (this *Namespace) UnmarshalJSON(b []byte) error {
|
|
|
|
return NamespaceUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
NamespaceMarshaler = &protojson.MarshalOptions{}
|
|
|
|
NamespaceUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
|
|
|
)
|