2023-10-13 14:55:58 +00:00
|
|
|
// Code generated by protoc-json-shim. DO NOT EDIT.
|
|
|
|
package catalogv2beta1
|
|
|
|
|
|
|
|
import (
|
|
|
|
protojson "google.golang.org/protobuf/encoding/protojson"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MarshalJSON is a custom marshaler for Workload
|
|
|
|
func (this *Workload) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := WorkloadMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Workload
|
|
|
|
func (this *Workload) UnmarshalJSON(b []byte) error {
|
|
|
|
return WorkloadUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON is a custom marshaler for WorkloadAddress
|
|
|
|
func (this *WorkloadAddress) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := WorkloadMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for WorkloadAddress
|
|
|
|
func (this *WorkloadAddress) UnmarshalJSON(b []byte) error {
|
|
|
|
return WorkloadUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON is a custom marshaler for WorkloadPort
|
|
|
|
func (this *WorkloadPort) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := WorkloadMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for WorkloadPort
|
|
|
|
func (this *WorkloadPort) UnmarshalJSON(b []byte) error {
|
|
|
|
return WorkloadUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON is a custom marshaler for Locality
|
|
|
|
func (this *Locality) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := WorkloadMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Locality
|
|
|
|
func (this *Locality) UnmarshalJSON(b []byte) error {
|
|
|
|
return WorkloadUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
2024-01-18 16:37:42 +00:00
|
|
|
// MarshalJSON is a custom marshaler for DNSPolicy
|
|
|
|
func (this *DNSPolicy) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := WorkloadMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for DNSPolicy
|
|
|
|
func (this *DNSPolicy) UnmarshalJSON(b []byte) error {
|
|
|
|
return WorkloadUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON is a custom marshaler for Weights
|
|
|
|
func (this *Weights) MarshalJSON() ([]byte, error) {
|
|
|
|
str, err := WorkloadMarshaler.Marshal(this)
|
|
|
|
return []byte(str), err
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for Weights
|
|
|
|
func (this *Weights) UnmarshalJSON(b []byte) error {
|
|
|
|
return WorkloadUnmarshaler.Unmarshal(b, this)
|
|
|
|
}
|
|
|
|
|
2023-10-13 14:55:58 +00:00
|
|
|
var (
|
|
|
|
WorkloadMarshaler = &protojson.MarshalOptions{}
|
|
|
|
WorkloadUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
|
|
|
)
|