mirror of https://github.com/status-im/consul.git
45 lines
1.6 KiB
Go
45 lines
1.6 KiB
Go
|
// Code generated by protoc-json-shim. DO NOT EDIT.
|
||
|
package multiclusterv2beta1
|
||
|
|
||
|
import (
|
||
|
protojson "google.golang.org/protobuf/encoding/protojson"
|
||
|
)
|
||
|
|
||
|
// MarshalJSON is a custom marshaler for ComputedExportedServices
|
||
|
func (this *ComputedExportedServices) MarshalJSON() ([]byte, error) {
|
||
|
str, err := ComputedExportedServicesMarshaler.Marshal(this)
|
||
|
return []byte(str), err
|
||
|
}
|
||
|
|
||
|
// UnmarshalJSON is a custom unmarshaler for ComputedExportedServices
|
||
|
func (this *ComputedExportedServices) UnmarshalJSON(b []byte) error {
|
||
|
return ComputedExportedServicesUnmarshaler.Unmarshal(b, this)
|
||
|
}
|
||
|
|
||
|
// MarshalJSON is a custom marshaler for ComputedExportedService
|
||
|
func (this *ComputedExportedService) MarshalJSON() ([]byte, error) {
|
||
|
str, err := ComputedExportedServicesMarshaler.Marshal(this)
|
||
|
return []byte(str), err
|
||
|
}
|
||
|
|
||
|
// UnmarshalJSON is a custom unmarshaler for ComputedExportedService
|
||
|
func (this *ComputedExportedService) UnmarshalJSON(b []byte) error {
|
||
|
return ComputedExportedServicesUnmarshaler.Unmarshal(b, this)
|
||
|
}
|
||
|
|
||
|
// MarshalJSON is a custom marshaler for ComputedExportedServicesConsumer
|
||
|
func (this *ComputedExportedServicesConsumer) MarshalJSON() ([]byte, error) {
|
||
|
str, err := ComputedExportedServicesMarshaler.Marshal(this)
|
||
|
return []byte(str), err
|
||
|
}
|
||
|
|
||
|
// UnmarshalJSON is a custom unmarshaler for ComputedExportedServicesConsumer
|
||
|
func (this *ComputedExportedServicesConsumer) UnmarshalJSON(b []byte) error {
|
||
|
return ComputedExportedServicesUnmarshaler.Unmarshal(b, this)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
ComputedExportedServicesMarshaler = &protojson.MarshalOptions{}
|
||
|
ComputedExportedServicesUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
||
|
)
|