Debian Codegraph @

go/xds/type/matcher/v3/regex.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/regex.proto
6
7 package v3
8
9 import (
10 _ "github.com/envoyproxy/protoc-gen-validate/validate"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 type RegexMatcher struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 // Types that are valid to be assigned to EngineType:
28 //
29 // *RegexMatcher_GoogleRe2
30 EngineType isRegexMatcher_EngineType `protobuf_oneof:"engine_type"`
31 Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"`
32 unknownFields protoimpl.UnknownFields
33 sizeCache protoimpl.SizeCache
34 }
35
36 func (x *RegexMatcher) Reset() {
37 *x = RegexMatcher{}
38 mi := &file_xds_type_matcher_v3_regex_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41 }
42
43 func (x *RegexMatcher) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*RegexMatcher) ProtoMessage() {}
48
49 func (x *RegexMatcher) ProtoReflect() protoreflect.Message {
50 mi := &file_xds_type_matcher_v3_regex_proto_msgTypes[0]
51 if x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61 // Deprecated: Use RegexMatcher.ProtoReflect.Descriptor instead.
62 func (*RegexMatcher) Descriptor() ([]byte, []int) {
63 return file_xds_type_matcher_v3_regex_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *RegexMatcher) GetEngineType() isRegexMatcher_EngineType {
67 if x != nil {
68 return x.EngineType
69 }
70 return nil
71 }
72
73 func (x *RegexMatcher) GetGoogleRe2() *RegexMatcher_GoogleRE2 {
74 if x != nil {
75 if x, ok := x.EngineType.(*RegexMatcher_GoogleRe2); ok {
76 return x.GoogleRe2
77 }
78 }
79 return nil
80 }
81
82 func (x *RegexMatcher) GetRegex() string {
83 if x != nil {
84 return x.Regex
85 }
86 return ""
87 }
88
89 type isRegexMatcher_EngineType interface {
90 isRegexMatcher_EngineType()
91 }
92
93 type RegexMatcher_GoogleRe2 struct {
94 GoogleRe2 *RegexMatcher_GoogleRE2 `protobuf:"bytes,1,opt,name=google_re2,json=googleRe2,proto3,oneof"`
95 }
96
97 func (*RegexMatcher_GoogleRe2) isRegexMatcher_EngineType() {}
98
99 type RegexMatcher_GoogleRE2 struct {
100 state protoimpl.MessageState `protogen:"open.v1"`
101 unknownFields protoimpl.UnknownFields
102 sizeCache protoimpl.SizeCache
103 }
104
105 func (x *RegexMatcher_GoogleRE2) Reset() {
106 *x = RegexMatcher_GoogleRE2{}
107 mi := &file_xds_type_matcher_v3_regex_proto_msgTypes[1]
108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109 ms.StoreMessageInfo(mi)
110 }
111
112 func (x *RegexMatcher_GoogleRE2) String() string {
113 return protoimpl.X.MessageStringOf(x)
114 }
115
116 func (*RegexMatcher_GoogleRE2) ProtoMessage() {}
117
118 func (x *RegexMatcher_GoogleRE2) ProtoReflect() protoreflect.Message {
119 mi := &file_xds_type_matcher_v3_regex_proto_msgTypes[1]
120 if x != nil {
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 if ms.LoadMessageInfo() == nil {
123 ms.StoreMessageInfo(mi)
124 }
125 return ms
126 }
127 return mi.MessageOf(x)
128 }
129
130 // Deprecated: Use RegexMatcher_GoogleRE2.ProtoReflect.Descriptor instead.
131 func (*RegexMatcher_GoogleRE2) Descriptor() ([]byte, []int) {
132 return file_xds_type_matcher_v3_regex_proto_rawDescGZIP(), []int{0, 0}
133 }
134
135 var File_xds_type_matcher_v3_regex_proto protoreflect.FileDescriptor
136
137 const file_xds_type_matcher_v3_regex_proto_rawDesc = "" +
138 "\n" +
139 "\x1fxds/type/matcher/v3/regex.proto\x12\x13xds.type.matcher.v3\x1a\x17validate/validate.proto\"\xa6\x01\n" +
140 "\fRegexMatcher\x12V\n" +
141 "\n" +
142 "google_re2\x18\x01 \x01(\v2+.xds.type.matcher.v3.RegexMatcher.GoogleRE2B\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\tgoogleRe2\x12\x1d\n" +
143 "\x05regex\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x05regex\x1a\v\n" +
144 "\tGoogleRE2B\x12\n" +
145 "\vengine_type\x12\x03\xf8B\x01BZ\n" +
146 "\x1ecom.github.xds.type.matcher.v3B\n" +
147 "RegexProtoP\x01Z*github.com/cncf/xds/go/xds/type/matcher/v3b\x06proto3"
148
149 var (
150 file_xds_type_matcher_v3_regex_proto_rawDescOnce sync.Once
151 file_xds_type_matcher_v3_regex_proto_rawDescData []byte
152 )
153
154 func file_xds_type_matcher_v3_regex_proto_rawDescGZIP() []byte {
155 file_xds_type_matcher_v3_regex_proto_rawDescOnce.Do(func() {
156 file_xds_type_matcher_v3_regex_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_regex_proto_rawDesc), len(file_xds_type_matcher_v3_regex_proto_rawDesc)))
157 })
158 return file_xds_type_matcher_v3_regex_proto_rawDescData
159 }
160
161 var file_xds_type_matcher_v3_regex_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
162 var file_xds_type_matcher_v3_regex_proto_goTypes = []any{
163 (*RegexMatcher)(nil), // 0: xds.type.matcher.v3.RegexMatcher
164 (*RegexMatcher_GoogleRE2)(nil), // 1: xds.type.matcher.v3.RegexMatcher.GoogleRE2
165 }
166 var file_xds_type_matcher_v3_regex_proto_depIdxs = []int32{
167 1, // 0: xds.type.matcher.v3.RegexMatcher.google_re2:type_name -> xds.type.matcher.v3.RegexMatcher.GoogleRE2
168 1, // [1:1] is the sub-list for method output_type
169 1, // [1:1] is the sub-list for method input_type
170 1, // [1:1] is the sub-list for extension type_name
171 1, // [1:1] is the sub-list for extension extendee
172 0, // [0:1] is the sub-list for field type_name
173 }
174
175 func init() { file_xds_type_matcher_v3_regex_proto_init() }
176 func file_xds_type_matcher_v3_regex_proto_init() {
177 if File_xds_type_matcher_v3_regex_proto != nil {
178 return
179 }
180 file_xds_type_matcher_v3_regex_proto_msgTypes[0].OneofWrappers = []any{
181 (*RegexMatcher_GoogleRe2)(nil),
182 }
183 type x struct{}
184 out := protoimpl.TypeBuilder{
185 File: protoimpl.DescBuilder{
186 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
187 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_regex_proto_rawDesc), len(file_xds_type_matcher_v3_regex_proto_rawDesc)),
188 NumEnums: 0,
189 NumMessages: 2,
190 NumExtensions: 0,
191 NumServices: 0,
192 },
193 GoTypes: file_xds_type_matcher_v3_regex_proto_goTypes,
194 DependencyIndexes: file_xds_type_matcher_v3_regex_proto_depIdxs,
195 MessageInfos: file_xds_type_matcher_v3_regex_proto_msgTypes,
196 }.Build()
197 File_xds_type_matcher_v3_regex_proto = out.File
198 file_xds_type_matcher_v3_regex_proto_goTypes = nil
199 file_xds_type_matcher_v3_regex_proto_depIdxs = nil
200 }