-
Notifications
You must be signed in to change notification settings - Fork 795
/
client_config_json.gen.go
executable file
·82 lines (67 loc) · 2.7 KB
/
client_config_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: mixer/v1/config/client/client_config.proto
// Describes the configuration state for the Mixer client library that's built into Envoy.
package client
import (
bytes "bytes"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
math "math"
_ "mosn.io/mosn/istio/istio1106/mixer/v1"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// MarshalJSON is a custom marshaler for NetworkFailPolicy
func (this *NetworkFailPolicy) MarshalJSON() ([]byte, error) {
str, err := ClientConfigMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for NetworkFailPolicy
func (this *NetworkFailPolicy) UnmarshalJSON(b []byte) error {
return ClientConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for ServiceConfig
func (this *ServiceConfig) MarshalJSON() ([]byte, error) {
str, err := ClientConfigMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ServiceConfig
func (this *ServiceConfig) UnmarshalJSON(b []byte) error {
return ClientConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for TransportConfig
func (this *TransportConfig) MarshalJSON() ([]byte, error) {
str, err := ClientConfigMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for TransportConfig
func (this *TransportConfig) UnmarshalJSON(b []byte) error {
return ClientConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for HttpClientConfig
func (this *HttpClientConfig) MarshalJSON() ([]byte, error) {
str, err := ClientConfigMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HttpClientConfig
func (this *HttpClientConfig) UnmarshalJSON(b []byte) error {
return ClientConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for TcpClientConfig
func (this *TcpClientConfig) MarshalJSON() ([]byte, error) {
str, err := ClientConfigMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for TcpClientConfig
func (this *TcpClientConfig) UnmarshalJSON(b []byte) error {
return ClientConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
var (
ClientConfigMarshaler = &github_com_gogo_protobuf_jsonpb.Marshaler{}
ClientConfigUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)