Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

165 lines
5.7 KiB

// Code generated by protoc-json-shim. DO NOT EDIT.
package meshv2beta1
import (
protojson "google.golang.org/protobuf/encoding/protojson"
)
// MarshalJSON is a custom marshaler for ComputedRoutes
func (this *ComputedRoutes) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedRoutes
func (this *ComputedRoutes) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedPortRoutes
func (this *ComputedPortRoutes) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedPortRoutes
func (this *ComputedPortRoutes) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedHTTPRoute
func (this *ComputedHTTPRoute) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedHTTPRoute
func (this *ComputedHTTPRoute) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedHTTPRouteRule
func (this *ComputedHTTPRouteRule) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedHTTPRouteRule
func (this *ComputedHTTPRouteRule) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedHTTPBackendRef
func (this *ComputedHTTPBackendRef) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedHTTPBackendRef
func (this *ComputedHTTPBackendRef) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedGRPCRoute
func (this *ComputedGRPCRoute) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedGRPCRoute
func (this *ComputedGRPCRoute) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedGRPCRouteRule
func (this *ComputedGRPCRouteRule) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedGRPCRouteRule
func (this *ComputedGRPCRouteRule) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedGRPCBackendRef
func (this *ComputedGRPCBackendRef) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedGRPCBackendRef
func (this *ComputedGRPCBackendRef) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedTCPRoute
func (this *ComputedTCPRoute) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedTCPRoute
func (this *ComputedTCPRoute) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedTCPRouteRule
func (this *ComputedTCPRouteRule) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedTCPRouteRule
func (this *ComputedTCPRouteRule) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedTCPBackendRef
func (this *ComputedTCPBackendRef) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedTCPBackendRef
func (this *ComputedTCPBackendRef) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for BackendTargetDetails
func (this *BackendTargetDetails) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for BackendTargetDetails
func (this *BackendTargetDetails) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedFailoverConfig
func (this *ComputedFailoverConfig) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedFailoverConfig
func (this *ComputedFailoverConfig) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ComputedFailoverDestination
func (this *ComputedFailoverDestination) MarshalJSON() ([]byte, error) {
str, err := ComputedRoutesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ComputedFailoverDestination
func (this *ComputedFailoverDestination) UnmarshalJSON(b []byte) error {
return ComputedRoutesUnmarshaler.Unmarshal(b, this)
}
var (
ComputedRoutesMarshaler = &protojson.MarshalOptions{}
ComputedRoutesUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)