/
ca_json.gen.go
34 lines (28 loc) · 1.05 KB
/
ca_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
// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
package v1alpha1
import (
bytes "bytes"
jsonpb "github.com/golang/protobuf/jsonpb"
)
// MarshalJSON is a custom marshaler for IstioCertificateRequest
func (this *IstioCertificateRequest) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for IstioCertificateRequest
func (this *IstioCertificateRequest) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for IstioCertificateResponse
func (this *IstioCertificateResponse) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for IstioCertificateResponse
func (this *IstioCertificateResponse) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
var (
CaMarshaler = &jsonpb.Marshaler{}
CaUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)