gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/api/v2/scoped_route.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/api/v2/scoped_route.proto 6 7 package envoy_api_v2 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 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 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 // Specifies a routing scope, which associates a 31 // :ref:`Key<envoy_api_msg_ScopedRouteConfiguration.Key>` to a 32 // :ref:`envoy_api_msg_RouteConfiguration` (identified by its resource name). 33 // 34 // The HTTP connection manager builds up a table consisting of these Key to 35 // RouteConfiguration mappings, and looks up the RouteConfiguration to use per 36 // request according to the algorithm specified in the 37 // :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v2.ScopedRoutes.scope_key_builder>` 38 // assigned to the HttpConnectionManager. 39 // 40 // For example, with the following configurations (in YAML): 41 // 42 // HttpConnectionManager config: 43 // 44 // .. code:: 45 // 46 // ... 47 // scoped_routes: 48 // name: foo-scoped-routes 49 // scope_key_builder: 50 // fragments: 51 // - header_value_extractor: 52 // name: X-Route-Selector 53 // element_separator: , 54 // element: 55 // separator: = 56 // key: vip 57 // 58 // ScopedRouteConfiguration resources (specified statically via 59 // :ref:`scoped_route_configurations_list<envoy_api_field_config.filter.network.http_connection_manager.v2.ScopedRoutes.scoped_route_configurations_list>` 60 // or obtained dynamically via SRDS): 61 // 62 // .. code:: 63 // 64 // (1) 65 // name: route-scope1 66 // route_configuration_name: route-config1 67 // key: 68 // fragments: 69 // - string_key: 172.10.10.20 70 // 71 // (2) 72 // name: route-scope2 73 // route_configuration_name: route-config2 74 // key: 75 // fragments: 76 // - string_key: 172.20.20.30 77 // 78 // A request from a client such as: 79 // 80 // .. code:: 81 // 82 // GET / HTTP/1.1 83 // Host: foo.com 84 // X-Route-Selector: vip=172.10.10.20 85 // 86 // would result in the routing table defined by the `route-config1` 87 // RouteConfiguration being assigned to the HTTP request/stream. 88 // 89 type ScopedRouteConfiguration struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 // The name assigned to the routing scope. 95 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 96 // The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an 97 // RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated 98 // with this scope. 99 RouteConfigurationName string `protobuf:"bytes,2,opt,name=route_configuration_name,json=routeConfigurationName,proto3" json:"route_configuration_name,omitempty"` 100 // The key to match against. 101 Key *ScopedRouteConfiguration_Key `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` 102 } 103 104 func (x *ScopedRouteConfiguration) Reset() { 105 *x = ScopedRouteConfiguration{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_envoy_api_v2_scoped_route_proto_msgTypes[0] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111 } 112 113 func (x *ScopedRouteConfiguration) String() string { 114 return protoimpl.X.MessageStringOf(x) 115 } 116 117 func (*ScopedRouteConfiguration) ProtoMessage() {} 118 119 func (x *ScopedRouteConfiguration) ProtoReflect() protoreflect.Message { 120 mi := &file_envoy_api_v2_scoped_route_proto_msgTypes[0] 121 if protoimpl.UnsafeEnabled && x != nil { 122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 123 if ms.LoadMessageInfo() == nil { 124 ms.StoreMessageInfo(mi) 125 } 126 return ms 127 } 128 return mi.MessageOf(x) 129 } 130 131 // Deprecated: Use ScopedRouteConfiguration.ProtoReflect.Descriptor instead. 132 func (*ScopedRouteConfiguration) Descriptor() ([]byte, []int) { 133 return file_envoy_api_v2_scoped_route_proto_rawDescGZIP(), []int{0} 134 } 135 136 func (x *ScopedRouteConfiguration) GetName() string { 137 if x != nil { 138 return x.Name 139 } 140 return "" 141 } 142 143 func (x *ScopedRouteConfiguration) GetRouteConfigurationName() string { 144 if x != nil { 145 return x.RouteConfigurationName 146 } 147 return "" 148 } 149 150 func (x *ScopedRouteConfiguration) GetKey() *ScopedRouteConfiguration_Key { 151 if x != nil { 152 return x.Key 153 } 154 return nil 155 } 156 157 // Specifies a key which is matched against the output of the 158 // :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v2.ScopedRoutes.scope_key_builder>` 159 // specified in the HttpConnectionManager. The matching is done per HTTP 160 // request and is dependent on the order of the fragments contained in the 161 // Key. 162 type ScopedRouteConfiguration_Key struct { 163 state protoimpl.MessageState 164 sizeCache protoimpl.SizeCache 165 unknownFields protoimpl.UnknownFields 166 167 // The ordered set of fragments to match against. The order must match the 168 // fragments in the corresponding 169 // :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v2.ScopedRoutes.scope_key_builder>`. 170 Fragments []*ScopedRouteConfiguration_Key_Fragment `protobuf:"bytes,1,rep,name=fragments,proto3" json:"fragments,omitempty"` 171 } 172 173 func (x *ScopedRouteConfiguration_Key) Reset() { 174 *x = ScopedRouteConfiguration_Key{} 175 if protoimpl.UnsafeEnabled { 176 mi := &file_envoy_api_v2_scoped_route_proto_msgTypes[1] 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 ms.StoreMessageInfo(mi) 179 } 180 } 181 182 func (x *ScopedRouteConfiguration_Key) String() string { 183 return protoimpl.X.MessageStringOf(x) 184 } 185 186 func (*ScopedRouteConfiguration_Key) ProtoMessage() {} 187 188 func (x *ScopedRouteConfiguration_Key) ProtoReflect() protoreflect.Message { 189 mi := &file_envoy_api_v2_scoped_route_proto_msgTypes[1] 190 if protoimpl.UnsafeEnabled && x != nil { 191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 192 if ms.LoadMessageInfo() == nil { 193 ms.StoreMessageInfo(mi) 194 } 195 return ms 196 } 197 return mi.MessageOf(x) 198 } 199 200 // Deprecated: Use ScopedRouteConfiguration_Key.ProtoReflect.Descriptor instead. 201 func (*ScopedRouteConfiguration_Key) Descriptor() ([]byte, []int) { 202 return file_envoy_api_v2_scoped_route_proto_rawDescGZIP(), []int{0, 0} 203 } 204 205 func (x *ScopedRouteConfiguration_Key) GetFragments() []*ScopedRouteConfiguration_Key_Fragment { 206 if x != nil { 207 return x.Fragments 208 } 209 return nil 210 } 211 212 type ScopedRouteConfiguration_Key_Fragment struct { 213 state protoimpl.MessageState 214 sizeCache protoimpl.SizeCache 215 unknownFields protoimpl.UnknownFields 216 217 // Types that are assignable to Type: 218 // *ScopedRouteConfiguration_Key_Fragment_StringKey 219 Type isScopedRouteConfiguration_Key_Fragment_Type `protobuf_oneof:"type"` 220 } 221 222 func (x *ScopedRouteConfiguration_Key_Fragment) Reset() { 223 *x = ScopedRouteConfiguration_Key_Fragment{} 224 if protoimpl.UnsafeEnabled { 225 mi := &file_envoy_api_v2_scoped_route_proto_msgTypes[2] 226 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 227 ms.StoreMessageInfo(mi) 228 } 229 } 230 231 func (x *ScopedRouteConfiguration_Key_Fragment) String() string { 232 return protoimpl.X.MessageStringOf(x) 233 } 234 235 func (*ScopedRouteConfiguration_Key_Fragment) ProtoMessage() {} 236 237 func (x *ScopedRouteConfiguration_Key_Fragment) ProtoReflect() protoreflect.Message { 238 mi := &file_envoy_api_v2_scoped_route_proto_msgTypes[2] 239 if protoimpl.UnsafeEnabled && x != nil { 240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 241 if ms.LoadMessageInfo() == nil { 242 ms.StoreMessageInfo(mi) 243 } 244 return ms 245 } 246 return mi.MessageOf(x) 247 } 248 249 // Deprecated: Use ScopedRouteConfiguration_Key_Fragment.ProtoReflect.Descriptor instead. 250 func (*ScopedRouteConfiguration_Key_Fragment) Descriptor() ([]byte, []int) { 251 return file_envoy_api_v2_scoped_route_proto_rawDescGZIP(), []int{0, 0, 0} 252 } 253 254 func (m *ScopedRouteConfiguration_Key_Fragment) GetType() isScopedRouteConfiguration_Key_Fragment_Type { 255 if m != nil { 256 return m.Type 257 } 258 return nil 259 } 260 261 func (x *ScopedRouteConfiguration_Key_Fragment) GetStringKey() string { 262 if x, ok := x.GetType().(*ScopedRouteConfiguration_Key_Fragment_StringKey); ok { 263 return x.StringKey 264 } 265 return "" 266 } 267 268 type isScopedRouteConfiguration_Key_Fragment_Type interface { 269 isScopedRouteConfiguration_Key_Fragment_Type() 270 } 271 272 type ScopedRouteConfiguration_Key_Fragment_StringKey struct { 273 // A string to match against. 274 StringKey string `protobuf:"bytes,1,opt,name=string_key,json=stringKey,proto3,oneof"` 275 } 276 277 func (*ScopedRouteConfiguration_Key_Fragment_StringKey) isScopedRouteConfiguration_Key_Fragment_Type() { 278 } 279 280 var File_envoy_api_v2_scoped_route_proto protoreflect.FileDescriptor 281 282 var file_envoy_api_v2_scoped_route_proto_rawDesc = []byte{ 283 0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x73, 284 0x63, 0x6f, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 285 0x6f, 0x12, 0x0c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x1a, 286 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 287 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 288 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 289 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 290 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 291 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x02, 0x0a, 0x18, 0x53, 0x63, 0x6f, 0x70, 292 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 293 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 294 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 295 0x65, 0x12, 0x41, 0x0a, 0x18, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 296 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 297 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x16, 0x72, 0x6f, 298 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 299 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 300 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 301 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 302 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4b, 0x65, 0x79, 0x42, 0x08, 0xfa, 303 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x9c, 0x01, 0x0a, 304 0x03, 0x4b, 0x65, 0x79, 0x12, 0x5b, 0x0a, 0x09, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 305 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 306 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x52, 0x6f, 0x75, 307 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 308 0x4b, 0x65, 0x79, 0x2e, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x08, 0xfa, 0x42, 309 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x09, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 310 0x73, 0x1a, 0x38, 0x0a, 0x08, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 311 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 312 0x09, 0x48, 0x00, 0x52, 0x09, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x42, 0x0b, 313 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x55, 0x0a, 0x1a, 0x69, 314 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 315 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x42, 0x10, 0x53, 0x63, 0x6f, 0x70, 0x65, 316 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 317 0x8f, 0x05, 0x17, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 318 0x67, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 319 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 320 } 321 322 var ( 323 file_envoy_api_v2_scoped_route_proto_rawDescOnce sync.Once 324 file_envoy_api_v2_scoped_route_proto_rawDescData = file_envoy_api_v2_scoped_route_proto_rawDesc 325 ) 326 327 func file_envoy_api_v2_scoped_route_proto_rawDescGZIP() []byte { 328 file_envoy_api_v2_scoped_route_proto_rawDescOnce.Do(func() { 329 file_envoy_api_v2_scoped_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_api_v2_scoped_route_proto_rawDescData) 330 }) 331 return file_envoy_api_v2_scoped_route_proto_rawDescData 332 } 333 334 var file_envoy_api_v2_scoped_route_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 335 var file_envoy_api_v2_scoped_route_proto_goTypes = []interface{}{ 336 (*ScopedRouteConfiguration)(nil), // 0: envoy.api.v2.ScopedRouteConfiguration 337 (*ScopedRouteConfiguration_Key)(nil), // 1: envoy.api.v2.ScopedRouteConfiguration.Key 338 (*ScopedRouteConfiguration_Key_Fragment)(nil), // 2: envoy.api.v2.ScopedRouteConfiguration.Key.Fragment 339 } 340 var file_envoy_api_v2_scoped_route_proto_depIdxs = []int32{ 341 1, // 0: envoy.api.v2.ScopedRouteConfiguration.key:type_name -> envoy.api.v2.ScopedRouteConfiguration.Key 342 2, // 1: envoy.api.v2.ScopedRouteConfiguration.Key.fragments:type_name -> envoy.api.v2.ScopedRouteConfiguration.Key.Fragment 343 2, // [2:2] is the sub-list for method output_type 344 2, // [2:2] is the sub-list for method input_type 345 2, // [2:2] is the sub-list for extension type_name 346 2, // [2:2] is the sub-list for extension extendee 347 0, // [0:2] is the sub-list for field type_name 348 } 349 350 func init() { file_envoy_api_v2_scoped_route_proto_init() } 351 func file_envoy_api_v2_scoped_route_proto_init() { 352 if File_envoy_api_v2_scoped_route_proto != nil { 353 return 354 } 355 if !protoimpl.UnsafeEnabled { 356 file_envoy_api_v2_scoped_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 357 switch v := v.(*ScopedRouteConfiguration); i { 358 case 0: 359 return &v.state 360 case 1: 361 return &v.sizeCache 362 case 2: 363 return &v.unknownFields 364 default: 365 return nil 366 } 367 } 368 file_envoy_api_v2_scoped_route_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 369 switch v := v.(*ScopedRouteConfiguration_Key); i { 370 case 0: 371 return &v.state 372 case 1: 373 return &v.sizeCache 374 case 2: 375 return &v.unknownFields 376 default: 377 return nil 378 } 379 } 380 file_envoy_api_v2_scoped_route_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 381 switch v := v.(*ScopedRouteConfiguration_Key_Fragment); i { 382 case 0: 383 return &v.state 384 case 1: 385 return &v.sizeCache 386 case 2: 387 return &v.unknownFields 388 default: 389 return nil 390 } 391 } 392 } 393 file_envoy_api_v2_scoped_route_proto_msgTypes[2].OneofWrappers = []interface{}{ 394 (*ScopedRouteConfiguration_Key_Fragment_StringKey)(nil), 395 } 396 type x struct{} 397 out := protoimpl.TypeBuilder{ 398 File: protoimpl.DescBuilder{ 399 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 400 RawDescriptor: file_envoy_api_v2_scoped_route_proto_rawDesc, 401 NumEnums: 0, 402 NumMessages: 3, 403 NumExtensions: 0, 404 NumServices: 0, 405 }, 406 GoTypes: file_envoy_api_v2_scoped_route_proto_goTypes, 407 DependencyIndexes: file_envoy_api_v2_scoped_route_proto_depIdxs, 408 MessageInfos: file_envoy_api_v2_scoped_route_proto_msgTypes, 409 }.Build() 410 File_envoy_api_v2_scoped_route_proto = out.File 411 file_envoy_api_v2_scoped_route_proto_rawDesc = nil 412 file_envoy_api_v2_scoped_route_proto_goTypes = nil 413 file_envoy_api_v2_scoped_route_proto_depIdxs = nil 414 }