-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
route_json.gen.go
187 lines (153 loc) · 5.8 KB
/
route_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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// 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 Route
func (this *Route) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Route
func (this *Route) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for VirtualHost
func (this *VirtualHost) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for VirtualHost
func (this *VirtualHost) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RouteRule
func (this *RouteRule) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteRule
func (this *RouteRule) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RouteMatch
func (this *RouteMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteMatch
func (this *RouteMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for PathMatch
func (this *PathMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for PathMatch
func (this *PathMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for QueryParameterMatch
func (this *QueryParameterMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QueryParameterMatch
func (this *QueryParameterMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HeaderMatch
func (this *HeaderMatch) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HeaderMatch
func (this *HeaderMatch) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RouteDestination
func (this *RouteDestination) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteDestination
func (this *RouteDestination) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for DestinationConfiguration
func (this *DestinationConfiguration) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for DestinationConfiguration
func (this *DestinationConfiguration) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for RetryPolicy
func (this *RetryPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RetryPolicy
func (this *RetryPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for TimeoutConfig
func (this *TimeoutConfig) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for TimeoutConfig
func (this *TimeoutConfig) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for LoadBalancerHashPolicy
func (this *LoadBalancerHashPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LoadBalancerHashPolicy
func (this *LoadBalancerHashPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for CookiePolicy
func (this *CookiePolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CookiePolicy
func (this *CookiePolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HeaderPolicy
func (this *HeaderPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HeaderPolicy
func (this *HeaderPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for QueryParameterPolicy
func (this *QueryParameterPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QueryParameterPolicy
func (this *QueryParameterPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for ConnectionPropertiesPolicy
func (this *ConnectionPropertiesPolicy) MarshalJSON() ([]byte, error) {
str, err := RouteMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ConnectionPropertiesPolicy
func (this *ConnectionPropertiesPolicy) UnmarshalJSON(b []byte) error {
return RouteUnmarshaler.Unmarshal(b, this)
}
var (
RouteMarshaler = &protojson.MarshalOptions{}
RouteUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)