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

188 lines
5.8 KiB
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 Route
func (this *Route) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Route
func (this *Route) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for VirtualHost
func (this *VirtualHost) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for VirtualHost
func (this *VirtualHost) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RouteRule
func (this *RouteRule) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteRule
func (this *RouteRule) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RouteMatch
func (this *RouteMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteMatch
func (this *RouteMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for PathMatch
func (this *PathMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for PathMatch
func (this *PathMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for QueryParameterMatch
func (this *QueryParameterMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QueryParameterMatch
func (this *QueryParameterMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HeaderMatch
func (this *HeaderMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HeaderMatch
func (this *HeaderMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RouteDestination
func (this *RouteDestination) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteDestination
func (this *RouteDestination) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for DestinationConfiguration
func (this *DestinationConfiguration) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for DestinationConfiguration
func (this *DestinationConfiguration) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RetryPolicy
func (this *RetryPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RetryPolicy
func (this *RetryPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for TimeoutConfig
func (this *TimeoutConfig) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for TimeoutConfig
func (this *TimeoutConfig) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for LoadBalancerHashPolicy
func (this *LoadBalancerHashPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LoadBalancerHashPolicy
func (this *LoadBalancerHashPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for CookiePolicy
func (this *CookiePolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CookiePolicy
func (this *CookiePolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HeaderPolicy
func (this *HeaderPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HeaderPolicy
func (this *HeaderPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for QueryParameterPolicy
func (this *QueryParameterPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QueryParameterPolicy
func (this *QueryParameterPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ConnectionPropertiesPolicy
func (this *ConnectionPropertiesPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ConnectionPropertiesPolicy
func (this *ConnectionPropertiesPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
var (
RouteMarshaler = &protojson.MarshalOptions{}
RouteUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)