/
references_json.gen.go
44 lines (36 loc) · 1.34 KB
/
references_json.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// 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 LeafCertificateRef
func (this *LeafCertificateRef) MarshalJSON() ([]byte, error) {
str, err := ReferencesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LeafCertificateRef
func (this *LeafCertificateRef) UnmarshalJSON(b []byte) error {
return ReferencesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for TrustBundleRef
func (this *TrustBundleRef) MarshalJSON() ([]byte, error) {
str, err := ReferencesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for TrustBundleRef
func (this *TrustBundleRef) UnmarshalJSON(b []byte) error {
return ReferencesUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for EndpointRef
func (this *EndpointRef) MarshalJSON() ([]byte, error) {
str, err := ReferencesMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for EndpointRef
func (this *EndpointRef) UnmarshalJSON(b []byte) error {
return ReferencesUnmarshaler.Unmarshal(b, this)
}
var (
ReferencesMarshaler = &protojson.MarshalOptions{}
ReferencesUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)