github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/type/matcher/string.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/type/matcher/string.proto 6 7 package envoy_type_matcher 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/hxx258456/ccgo/go-control-plane/envoy/annotations" 12 _ "github.com/envoyproxy/protoc-gen-validate/validate" 13 proto "github.com/golang/protobuf/proto" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Specifies the way to match a string. 32 // [#next-free-field: 7] 33 type StringMatcher struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // Types that are assignable to MatchPattern: 39 // *StringMatcher_Exact 40 // *StringMatcher_Prefix 41 // *StringMatcher_Suffix 42 // *StringMatcher_Regex 43 // *StringMatcher_SafeRegex 44 MatchPattern isStringMatcher_MatchPattern `protobuf_oneof:"match_pattern"` 45 // If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no 46 // effect for the safe_regex match. 47 // For example, the matcher *data* will match both input string *Data* and *data* if set to true. 48 IgnoreCase bool `protobuf:"varint,6,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"` 49 } 50 51 func (x *StringMatcher) Reset() { 52 *x = StringMatcher{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_envoy_type_matcher_string_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *StringMatcher) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*StringMatcher) ProtoMessage() {} 65 66 func (x *StringMatcher) ProtoReflect() protoreflect.Message { 67 mi := &file_envoy_type_matcher_string_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use StringMatcher.ProtoReflect.Descriptor instead. 79 func (*StringMatcher) Descriptor() ([]byte, []int) { 80 return file_envoy_type_matcher_string_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (m *StringMatcher) GetMatchPattern() isStringMatcher_MatchPattern { 84 if m != nil { 85 return m.MatchPattern 86 } 87 return nil 88 } 89 90 func (x *StringMatcher) GetExact() string { 91 if x, ok := x.GetMatchPattern().(*StringMatcher_Exact); ok { 92 return x.Exact 93 } 94 return "" 95 } 96 97 func (x *StringMatcher) GetPrefix() string { 98 if x, ok := x.GetMatchPattern().(*StringMatcher_Prefix); ok { 99 return x.Prefix 100 } 101 return "" 102 } 103 104 func (x *StringMatcher) GetSuffix() string { 105 if x, ok := x.GetMatchPattern().(*StringMatcher_Suffix); ok { 106 return x.Suffix 107 } 108 return "" 109 } 110 111 // Deprecated: Do not use. 112 func (x *StringMatcher) GetRegex() string { 113 if x, ok := x.GetMatchPattern().(*StringMatcher_Regex); ok { 114 return x.Regex 115 } 116 return "" 117 } 118 119 func (x *StringMatcher) GetSafeRegex() *RegexMatcher { 120 if x, ok := x.GetMatchPattern().(*StringMatcher_SafeRegex); ok { 121 return x.SafeRegex 122 } 123 return nil 124 } 125 126 func (x *StringMatcher) GetIgnoreCase() bool { 127 if x != nil { 128 return x.IgnoreCase 129 } 130 return false 131 } 132 133 type isStringMatcher_MatchPattern interface { 134 isStringMatcher_MatchPattern() 135 } 136 137 type StringMatcher_Exact struct { 138 // The input string must match exactly the string specified here. 139 // 140 // Examples: 141 // 142 // * *abc* only matches the value *abc*. 143 Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"` 144 } 145 146 type StringMatcher_Prefix struct { 147 // The input string must have the prefix specified here. 148 // Note: empty prefix is not allowed, please use regex instead. 149 // 150 // Examples: 151 // 152 // * *abc* matches the value *abc.xyz* 153 Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"` 154 } 155 156 type StringMatcher_Suffix struct { 157 // The input string must have the suffix specified here. 158 // Note: empty prefix is not allowed, please use regex instead. 159 // 160 // Examples: 161 // 162 // * *abc* matches the value *xyz.abc* 163 Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3,oneof"` 164 } 165 166 type StringMatcher_Regex struct { 167 // The input string must match the regular expression specified here. 168 // The regex grammar is defined `here 169 // <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. 170 // 171 // Examples: 172 // 173 // * The regex ``\d{3}`` matches the value *123* 174 // * The regex ``\d{3}`` does not match the value *1234* 175 // * The regex ``\d{3}`` does not match the value *123.456* 176 // 177 // .. attention:: 178 // This field has been deprecated in favor of `safe_regex` as it is not safe for use with 179 // untrusted input in all cases. 180 // 181 // Deprecated: Do not use. 182 Regex string `protobuf:"bytes,4,opt,name=regex,proto3,oneof"` 183 } 184 185 type StringMatcher_SafeRegex struct { 186 // The input string must match the regular expression specified here. 187 SafeRegex *RegexMatcher `protobuf:"bytes,5,opt,name=safe_regex,json=safeRegex,proto3,oneof"` 188 } 189 190 func (*StringMatcher_Exact) isStringMatcher_MatchPattern() {} 191 192 func (*StringMatcher_Prefix) isStringMatcher_MatchPattern() {} 193 194 func (*StringMatcher_Suffix) isStringMatcher_MatchPattern() {} 195 196 func (*StringMatcher_Regex) isStringMatcher_MatchPattern() {} 197 198 func (*StringMatcher_SafeRegex) isStringMatcher_MatchPattern() {} 199 200 // Specifies a list of ways to match a string. 201 type ListStringMatcher struct { 202 state protoimpl.MessageState 203 sizeCache protoimpl.SizeCache 204 unknownFields protoimpl.UnknownFields 205 206 Patterns []*StringMatcher `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"` 207 } 208 209 func (x *ListStringMatcher) Reset() { 210 *x = ListStringMatcher{} 211 if protoimpl.UnsafeEnabled { 212 mi := &file_envoy_type_matcher_string_proto_msgTypes[1] 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 ms.StoreMessageInfo(mi) 215 } 216 } 217 218 func (x *ListStringMatcher) String() string { 219 return protoimpl.X.MessageStringOf(x) 220 } 221 222 func (*ListStringMatcher) ProtoMessage() {} 223 224 func (x *ListStringMatcher) ProtoReflect() protoreflect.Message { 225 mi := &file_envoy_type_matcher_string_proto_msgTypes[1] 226 if protoimpl.UnsafeEnabled && x != nil { 227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 228 if ms.LoadMessageInfo() == nil { 229 ms.StoreMessageInfo(mi) 230 } 231 return ms 232 } 233 return mi.MessageOf(x) 234 } 235 236 // Deprecated: Use ListStringMatcher.ProtoReflect.Descriptor instead. 237 func (*ListStringMatcher) Descriptor() ([]byte, []int) { 238 return file_envoy_type_matcher_string_proto_rawDescGZIP(), []int{1} 239 } 240 241 func (x *ListStringMatcher) GetPatterns() []*StringMatcher { 242 if x != nil { 243 return x.Patterns 244 } 245 return nil 246 } 247 248 var File_envoy_type_matcher_string_proto protoreflect.FileDescriptor 249 250 var file_envoy_type_matcher_string_proto_rawDesc = []byte{ 251 0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 252 0x63, 0x68, 0x65, 0x72, 0x2f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 253 0x6f, 0x12, 0x12, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 254 0x74, 0x63, 0x68, 0x65, 0x72, 0x1a, 0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 255 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x2e, 256 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 257 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 258 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 259 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 260 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 261 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 262 0x74, 0x6f, 0x22, 0x9b, 0x02, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 263 0x63, 0x68, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x05, 0x65, 0x78, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 264 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x78, 0x61, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x06, 265 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 266 0x04, 0x72, 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 267 0x21, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 268 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 269 0x69, 0x78, 0x12, 0x28, 0x0a, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 270 0x09, 0x42, 0x10, 0x18, 0x01, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x28, 0x80, 0x08, 0xb8, 0xee, 0xf2, 271 0xd2, 0x05, 0x01, 0x48, 0x00, 0x52, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x12, 0x4b, 0x0a, 0x0a, 272 0x73, 0x61, 0x66, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 273 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 274 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x67, 0x65, 0x78, 0x4d, 0x61, 0x74, 0x63, 0x68, 275 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x09, 276 0x73, 0x61, 0x66, 0x65, 0x52, 0x65, 0x67, 0x65, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x67, 0x6e, 277 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 278 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x43, 0x61, 0x73, 0x65, 0x42, 0x14, 0x0a, 0x0d, 0x6d, 0x61, 279 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x03, 0xf8, 0x42, 0x01, 280 0x22, 0x5c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 281 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 282 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 283 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 284 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 285 0x01, 0x02, 0x08, 0x01, 0x52, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x42, 0x39, 286 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 287 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 288 0x65, 0x72, 0x42, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 289 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 290 0x33, 291 } 292 293 var ( 294 file_envoy_type_matcher_string_proto_rawDescOnce sync.Once 295 file_envoy_type_matcher_string_proto_rawDescData = file_envoy_type_matcher_string_proto_rawDesc 296 ) 297 298 func file_envoy_type_matcher_string_proto_rawDescGZIP() []byte { 299 file_envoy_type_matcher_string_proto_rawDescOnce.Do(func() { 300 file_envoy_type_matcher_string_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_type_matcher_string_proto_rawDescData) 301 }) 302 return file_envoy_type_matcher_string_proto_rawDescData 303 } 304 305 var file_envoy_type_matcher_string_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 306 var file_envoy_type_matcher_string_proto_goTypes = []interface{}{ 307 (*StringMatcher)(nil), // 0: envoy.type.matcher.StringMatcher 308 (*ListStringMatcher)(nil), // 1: envoy.type.matcher.ListStringMatcher 309 (*RegexMatcher)(nil), // 2: envoy.type.matcher.RegexMatcher 310 } 311 var file_envoy_type_matcher_string_proto_depIdxs = []int32{ 312 2, // 0: envoy.type.matcher.StringMatcher.safe_regex:type_name -> envoy.type.matcher.RegexMatcher 313 0, // 1: envoy.type.matcher.ListStringMatcher.patterns:type_name -> envoy.type.matcher.StringMatcher 314 2, // [2:2] is the sub-list for method output_type 315 2, // [2:2] is the sub-list for method input_type 316 2, // [2:2] is the sub-list for extension type_name 317 2, // [2:2] is the sub-list for extension extendee 318 0, // [0:2] is the sub-list for field type_name 319 } 320 321 func init() { file_envoy_type_matcher_string_proto_init() } 322 func file_envoy_type_matcher_string_proto_init() { 323 if File_envoy_type_matcher_string_proto != nil { 324 return 325 } 326 file_envoy_type_matcher_regex_proto_init() 327 if !protoimpl.UnsafeEnabled { 328 file_envoy_type_matcher_string_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 329 switch v := v.(*StringMatcher); i { 330 case 0: 331 return &v.state 332 case 1: 333 return &v.sizeCache 334 case 2: 335 return &v.unknownFields 336 default: 337 return nil 338 } 339 } 340 file_envoy_type_matcher_string_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 341 switch v := v.(*ListStringMatcher); i { 342 case 0: 343 return &v.state 344 case 1: 345 return &v.sizeCache 346 case 2: 347 return &v.unknownFields 348 default: 349 return nil 350 } 351 } 352 } 353 file_envoy_type_matcher_string_proto_msgTypes[0].OneofWrappers = []interface{}{ 354 (*StringMatcher_Exact)(nil), 355 (*StringMatcher_Prefix)(nil), 356 (*StringMatcher_Suffix)(nil), 357 (*StringMatcher_Regex)(nil), 358 (*StringMatcher_SafeRegex)(nil), 359 } 360 type x struct{} 361 out := protoimpl.TypeBuilder{ 362 File: protoimpl.DescBuilder{ 363 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 364 RawDescriptor: file_envoy_type_matcher_string_proto_rawDesc, 365 NumEnums: 0, 366 NumMessages: 2, 367 NumExtensions: 0, 368 NumServices: 0, 369 }, 370 GoTypes: file_envoy_type_matcher_string_proto_goTypes, 371 DependencyIndexes: file_envoy_type_matcher_string_proto_depIdxs, 372 MessageInfos: file_envoy_type_matcher_string_proto_msgTypes, 373 }.Build() 374 File_envoy_type_matcher_string_proto = out.File 375 file_envoy_type_matcher_string_proto_rawDesc = nil 376 file_envoy_type_matcher_string_proto_goTypes = nil 377 file_envoy_type_matcher_string_proto_depIdxs = nil 378 }