-
Notifications
You must be signed in to change notification settings - Fork 0
/
string.pb.go
221 lines (187 loc) · 7.8 KB
/
string.pb.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/matcher/string.proto
package envoy_type_matcher
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Specifies the way to match a string.
// [#next-free-field: 6]
type StringMatcher struct {
// Types that are valid to be assigned to MatchPattern:
// *StringMatcher_Exact
// *StringMatcher_Prefix
// *StringMatcher_Suffix
// *StringMatcher_Regex
// *StringMatcher_SafeRegex
MatchPattern isStringMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StringMatcher) Reset() { *m = StringMatcher{} }
func (m *StringMatcher) String() string { return proto.CompactTextString(m) }
func (*StringMatcher) ProtoMessage() {}
func (*StringMatcher) Descriptor() ([]byte, []int) {
return fileDescriptor_1dc62c75a0f154e3, []int{0}
}
func (m *StringMatcher) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StringMatcher.Unmarshal(m, b)
}
func (m *StringMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StringMatcher.Marshal(b, m, deterministic)
}
func (m *StringMatcher) XXX_Merge(src proto.Message) {
xxx_messageInfo_StringMatcher.Merge(m, src)
}
func (m *StringMatcher) XXX_Size() int {
return xxx_messageInfo_StringMatcher.Size(m)
}
func (m *StringMatcher) XXX_DiscardUnknown() {
xxx_messageInfo_StringMatcher.DiscardUnknown(m)
}
var xxx_messageInfo_StringMatcher proto.InternalMessageInfo
type isStringMatcher_MatchPattern interface {
isStringMatcher_MatchPattern()
}
type StringMatcher_Exact struct {
Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}
type StringMatcher_Prefix struct {
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}
type StringMatcher_Suffix struct {
Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3,oneof"`
}
type StringMatcher_Regex struct {
Regex string `protobuf:"bytes,4,opt,name=regex,proto3,oneof"`
}
type StringMatcher_SafeRegex struct {
SafeRegex *RegexMatcher `protobuf:"bytes,5,opt,name=safe_regex,json=safeRegex,proto3,oneof"`
}
func (*StringMatcher_Exact) isStringMatcher_MatchPattern() {}
func (*StringMatcher_Prefix) isStringMatcher_MatchPattern() {}
func (*StringMatcher_Suffix) isStringMatcher_MatchPattern() {}
func (*StringMatcher_Regex) isStringMatcher_MatchPattern() {}
func (*StringMatcher_SafeRegex) isStringMatcher_MatchPattern() {}
func (m *StringMatcher) GetMatchPattern() isStringMatcher_MatchPattern {
if m != nil {
return m.MatchPattern
}
return nil
}
func (m *StringMatcher) GetExact() string {
if x, ok := m.GetMatchPattern().(*StringMatcher_Exact); ok {
return x.Exact
}
return ""
}
func (m *StringMatcher) GetPrefix() string {
if x, ok := m.GetMatchPattern().(*StringMatcher_Prefix); ok {
return x.Prefix
}
return ""
}
func (m *StringMatcher) GetSuffix() string {
if x, ok := m.GetMatchPattern().(*StringMatcher_Suffix); ok {
return x.Suffix
}
return ""
}
// Deprecated: Do not use.
func (m *StringMatcher) GetRegex() string {
if x, ok := m.GetMatchPattern().(*StringMatcher_Regex); ok {
return x.Regex
}
return ""
}
func (m *StringMatcher) GetSafeRegex() *RegexMatcher {
if x, ok := m.GetMatchPattern().(*StringMatcher_SafeRegex); ok {
return x.SafeRegex
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*StringMatcher) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*StringMatcher_Exact)(nil),
(*StringMatcher_Prefix)(nil),
(*StringMatcher_Suffix)(nil),
(*StringMatcher_Regex)(nil),
(*StringMatcher_SafeRegex)(nil),
}
}
// Specifies a list of ways to match a string.
type ListStringMatcher struct {
Patterns []*StringMatcher `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListStringMatcher) Reset() { *m = ListStringMatcher{} }
func (m *ListStringMatcher) String() string { return proto.CompactTextString(m) }
func (*ListStringMatcher) ProtoMessage() {}
func (*ListStringMatcher) Descriptor() ([]byte, []int) {
return fileDescriptor_1dc62c75a0f154e3, []int{1}
}
func (m *ListStringMatcher) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListStringMatcher.Unmarshal(m, b)
}
func (m *ListStringMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListStringMatcher.Marshal(b, m, deterministic)
}
func (m *ListStringMatcher) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListStringMatcher.Merge(m, src)
}
func (m *ListStringMatcher) XXX_Size() int {
return xxx_messageInfo_ListStringMatcher.Size(m)
}
func (m *ListStringMatcher) XXX_DiscardUnknown() {
xxx_messageInfo_ListStringMatcher.DiscardUnknown(m)
}
var xxx_messageInfo_ListStringMatcher proto.InternalMessageInfo
func (m *ListStringMatcher) GetPatterns() []*StringMatcher {
if m != nil {
return m.Patterns
}
return nil
}
func init() {
proto.RegisterType((*StringMatcher)(nil), "envoy.type.matcher.StringMatcher")
proto.RegisterType((*ListStringMatcher)(nil), "envoy.type.matcher.ListStringMatcher")
}
func init() { proto.RegisterFile("envoy/type/matcher/string.proto", fileDescriptor_1dc62c75a0f154e3) }
var fileDescriptor_1dc62c75a0f154e3 = []byte{
// 308 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x31, 0x4b, 0xc3, 0x40,
0x14, 0xc7, 0xfb, 0x92, 0xa6, 0xa6, 0xaf, 0x14, 0xf4, 0x10, 0x0d, 0x1d, 0xf4, 0xda, 0x29, 0x53,
0x82, 0xf5, 0x1b, 0xdc, 0x62, 0x41, 0x85, 0x12, 0x57, 0xa1, 0x9c, 0xf5, 0x5a, 0x03, 0x9a, 0x84,
0xcb, 0x59, 0x92, 0xcd, 0xd9, 0xd1, 0xcf, 0xea, 0x20, 0x99, 0xe4, 0xee, 0xa2, 0x50, 0x9a, 0x2d,
0xe1, 0xff, 0xfb, 0xfd, 0xef, 0x3d, 0x1e, 0x5e, 0x8a, 0x6c, 0x97, 0xd7, 0xb1, 0xaa, 0x0b, 0x11,
0xbf, 0x71, 0xb5, 0x7e, 0x11, 0x32, 0x2e, 0x95, 0x4c, 0xb3, 0x6d, 0x54, 0xc8, 0x5c, 0xe5, 0x84,
0x18, 0x20, 0xd2, 0x40, 0xd4, 0x02, 0x93, 0x8b, 0x0e, 0x49, 0x8a, 0xad, 0xa8, 0xac, 0x33, 0x39,
0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