Debian Codegraph @

go/xds/type/matcher/v3/string.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.10
4 // protoc v5.29.3
5 // source: xds/type/matcher/v3/string.proto
6
7 package v3
8
9 import (
10 v3 "github.com/cncf/xds/go/xds/core/v3"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 type StringMatcher struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 // Types that are valid to be assigned to MatchPattern:
29 //
30 // *StringMatcher_Exact
31 // *StringMatcher_Prefix
32 // *StringMatcher_Suffix
33 // *StringMatcher_SafeRegex
34 // *StringMatcher_Contains
35 // *StringMatcher_Custom
36 MatchPattern isStringMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
37 IgnoreCase bool `protobuf:"varint,6,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"`
38 unknownFields protoimpl.UnknownFields
39 sizeCache protoimpl.SizeCache
40 }
41
42 func (x *StringMatcher) Reset() {
43 *x = StringMatcher{}
44 mi := &file_xds_type_matcher_v3_string_proto_msgTypes[0]
45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46 ms.StoreMessageInfo(mi)
47 }
48
49 func (x *StringMatcher) String() string {
50 return protoimpl.X.MessageStringOf(x)
51 }
52
53 func (*StringMatcher) ProtoMessage() {}
54
55 func (x *StringMatcher) ProtoReflect() protoreflect.Message {
56 mi := &file_xds_type_matcher_v3_string_proto_msgTypes[0]
57 if x != nil {
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 if ms.LoadMessageInfo() == nil {
60 ms.StoreMessageInfo(mi)
61 }
62 return ms
63 }
64 return mi.MessageOf(x)
65 }
66
67 // Deprecated: Use StringMatcher.ProtoReflect.Descriptor instead.
68 func (*StringMatcher) Descriptor() ([]byte, []int) {
69 return file_xds_type_matcher_v3_string_proto_rawDescGZIP(), []int{0}
70 }
71
72 func (x *StringMatcher) GetMatchPattern() isStringMatcher_MatchPattern {
73 if x != nil {
74 return x.MatchPattern
75 }
76 return nil
77 }
78
79 func (x *StringMatcher) GetExact() string {
80 if x != nil {
81 if x, ok := x.MatchPattern.(*StringMatcher_Exact); ok {
82 return x.Exact
83 }
84 }
85 return ""
86 }
87
88 func (x *StringMatcher) GetPrefix() string {
89 if x != nil {
90 if x, ok := x.MatchPattern.(*StringMatcher_Prefix); ok {
91 return x.Prefix
92 }
93 }
94 return ""
95 }
96
97 func (x *StringMatcher) GetSuffix() string {
98 if x != nil {
99 if x, ok := x.MatchPattern.(*StringMatcher_Suffix); ok {
100 return x.Suffix
101 }
102 }
103 return ""
104 }
105
106 func (x *StringMatcher) GetSafeRegex() *RegexMatcher {
107 if x != nil {
108 if x, ok := x.MatchPattern.(*StringMatcher_SafeRegex); ok {
109 return x.SafeRegex
110 }
111 }
112 return nil
113 }
114
115 func (x *StringMatcher) GetContains() string {
116 if x != nil {
117 if x, ok := x.MatchPattern.(*StringMatcher_Contains); ok {
118 return x.Contains
119 }
120 }
121 return ""
122 }
123
124 func (x *StringMatcher) GetCustom() *v3.TypedExtensionConfig {
125 if x != nil {
126 if x, ok := x.MatchPattern.(*StringMatcher_Custom); ok {
127 return x.Custom
128 }
129 }
130 return nil
131 }
132
133 func (x *StringMatcher) GetIgnoreCase() bool {
134 if x != nil {
135 return x.IgnoreCase
136 }
137 return false
138 }
139
140 type isStringMatcher_MatchPattern interface {
141 isStringMatcher_MatchPattern()
142 }
143
144 type StringMatcher_Exact struct {
145 Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
146 }
147
148 type StringMatcher_Prefix struct {
149 Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
150 }
151
152 type StringMatcher_Suffix struct {
153 Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3,oneof"`
154 }
155
156 type StringMatcher_SafeRegex struct {
157 SafeRegex *RegexMatcher `protobuf:"bytes,5,opt,name=safe_regex,json=safeRegex,proto3,oneof"`
158 }
159
160 type StringMatcher_Contains struct {
161 Contains string `protobuf:"bytes,7,opt,name=contains,proto3,oneof"`
162 }
163
164 type StringMatcher_Custom struct {
165 Custom *v3.TypedExtensionConfig `protobuf:"bytes,8,opt,name=custom,proto3,oneof"`
166 }
167
168 func (*StringMatcher_Exact) isStringMatcher_MatchPattern() {}
169
170 func (*StringMatcher_Prefix) isStringMatcher_MatchPattern() {}
171
172 func (*StringMatcher_Suffix) isStringMatcher_MatchPattern() {}
173
174 func (*StringMatcher_SafeRegex) isStringMatcher_MatchPattern() {}
175
176 func (*StringMatcher_Contains) isStringMatcher_MatchPattern() {}
177
178 func (*StringMatcher_Custom) isStringMatcher_MatchPattern() {}
179
180 type ListStringMatcher struct {
181 state protoimpl.MessageState `protogen:"open.v1"`
182 Patterns []*StringMatcher `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
183 unknownFields protoimpl.UnknownFields
184 sizeCache protoimpl.SizeCache
185 }
186
187 func (x *ListStringMatcher) Reset() {
188 *x = ListStringMatcher{}
189 mi := &file_xds_type_matcher_v3_string_proto_msgTypes[1]
190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
191 ms.StoreMessageInfo(mi)
192 }
193
194 func (x *ListStringMatcher) String() string {
195 return protoimpl.X.MessageStringOf(x)
196 }
197
198 func (*ListStringMatcher) ProtoMessage() {}
199
200 func (x *ListStringMatcher) ProtoReflect() protoreflect.Message {
201 mi := &file_xds_type_matcher_v3_string_proto_msgTypes[1]
202 if x != nil {
203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204 if ms.LoadMessageInfo() == nil {
205 ms.StoreMessageInfo(mi)
206 }
207 return ms
208 }
209 return mi.MessageOf(x)
210 }
211
212 // Deprecated: Use ListStringMatcher.ProtoReflect.Descriptor instead.
213 func (*ListStringMatcher) Descriptor() ([]byte, []int) {
214 return file_xds_type_matcher_v3_string_proto_rawDescGZIP(), []int{1}
215 }
216
217 func (x *ListStringMatcher) GetPatterns() []*StringMatcher {
218 if x != nil {
219 return x.Patterns
220 }
221 return nil
222 }
223
224 var File_xds_type_matcher_v3_string_proto protoreflect.FileDescriptor
225
226 const file_xds_type_matcher_v3_string_proto_rawDesc = "" +
227 "\n" +
228 " xds/type/matcher/v3/string.proto\x12\x13xds.type.matcher.v3\x1a\x1bxds/core/v3/extension.proto\x1a\x1fxds/type/matcher/v3/regex.proto\x1a\x17validate/validate.proto\"\xd6\x02\n" +
229 "\rStringMatcher\x12\x16\n" +
230 "\x05exact\x18\x01 \x01(\tH\x00R\x05exact\x12!\n" +
231 "\x06prefix\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01H\x00R\x06prefix\x12!\n" +
232 "\x06suffix\x18\x03 \x01(\tB\a\xfaB\x04r\x02\x10\x01H\x00R\x06suffix\x12L\n" +
233 "\n" +
234 "safe_regex\x18\x05 \x01(\v2!.xds.type.matcher.v3.RegexMatcherB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\tsafeRegex\x12%\n" +
235 "\bcontains\x18\a \x01(\tB\a\xfaB\x04r\x02\x10\x01H\x00R\bcontains\x12;\n" +
236 "\x06custom\x18\b \x01(\v2!.xds.core.v3.TypedExtensionConfigH\x00R\x06custom\x12\x1f\n" +
237 "\vignore_case\x18\x06 \x01(\bR\n" +
238 "ignoreCaseB\x14\n" +
239 "\rmatch_pattern\x12\x03\xf8B\x01\"]\n" +
240 "\x11ListStringMatcher\x12H\n" +
241 "\bpatterns\x18\x01 \x03(\v2\".xds.type.matcher.v3.StringMatcherB\b\xfaB\x05\x92\x01\x02\b\x01R\bpatternsB[\n" +
242 "\x1ecom.github.xds.type.matcher.v3B\vStringProtoP\x01Z*github.com/cncf/xds/go/xds/type/matcher/v3b\x06proto3"
243
244 var (
245 file_xds_type_matcher_v3_string_proto_rawDescOnce sync.Once
246 file_xds_type_matcher_v3_string_proto_rawDescData []byte
247 )
248
249 func file_xds_type_matcher_v3_string_proto_rawDescGZIP() []byte {
250 file_xds_type_matcher_v3_string_proto_rawDescOnce.Do(func() {
251 file_xds_type_matcher_v3_string_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_string_proto_rawDesc), len(file_xds_type_matcher_v3_string_proto_rawDesc)))
252 })
253 return file_xds_type_matcher_v3_string_proto_rawDescData
254 }
255
256 var file_xds_type_matcher_v3_string_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
257 var file_xds_type_matcher_v3_string_proto_goTypes = []any{
258 (*StringMatcher)(nil), // 0: xds.type.matcher.v3.StringMatcher
259 (*ListStringMatcher)(nil), // 1: xds.type.matcher.v3.ListStringMatcher
260 (*RegexMatcher)(nil), // 2: xds.type.matcher.v3.RegexMatcher
261 (*v3.TypedExtensionConfig)(nil), // 3: xds.core.v3.TypedExtensionConfig
262 }
263 var file_xds_type_matcher_v3_string_proto_depIdxs = []int32{
264 2, // 0: xds.type.matcher.v3.StringMatcher.safe_regex:type_name -> xds.type.matcher.v3.RegexMatcher
265 3, // 1: xds.type.matcher.v3.StringMatcher.custom:type_name -> xds.core.v3.TypedExtensionConfig
266 0, // 2: xds.type.matcher.v3.ListStringMatcher.patterns:type_name -> xds.type.matcher.v3.StringMatcher
267 3, // [3:3] is the sub-list for method output_type
268 3, // [3:3] is the sub-list for method input_type
269 3, // [3:3] is the sub-list for extension type_name
270 3, // [3:3] is the sub-list for extension extendee
271 0, // [0:3] is the sub-list for field type_name
272 }
273
274 func init() { file_xds_type_matcher_v3_string_proto_init() }
275 func file_xds_type_matcher_v3_string_proto_init() {
276 if File_xds_type_matcher_v3_string_proto != nil {
277 return
278 }
279 file_xds_type_matcher_v3_regex_proto_init()
280 file_xds_type_matcher_v3_string_proto_msgTypes[0].OneofWrappers = []any{
281 (*StringMatcher_Exact)(nil),
282 (*StringMatcher_Prefix)(nil),
283 (*StringMatcher_Suffix)(nil),
284 (*StringMatcher_SafeRegex)(nil),
285 (*StringMatcher_Contains)(nil),
286 (*StringMatcher_Custom)(nil),
287 }
288 type x struct{}
289 out := protoimpl.TypeBuilder{
290 File: protoimpl.DescBuilder{
291 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
292 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_string_proto_rawDesc), len(file_xds_type_matcher_v3_string_proto_rawDesc)),
293 NumEnums: 0,
294 NumMessages: 2,
295 NumExtensions: 0,
296 NumServices: 0,
297 },
298 GoTypes: file_xds_type_matcher_v3_string_proto_goTypes,
299 DependencyIndexes: file_xds_type_matcher_v3_string_proto_depIdxs,
300 MessageInfos: file_xds_type_matcher_v3_string_proto_msgTypes,
301 }.Build()
302 File_xds_type_matcher_v3_string_proto = out.File
303 file_xds_type_matcher_v3_string_proto_goTypes = nil
304 file_xds_type_matcher_v3_string_proto_depIdxs = nil
305 }