Debian Codegraph @

go/xds/type/matcher/v3/matcher.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/matcher.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 Matcher struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 // Types that are valid to be assigned to MatcherType:
29 //
30 // *Matcher_MatcherList_
31 // *Matcher_MatcherTree_
32 MatcherType isMatcher_MatcherType `protobuf_oneof:"matcher_type"`
33 OnNoMatch *Matcher_OnMatch `protobuf:"bytes,3,opt,name=on_no_match,json=onNoMatch,proto3" json:"on_no_match,omitempty"`
34 unknownFields protoimpl.UnknownFields
35 sizeCache protoimpl.SizeCache
36 }
37
38 func (x *Matcher) Reset() {
39 *x = Matcher{}
40 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[0]
41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42 ms.StoreMessageInfo(mi)
43 }
44
45 func (x *Matcher) String() string {
46 return protoimpl.X.MessageStringOf(x)
47 }
48
49 func (*Matcher) ProtoMessage() {}
50
51 func (x *Matcher) ProtoReflect() protoreflect.Message {
52 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[0]
53 if x != nil {
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 if ms.LoadMessageInfo() == nil {
56 ms.StoreMessageInfo(mi)
57 }
58 return ms
59 }
60 return mi.MessageOf(x)
61 }
62
63 // Deprecated: Use Matcher.ProtoReflect.Descriptor instead.
64 func (*Matcher) Descriptor() ([]byte, []int) {
65 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0}
66 }
67
68 func (x *Matcher) GetMatcherType() isMatcher_MatcherType {
69 if x != nil {
70 return x.MatcherType
71 }
72 return nil
73 }
74
75 func (x *Matcher) GetMatcherList() *Matcher_MatcherList {
76 if x != nil {
77 if x, ok := x.MatcherType.(*Matcher_MatcherList_); ok {
78 return x.MatcherList
79 }
80 }
81 return nil
82 }
83
84 func (x *Matcher) GetMatcherTree() *Matcher_MatcherTree {
85 if x != nil {
86 if x, ok := x.MatcherType.(*Matcher_MatcherTree_); ok {
87 return x.MatcherTree
88 }
89 }
90 return nil
91 }
92
93 func (x *Matcher) GetOnNoMatch() *Matcher_OnMatch {
94 if x != nil {
95 return x.OnNoMatch
96 }
97 return nil
98 }
99
100 type isMatcher_MatcherType interface {
101 isMatcher_MatcherType()
102 }
103
104 type Matcher_MatcherList_ struct {
105 MatcherList *Matcher_MatcherList `protobuf:"bytes,1,opt,name=matcher_list,json=matcherList,proto3,oneof"`
106 }
107
108 type Matcher_MatcherTree_ struct {
109 MatcherTree *Matcher_MatcherTree `protobuf:"bytes,2,opt,name=matcher_tree,json=matcherTree,proto3,oneof"`
110 }
111
112 func (*Matcher_MatcherList_) isMatcher_MatcherType() {}
113
114 func (*Matcher_MatcherTree_) isMatcher_MatcherType() {}
115
116 type Matcher_OnMatch struct {
117 state protoimpl.MessageState `protogen:"open.v1"`
118 // Types that are valid to be assigned to OnMatch:
119 //
120 // *Matcher_OnMatch_Matcher
121 // *Matcher_OnMatch_Action
122 OnMatch isMatcher_OnMatch_OnMatch `protobuf_oneof:"on_match"`
123 KeepMatching bool `protobuf:"varint,3,opt,name=keep_matching,json=keepMatching,proto3" json:"keep_matching,omitempty"`
124 unknownFields protoimpl.UnknownFields
125 sizeCache protoimpl.SizeCache
126 }
127
128 func (x *Matcher_OnMatch) Reset() {
129 *x = Matcher_OnMatch{}
130 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[1]
131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132 ms.StoreMessageInfo(mi)
133 }
134
135 func (x *Matcher_OnMatch) String() string {
136 return protoimpl.X.MessageStringOf(x)
137 }
138
139 func (*Matcher_OnMatch) ProtoMessage() {}
140
141 func (x *Matcher_OnMatch) ProtoReflect() protoreflect.Message {
142 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[1]
143 if x != nil {
144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
145 if ms.LoadMessageInfo() == nil {
146 ms.StoreMessageInfo(mi)
147 }
148 return ms
149 }
150 return mi.MessageOf(x)
151 }
152
153 // Deprecated: Use Matcher_OnMatch.ProtoReflect.Descriptor instead.
154 func (*Matcher_OnMatch) Descriptor() ([]byte, []int) {
155 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 0}
156 }
157
158 func (x *Matcher_OnMatch) GetOnMatch() isMatcher_OnMatch_OnMatch {
159 if x != nil {
160 return x.OnMatch
161 }
162 return nil
163 }
164
165 func (x *Matcher_OnMatch) GetMatcher() *Matcher {
166 if x != nil {
167 if x, ok := x.OnMatch.(*Matcher_OnMatch_Matcher); ok {
168 return x.Matcher
169 }
170 }
171 return nil
172 }
173
174 func (x *Matcher_OnMatch) GetAction() *v3.TypedExtensionConfig {
175 if x != nil {
176 if x, ok := x.OnMatch.(*Matcher_OnMatch_Action); ok {
177 return x.Action
178 }
179 }
180 return nil
181 }
182
183 func (x *Matcher_OnMatch) GetKeepMatching() bool {
184 if x != nil {
185 return x.KeepMatching
186 }
187 return false
188 }
189
190 type isMatcher_OnMatch_OnMatch interface {
191 isMatcher_OnMatch_OnMatch()
192 }
193
194 type Matcher_OnMatch_Matcher struct {
195 Matcher *Matcher `protobuf:"bytes,1,opt,name=matcher,proto3,oneof"`
196 }
197
198 type Matcher_OnMatch_Action struct {
199 Action *v3.TypedExtensionConfig `protobuf:"bytes,2,opt,name=action,proto3,oneof"`
200 }
201
202 func (*Matcher_OnMatch_Matcher) isMatcher_OnMatch_OnMatch() {}
203
204 func (*Matcher_OnMatch_Action) isMatcher_OnMatch_OnMatch() {}
205
206 type Matcher_MatcherList struct {
207 state protoimpl.MessageState `protogen:"open.v1"`
208 Matchers []*Matcher_MatcherList_FieldMatcher `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"`
209 unknownFields protoimpl.UnknownFields
210 sizeCache protoimpl.SizeCache
211 }
212
213 func (x *Matcher_MatcherList) Reset() {
214 *x = Matcher_MatcherList{}
215 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[2]
216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217 ms.StoreMessageInfo(mi)
218 }
219
220 func (x *Matcher_MatcherList) String() string {
221 return protoimpl.X.MessageStringOf(x)
222 }
223
224 func (*Matcher_MatcherList) ProtoMessage() {}
225
226 func (x *Matcher_MatcherList) ProtoReflect() protoreflect.Message {
227 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[2]
228 if x != nil {
229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230 if ms.LoadMessageInfo() == nil {
231 ms.StoreMessageInfo(mi)
232 }
233 return ms
234 }
235 return mi.MessageOf(x)
236 }
237
238 // Deprecated: Use Matcher_MatcherList.ProtoReflect.Descriptor instead.
239 func (*Matcher_MatcherList) Descriptor() ([]byte, []int) {
240 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 1}
241 }
242
243 func (x *Matcher_MatcherList) GetMatchers() []*Matcher_MatcherList_FieldMatcher {
244 if x != nil {
245 return x.Matchers
246 }
247 return nil
248 }
249
250 type Matcher_MatcherTree struct {
251 state protoimpl.MessageState `protogen:"open.v1"`
252 Input *v3.TypedExtensionConfig `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
253 // Types that are valid to be assigned to TreeType:
254 //
255 // *Matcher_MatcherTree_ExactMatchMap
256 // *Matcher_MatcherTree_PrefixMatchMap
257 // *Matcher_MatcherTree_CustomMatch
258 TreeType isMatcher_MatcherTree_TreeType `protobuf_oneof:"tree_type"`
259 unknownFields protoimpl.UnknownFields
260 sizeCache protoimpl.SizeCache
261 }
262
263 func (x *Matcher_MatcherTree) Reset() {
264 *x = Matcher_MatcherTree{}
265 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[3]
266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
267 ms.StoreMessageInfo(mi)
268 }
269
270 func (x *Matcher_MatcherTree) String() string {
271 return protoimpl.X.MessageStringOf(x)
272 }
273
274 func (*Matcher_MatcherTree) ProtoMessage() {}
275
276 func (x *Matcher_MatcherTree) ProtoReflect() protoreflect.Message {
277 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[3]
278 if x != nil {
279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
280 if ms.LoadMessageInfo() == nil {
281 ms.StoreMessageInfo(mi)
282 }
283 return ms
284 }
285 return mi.MessageOf(x)
286 }
287
288 // Deprecated: Use Matcher_MatcherTree.ProtoReflect.Descriptor instead.
289 func (*Matcher_MatcherTree) Descriptor() ([]byte, []int) {
290 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 2}
291 }
292
293 func (x *Matcher_MatcherTree) GetInput() *v3.TypedExtensionConfig {
294 if x != nil {
295 return x.Input
296 }
297 return nil
298 }
299
300 func (x *Matcher_MatcherTree) GetTreeType() isMatcher_MatcherTree_TreeType {
301 if x != nil {
302 return x.TreeType
303 }
304 return nil
305 }
306
307 func (x *Matcher_MatcherTree) GetExactMatchMap() *Matcher_MatcherTree_MatchMap {
308 if x != nil {
309 if x, ok := x.TreeType.(*Matcher_MatcherTree_ExactMatchMap); ok {
310 return x.ExactMatchMap
311 }
312 }
313 return nil
314 }
315
316 func (x *Matcher_MatcherTree) GetPrefixMatchMap() *Matcher_MatcherTree_MatchMap {
317 if x != nil {
318 if x, ok := x.TreeType.(*Matcher_MatcherTree_PrefixMatchMap); ok {
319 return x.PrefixMatchMap
320 }
321 }
322 return nil
323 }
324
325 func (x *Matcher_MatcherTree) GetCustomMatch() *v3.TypedExtensionConfig {
326 if x != nil {
327 if x, ok := x.TreeType.(*Matcher_MatcherTree_CustomMatch); ok {
328 return x.CustomMatch
329 }
330 }
331 return nil
332 }
333
334 type isMatcher_MatcherTree_TreeType interface {
335 isMatcher_MatcherTree_TreeType()
336 }
337
338 type Matcher_MatcherTree_ExactMatchMap struct {
339 ExactMatchMap *Matcher_MatcherTree_MatchMap `protobuf:"bytes,2,opt,name=exact_match_map,json=exactMatchMap,proto3,oneof"`
340 }
341
342 type Matcher_MatcherTree_PrefixMatchMap struct {
343 PrefixMatchMap *Matcher_MatcherTree_MatchMap `protobuf:"bytes,3,opt,name=prefix_match_map,json=prefixMatchMap,proto3,oneof"`
344 }
345
346 type Matcher_MatcherTree_CustomMatch struct {
347 CustomMatch *v3.TypedExtensionConfig `protobuf:"bytes,4,opt,name=custom_match,json=customMatch,proto3,oneof"`
348 }
349
350 func (*Matcher_MatcherTree_ExactMatchMap) isMatcher_MatcherTree_TreeType() {}
351
352 func (*Matcher_MatcherTree_PrefixMatchMap) isMatcher_MatcherTree_TreeType() {}
353
354 func (*Matcher_MatcherTree_CustomMatch) isMatcher_MatcherTree_TreeType() {}
355
356 type Matcher_MatcherList_Predicate struct {
357 state protoimpl.MessageState `protogen:"open.v1"`
358 // Types that are valid to be assigned to MatchType:
359 //
360 // *Matcher_MatcherList_Predicate_SinglePredicate_
361 // *Matcher_MatcherList_Predicate_OrMatcher
362 // *Matcher_MatcherList_Predicate_AndMatcher
363 // *Matcher_MatcherList_Predicate_NotMatcher
364 MatchType isMatcher_MatcherList_Predicate_MatchType `protobuf_oneof:"match_type"`
365 unknownFields protoimpl.UnknownFields
366 sizeCache protoimpl.SizeCache
367 }
368
369 func (x *Matcher_MatcherList_Predicate) Reset() {
370 *x = Matcher_MatcherList_Predicate{}
371 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[4]
372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
373 ms.StoreMessageInfo(mi)
374 }
375
376 func (x *Matcher_MatcherList_Predicate) String() string {
377 return protoimpl.X.MessageStringOf(x)
378 }
379
380 func (*Matcher_MatcherList_Predicate) ProtoMessage() {}
381
382 func (x *Matcher_MatcherList_Predicate) ProtoReflect() protoreflect.Message {
383 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[4]
384 if x != nil {
385 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
386 if ms.LoadMessageInfo() == nil {
387 ms.StoreMessageInfo(mi)
388 }
389 return ms
390 }
391 return mi.MessageOf(x)
392 }
393
394 // Deprecated: Use Matcher_MatcherList_Predicate.ProtoReflect.Descriptor instead.
395 func (*Matcher_MatcherList_Predicate) Descriptor() ([]byte, []int) {
396 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 1, 0}
397 }
398
399 func (x *Matcher_MatcherList_Predicate) GetMatchType() isMatcher_MatcherList_Predicate_MatchType {
400 if x != nil {
401 return x.MatchType
402 }
403 return nil
404 }
405
406 func (x *Matcher_MatcherList_Predicate) GetSinglePredicate() *Matcher_MatcherList_Predicate_SinglePredicate {
407 if x != nil {
408 if x, ok := x.MatchType.(*Matcher_MatcherList_Predicate_SinglePredicate_); ok {
409 return x.SinglePredicate
410 }
411 }
412 return nil
413 }
414
415 func (x *Matcher_MatcherList_Predicate) GetOrMatcher() *Matcher_MatcherList_Predicate_PredicateList {
416 if x != nil {
417 if x, ok := x.MatchType.(*Matcher_MatcherList_Predicate_OrMatcher); ok {
418 return x.OrMatcher
419 }
420 }
421 return nil
422 }
423
424 func (x *Matcher_MatcherList_Predicate) GetAndMatcher() *Matcher_MatcherList_Predicate_PredicateList {
425 if x != nil {
426 if x, ok := x.MatchType.(*Matcher_MatcherList_Predicate_AndMatcher); ok {
427 return x.AndMatcher
428 }
429 }
430 return nil
431 }
432
433 func (x *Matcher_MatcherList_Predicate) GetNotMatcher() *Matcher_MatcherList_Predicate {
434 if x != nil {
435 if x, ok := x.MatchType.(*Matcher_MatcherList_Predicate_NotMatcher); ok {
436 return x.NotMatcher
437 }
438 }
439 return nil
440 }
441
442 type isMatcher_MatcherList_Predicate_MatchType interface {
443 isMatcher_MatcherList_Predicate_MatchType()
444 }
445
446 type Matcher_MatcherList_Predicate_SinglePredicate_ struct {
447 SinglePredicate *Matcher_MatcherList_Predicate_SinglePredicate `protobuf:"bytes,1,opt,name=single_predicate,json=singlePredicate,proto3,oneof"`
448 }
449
450 type Matcher_MatcherList_Predicate_OrMatcher struct {
451 OrMatcher *Matcher_MatcherList_Predicate_PredicateList `protobuf:"bytes,2,opt,name=or_matcher,json=orMatcher,proto3,oneof"`
452 }
453
454 type Matcher_MatcherList_Predicate_AndMatcher struct {
455 AndMatcher *Matcher_MatcherList_Predicate_PredicateList `protobuf:"bytes,3,opt,name=and_matcher,json=andMatcher,proto3,oneof"`
456 }
457
458 type Matcher_MatcherList_Predicate_NotMatcher struct {
459 NotMatcher *Matcher_MatcherList_Predicate `protobuf:"bytes,4,opt,name=not_matcher,json=notMatcher,proto3,oneof"`
460 }
461
462 func (*Matcher_MatcherList_Predicate_SinglePredicate_) isMatcher_MatcherList_Predicate_MatchType() {}
463
464 func (*Matcher_MatcherList_Predicate_OrMatcher) isMatcher_MatcherList_Predicate_MatchType() {}
465
466 func (*Matcher_MatcherList_Predicate_AndMatcher) isMatcher_MatcherList_Predicate_MatchType() {}
467
468 func (*Matcher_MatcherList_Predicate_NotMatcher) isMatcher_MatcherList_Predicate_MatchType() {}
469
470 type Matcher_MatcherList_FieldMatcher struct {
471 state protoimpl.MessageState `protogen:"open.v1"`
472 Predicate *Matcher_MatcherList_Predicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
473 OnMatch *Matcher_OnMatch `protobuf:"bytes,2,opt,name=on_match,json=onMatch,proto3" json:"on_match,omitempty"`
474 unknownFields protoimpl.UnknownFields
475 sizeCache protoimpl.SizeCache
476 }
477
478 func (x *Matcher_MatcherList_FieldMatcher) Reset() {
479 *x = Matcher_MatcherList_FieldMatcher{}
480 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[5]
481 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
482 ms.StoreMessageInfo(mi)
483 }
484
485 func (x *Matcher_MatcherList_FieldMatcher) String() string {
486 return protoimpl.X.MessageStringOf(x)
487 }
488
489 func (*Matcher_MatcherList_FieldMatcher) ProtoMessage() {}
490
491 func (x *Matcher_MatcherList_FieldMatcher) ProtoReflect() protoreflect.Message {
492 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[5]
493 if x != nil {
494 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
495 if ms.LoadMessageInfo() == nil {
496 ms.StoreMessageInfo(mi)
497 }
498 return ms
499 }
500 return mi.MessageOf(x)
501 }
502
503 // Deprecated: Use Matcher_MatcherList_FieldMatcher.ProtoReflect.Descriptor instead.
504 func (*Matcher_MatcherList_FieldMatcher) Descriptor() ([]byte, []int) {
505 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 1, 1}
506 }
507
508 func (x *Matcher_MatcherList_FieldMatcher) GetPredicate() *Matcher_MatcherList_Predicate {
509 if x != nil {
510 return x.Predicate
511 }
512 return nil
513 }
514
515 func (x *Matcher_MatcherList_FieldMatcher) GetOnMatch() *Matcher_OnMatch {
516 if x != nil {
517 return x.OnMatch
518 }
519 return nil
520 }
521
522 type Matcher_MatcherList_Predicate_SinglePredicate struct {
523 state protoimpl.MessageState `protogen:"open.v1"`
524 Input *v3.TypedExtensionConfig `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
525 // Types that are valid to be assigned to Matcher:
526 //
527 // *Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch
528 // *Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch
529 Matcher isMatcher_MatcherList_Predicate_SinglePredicate_Matcher `protobuf_oneof:"matcher"`
530 unknownFields protoimpl.UnknownFields
531 sizeCache protoimpl.SizeCache
532 }
533
534 func (x *Matcher_MatcherList_Predicate_SinglePredicate) Reset() {
535 *x = Matcher_MatcherList_Predicate_SinglePredicate{}
536 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[6]
537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
538 ms.StoreMessageInfo(mi)
539 }
540
541 func (x *Matcher_MatcherList_Predicate_SinglePredicate) String() string {
542 return protoimpl.X.MessageStringOf(x)
543 }
544
545 func (*Matcher_MatcherList_Predicate_SinglePredicate) ProtoMessage() {}
546
547 func (x *Matcher_MatcherList_Predicate_SinglePredicate) ProtoReflect() protoreflect.Message {
548 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[6]
549 if x != nil {
550 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
551 if ms.LoadMessageInfo() == nil {
552 ms.StoreMessageInfo(mi)
553 }
554 return ms
555 }
556 return mi.MessageOf(x)
557 }
558
559 // Deprecated: Use Matcher_MatcherList_Predicate_SinglePredicate.ProtoReflect.Descriptor instead.
560 func (*Matcher_MatcherList_Predicate_SinglePredicate) Descriptor() ([]byte, []int) {
561 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 1, 0, 0}
562 }
563
564 func (x *Matcher_MatcherList_Predicate_SinglePredicate) GetInput() *v3.TypedExtensionConfig {
565 if x != nil {
566 return x.Input
567 }
568 return nil
569 }
570
571 func (x *Matcher_MatcherList_Predicate_SinglePredicate) GetMatcher() isMatcher_MatcherList_Predicate_SinglePredicate_Matcher {
572 if x != nil {
573 return x.Matcher
574 }
575 return nil
576 }
577
578 func (x *Matcher_MatcherList_Predicate_SinglePredicate) GetValueMatch() *StringMatcher {
579 if x != nil {
580 if x, ok := x.Matcher.(*Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch); ok {
581 return x.ValueMatch
582 }
583 }
584 return nil
585 }
586
587 func (x *Matcher_MatcherList_Predicate_SinglePredicate) GetCustomMatch() *v3.TypedExtensionConfig {
588 if x != nil {
589 if x, ok := x.Matcher.(*Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch); ok {
590 return x.CustomMatch
591 }
592 }
593 return nil
594 }
595
596 type isMatcher_MatcherList_Predicate_SinglePredicate_Matcher interface {
597 isMatcher_MatcherList_Predicate_SinglePredicate_Matcher()
598 }
599
600 type Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch struct {
601 ValueMatch *StringMatcher `protobuf:"bytes,2,opt,name=value_match,json=valueMatch,proto3,oneof"`
602 }
603
604 type Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch struct {
605 CustomMatch *v3.TypedExtensionConfig `protobuf:"bytes,3,opt,name=custom_match,json=customMatch,proto3,oneof"`
606 }
607
608 func (*Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch) isMatcher_MatcherList_Predicate_SinglePredicate_Matcher() {
609 }
610
611 func (*Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch) isMatcher_MatcherList_Predicate_SinglePredicate_Matcher() {
612 }
613
614 type Matcher_MatcherList_Predicate_PredicateList struct {
615 state protoimpl.MessageState `protogen:"open.v1"`
616 Predicate []*Matcher_MatcherList_Predicate `protobuf:"bytes,1,rep,name=predicate,proto3" json:"predicate,omitempty"`
617 unknownFields protoimpl.UnknownFields
618 sizeCache protoimpl.SizeCache
619 }
620
621 func (x *Matcher_MatcherList_Predicate_PredicateList) Reset() {
622 *x = Matcher_MatcherList_Predicate_PredicateList{}
623 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[7]
624 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
625 ms.StoreMessageInfo(mi)
626 }
627
628 func (x *Matcher_MatcherList_Predicate_PredicateList) String() string {
629 return protoimpl.X.MessageStringOf(x)
630 }
631
632 func (*Matcher_MatcherList_Predicate_PredicateList) ProtoMessage() {}
633
634 func (x *Matcher_MatcherList_Predicate_PredicateList) ProtoReflect() protoreflect.Message {
635 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[7]
636 if x != nil {
637 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
638 if ms.LoadMessageInfo() == nil {
639 ms.StoreMessageInfo(mi)
640 }
641 return ms
642 }
643 return mi.MessageOf(x)
644 }
645
646 // Deprecated: Use Matcher_MatcherList_Predicate_PredicateList.ProtoReflect.Descriptor instead.
647 func (*Matcher_MatcherList_Predicate_PredicateList) Descriptor() ([]byte, []int) {
648 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 1, 0, 1}
649 }
650
651 func (x *Matcher_MatcherList_Predicate_PredicateList) GetPredicate() []*Matcher_MatcherList_Predicate {
652 if x != nil {
653 return x.Predicate
654 }
655 return nil
656 }
657
658 type Matcher_MatcherTree_MatchMap struct {
659 state protoimpl.MessageState `protogen:"open.v1"`
660 Map map[string]*Matcher_OnMatch `protobuf:"bytes,1,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
661 unknownFields protoimpl.UnknownFields
662 sizeCache protoimpl.SizeCache
663 }
664
665 func (x *Matcher_MatcherTree_MatchMap) Reset() {
666 *x = Matcher_MatcherTree_MatchMap{}
667 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[8]
668 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
669 ms.StoreMessageInfo(mi)
670 }
671
672 func (x *Matcher_MatcherTree_MatchMap) String() string {
673 return protoimpl.X.MessageStringOf(x)
674 }
675
676 func (*Matcher_MatcherTree_MatchMap) ProtoMessage() {}
677
678 func (x *Matcher_MatcherTree_MatchMap) ProtoReflect() protoreflect.Message {
679 mi := &file_xds_type_matcher_v3_matcher_proto_msgTypes[8]
680 if x != nil {
681 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
682 if ms.LoadMessageInfo() == nil {
683 ms.StoreMessageInfo(mi)
684 }
685 return ms
686 }
687 return mi.MessageOf(x)
688 }
689
690 // Deprecated: Use Matcher_MatcherTree_MatchMap.ProtoReflect.Descriptor instead.
691 func (*Matcher_MatcherTree_MatchMap) Descriptor() ([]byte, []int) {
692 return file_xds_type_matcher_v3_matcher_proto_rawDescGZIP(), []int{0, 2, 0}
693 }
694
695 func (x *Matcher_MatcherTree_MatchMap) GetMap() map[string]*Matcher_OnMatch {
696 if x != nil {
697 return x.Map
698 }
699 return nil
700 }
701
702 var File_xds_type_matcher_v3_matcher_proto protoreflect.FileDescriptor
703
704 const file_xds_type_matcher_v3_matcher_proto_rawDesc = "" +
705 "\n" +
706 "!xds/type/matcher/v3/matcher.proto\x12\x13xds.type.matcher.v3\x1a\x1bxds/core/v3/extension.proto\x1a xds/type/matcher/v3/string.proto\x1a\x17validate/validate.proto\"\x9b\x10\n" +
707 "\aMatcher\x12M\n" +
708 "\fmatcher_list\x18\x01 \x01(\v2(.xds.type.matcher.v3.Matcher.MatcherListH\x00R\vmatcherList\x12M\n" +
709 "\fmatcher_tree\x18\x02 \x01(\v2(.xds.type.matcher.v3.Matcher.MatcherTreeH\x00R\vmatcherTree\x12D\n" +
710 "\von_no_match\x18\x03 \x01(\v2$.xds.type.matcher.v3.Matcher.OnMatchR\tonNoMatch\x1a\xb6\x01\n" +
711 "\aOnMatch\x128\n" +
712 "\amatcher\x18\x01 \x01(\v2\x1c.xds.type.matcher.v3.MatcherH\x00R\amatcher\x12;\n" +
713 "\x06action\x18\x02 \x01(\v2!.xds.core.v3.TypedExtensionConfigH\x00R\x06action\x12#\n" +
714 "\rkeep_matching\x18\x03 \x01(\bR\fkeepMatchingB\x0f\n" +
715 "\bon_match\x12\x03\xf8B\x01\x1a\xb6\b\n" +
716 "\vMatcherList\x12[\n" +
717 "\bmatchers\x18\x01 \x03(\v25.xds.type.matcher.v3.Matcher.MatcherList.FieldMatcherB\b\xfaB\x05\x92\x01\x02\b\x01R\bmatchers\x1a\x91\x06\n" +
718 "\tPredicate\x12o\n" +
719 "\x10single_predicate\x18\x01 \x01(\v2B.xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateH\x00R\x0fsinglePredicate\x12a\n" +
720 "\n" +
721 "or_matcher\x18\x02 \x01(\v2@.xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateListH\x00R\torMatcher\x12c\n" +
722 "\vand_matcher\x18\x03 \x01(\v2@.xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateListH\x00R\n" +
723 "andMatcher\x12U\n" +
724 "\vnot_matcher\x18\x04 \x01(\v22.xds.type.matcher.v3.Matcher.MatcherList.PredicateH\x00R\n" +
725 "notMatcher\x1a\xf3\x01\n" +
726 "\x0fSinglePredicate\x12A\n" +
727 "\x05input\x18\x01 \x01(\v2!.xds.core.v3.TypedExtensionConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x05input\x12E\n" +
728 "\vvalue_match\x18\x02 \x01(\v2\".xds.type.matcher.v3.StringMatcherH\x00R\n" +
729 "valueMatch\x12F\n" +
730 "\fcustom_match\x18\x03 \x01(\v2!.xds.core.v3.TypedExtensionConfigH\x00R\vcustomMatchB\x0e\n" +
731 "\amatcher\x12\x03\xf8B\x01\x1ak\n" +
732 "\rPredicateList\x12Z\n" +
733 "\tpredicate\x18\x01 \x03(\v22.xds.type.matcher.v3.Matcher.MatcherList.PredicateB\b\xfaB\x05\x92\x01\x02\b\x02R\tpredicateB\x11\n" +
734 "\n" +
735 "match_type\x12\x03\xf8B\x01\x1a\xb5\x01\n" +
736 "\fFieldMatcher\x12Z\n" +
737 "\tpredicate\x18\x01 \x01(\v22.xds.type.matcher.v3.Matcher.MatcherList.PredicateB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tpredicate\x12I\n" +
738 "\bon_match\x18\x02 \x01(\v2$.xds.type.matcher.v3.Matcher.OnMatchB\b\xfaB\x05\x8a\x01\x02\x10\x01R\aonMatch\x1a\xa9\x04\n" +
739 "\vMatcherTree\x12A\n" +
740 "\x05input\x18\x01 \x01(\v2!.xds.core.v3.TypedExtensionConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x05input\x12[\n" +
741 "\x0fexact_match_map\x18\x02 \x01(\v21.xds.type.matcher.v3.Matcher.MatcherTree.MatchMapH\x00R\rexactMatchMap\x12]\n" +
742 "\x10prefix_match_map\x18\x03 \x01(\v21.xds.type.matcher.v3.Matcher.MatcherTree.MatchMapH\x00R\x0eprefixMatchMap\x12F\n" +
743 "\fcustom_match\x18\x04 \x01(\v2!.xds.core.v3.TypedExtensionConfigH\x00R\vcustomMatch\x1a\xc0\x01\n" +
744 "\bMatchMap\x12V\n" +
745 "\x03map\x18\x01 \x03(\v2:.xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntryB\b\xfaB\x05\x9a\x01\x02\b\x01R\x03map\x1a\\\n" +
746 "\bMapEntry\x12\x10\n" +
747 "\x03key\x18\x01 \x01(\tR\x03key\x12:\n" +
748 "\x05value\x18\x02 \x01(\v2$.xds.type.matcher.v3.Matcher.OnMatchR\x05value:\x028\x01B\x10\n" +
749 "\ttree_type\x12\x03\xf8B\x01B\x0e\n" +
750 "\fmatcher_typeB\\\n" +
751 "\x1ecom.github.xds.type.matcher.v3B\fMatcherProtoP\x01Z*github.com/cncf/xds/go/xds/type/matcher/v3b\x06proto3"
752
753 var (
754 file_xds_type_matcher_v3_matcher_proto_rawDescOnce sync.Once
755 file_xds_type_matcher_v3_matcher_proto_rawDescData []byte
756 )
757
758 func file_xds_type_matcher_v3_matcher_proto_rawDescGZIP() []byte {
759 file_xds_type_matcher_v3_matcher_proto_rawDescOnce.Do(func() {
760 file_xds_type_matcher_v3_matcher_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_matcher_proto_rawDesc), len(file_xds_type_matcher_v3_matcher_proto_rawDesc)))
761 })
762 return file_xds_type_matcher_v3_matcher_proto_rawDescData
763 }
764
765 var file_xds_type_matcher_v3_matcher_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
766 var file_xds_type_matcher_v3_matcher_proto_goTypes = []any{
767 (*Matcher)(nil), // 0: xds.type.matcher.v3.Matcher
768 (*Matcher_OnMatch)(nil), // 1: xds.type.matcher.v3.Matcher.OnMatch
769 (*Matcher_MatcherList)(nil), // 2: xds.type.matcher.v3.Matcher.MatcherList
770 (*Matcher_MatcherTree)(nil), // 3: xds.type.matcher.v3.Matcher.MatcherTree
771 (*Matcher_MatcherList_Predicate)(nil), // 4: xds.type.matcher.v3.Matcher.MatcherList.Predicate
772 (*Matcher_MatcherList_FieldMatcher)(nil), // 5: xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher
773 (*Matcher_MatcherList_Predicate_SinglePredicate)(nil), // 6: xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate
774 (*Matcher_MatcherList_Predicate_PredicateList)(nil), // 7: xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList
775 (*Matcher_MatcherTree_MatchMap)(nil), // 8: xds.type.matcher.v3.Matcher.MatcherTree.MatchMap
776 nil, // 9: xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry
777 (*v3.TypedExtensionConfig)(nil), // 10: xds.core.v3.TypedExtensionConfig
778 (*StringMatcher)(nil), // 11: xds.type.matcher.v3.StringMatcher
779 }
780 var file_xds_type_matcher_v3_matcher_proto_depIdxs = []int32{
781 2, // 0: xds.type.matcher.v3.Matcher.matcher_list:type_name -> xds.type.matcher.v3.Matcher.MatcherList
782 3, // 1: xds.type.matcher.v3.Matcher.matcher_tree:type_name -> xds.type.matcher.v3.Matcher.MatcherTree
783 1, // 2: xds.type.matcher.v3.Matcher.on_no_match:type_name -> xds.type.matcher.v3.Matcher.OnMatch
784 0, // 3: xds.type.matcher.v3.Matcher.OnMatch.matcher:type_name -> xds.type.matcher.v3.Matcher
785 10, // 4: xds.type.matcher.v3.Matcher.OnMatch.action:type_name -> xds.core.v3.TypedExtensionConfig
786 5, // 5: xds.type.matcher.v3.Matcher.MatcherList.matchers:type_name -> xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher
787 10, // 6: xds.type.matcher.v3.Matcher.MatcherTree.input:type_name -> xds.core.v3.TypedExtensionConfig
788 8, // 7: xds.type.matcher.v3.Matcher.MatcherTree.exact_match_map:type_name -> xds.type.matcher.v3.Matcher.MatcherTree.MatchMap
789 8, // 8: xds.type.matcher.v3.Matcher.MatcherTree.prefix_match_map:type_name -> xds.type.matcher.v3.Matcher.MatcherTree.MatchMap
790 10, // 9: xds.type.matcher.v3.Matcher.MatcherTree.custom_match:type_name -> xds.core.v3.TypedExtensionConfig
791 6, // 10: xds.type.matcher.v3.Matcher.MatcherList.Predicate.single_predicate:type_name -> xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate
792 7, // 11: xds.type.matcher.v3.Matcher.MatcherList.Predicate.or_matcher:type_name -> xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList
793 7, // 12: xds.type.matcher.v3.Matcher.MatcherList.Predicate.and_matcher:type_name -> xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList
794 4, // 13: xds.type.matcher.v3.Matcher.MatcherList.Predicate.not_matcher:type_name -> xds.type.matcher.v3.Matcher.MatcherList.Predicate
795 4, // 14: xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher.predicate:type_name -> xds.type.matcher.v3.Matcher.MatcherList.Predicate
796 1, // 15: xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher.on_match:type_name -> xds.type.matcher.v3.Matcher.OnMatch
797 10, // 16: xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.input:type_name -> xds.core.v3.TypedExtensionConfig
798 11, // 17: xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.value_match:type_name -> xds.type.matcher.v3.StringMatcher
799 10, // 18: xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.custom_match:type_name -> xds.core.v3.TypedExtensionConfig
800 4, // 19: xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.predicate:type_name -> xds.type.matcher.v3.Matcher.MatcherList.Predicate
801 9, // 20: xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.map:type_name -> xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry
802 1, // 21: xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry.value:type_name -> xds.type.matcher.v3.Matcher.OnMatch
803 22, // [22:22] is the sub-list for method output_type
804 22, // [22:22] is the sub-list for method input_type
805 22, // [22:22] is the sub-list for extension type_name
806 22, // [22:22] is the sub-list for extension extendee
807 0, // [0:22] is the sub-list for field type_name
808 }
809
810 func init() { file_xds_type_matcher_v3_matcher_proto_init() }
811 func file_xds_type_matcher_v3_matcher_proto_init() {
812 if File_xds_type_matcher_v3_matcher_proto != nil {
813 return
814 }
815 file_xds_type_matcher_v3_string_proto_init()
816 file_xds_type_matcher_v3_matcher_proto_msgTypes[0].OneofWrappers = []any{
817 (*Matcher_MatcherList_)(nil),
818 (*Matcher_MatcherTree_)(nil),
819 }
820 file_xds_type_matcher_v3_matcher_proto_msgTypes[1].OneofWrappers = []any{
821 (*Matcher_OnMatch_Matcher)(nil),
822 (*Matcher_OnMatch_Action)(nil),
823 }
824 file_xds_type_matcher_v3_matcher_proto_msgTypes[3].OneofWrappers = []any{
825 (*Matcher_MatcherTree_ExactMatchMap)(nil),
826 (*Matcher_MatcherTree_PrefixMatchMap)(nil),
827 (*Matcher_MatcherTree_CustomMatch)(nil),
828 }
829 file_xds_type_matcher_v3_matcher_proto_msgTypes[4].OneofWrappers = []any{
830 (*Matcher_MatcherList_Predicate_SinglePredicate_)(nil),
831 (*Matcher_MatcherList_Predicate_OrMatcher)(nil),
832 (*Matcher_MatcherList_Predicate_AndMatcher)(nil),
833 (*Matcher_MatcherList_Predicate_NotMatcher)(nil),
834 }
835 file_xds_type_matcher_v3_matcher_proto_msgTypes[6].OneofWrappers = []any{
836 (*Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch)(nil),
837 (*Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch)(nil),
838 }
839 type x struct{}
840 out := protoimpl.TypeBuilder{
841 File: protoimpl.DescBuilder{
842 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
843 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_matcher_proto_rawDesc), len(file_xds_type_matcher_v3_matcher_proto_rawDesc)),
844 NumEnums: 0,
845 NumMessages: 10,
846 NumExtensions: 0,
847 NumServices: 0,
848 },
849 GoTypes: file_xds_type_matcher_v3_matcher_proto_goTypes,
850 DependencyIndexes: file_xds_type_matcher_v3_matcher_proto_depIdxs,
851 MessageInfos: file_xds_type_matcher_v3_matcher_proto_msgTypes,
852 }.Build()
853 File_xds_type_matcher_v3_matcher_proto = out.File
854 file_xds_type_matcher_v3_matcher_proto_goTypes = nil
855 file_xds_type_matcher_v3_matcher_proto_depIdxs = nil
856 }