github.com/xraypb/xray-core@v1.6.6/app/proxyman/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.18.0 5 // source: app/proxyman/config.proto 6 7 package proxyman 8 9 import ( 10 net "github.com/xraypb/xray-core/common/net" 11 serial "github.com/xraypb/xray-core/common/serial" 12 internet "github.com/xraypb/xray-core/transport/internet" 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 type KnownProtocols int32 27 28 const ( 29 KnownProtocols_HTTP KnownProtocols = 0 30 KnownProtocols_TLS KnownProtocols = 1 31 ) 32 33 // Enum value maps for KnownProtocols. 34 var ( 35 KnownProtocols_name = map[int32]string{ 36 0: "HTTP", 37 1: "TLS", 38 } 39 KnownProtocols_value = map[string]int32{ 40 "HTTP": 0, 41 "TLS": 1, 42 } 43 ) 44 45 func (x KnownProtocols) Enum() *KnownProtocols { 46 p := new(KnownProtocols) 47 *p = x 48 return p 49 } 50 51 func (x KnownProtocols) String() string { 52 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 53 } 54 55 func (KnownProtocols) Descriptor() protoreflect.EnumDescriptor { 56 return file_app_proxyman_config_proto_enumTypes[0].Descriptor() 57 } 58 59 func (KnownProtocols) Type() protoreflect.EnumType { 60 return &file_app_proxyman_config_proto_enumTypes[0] 61 } 62 63 func (x KnownProtocols) Number() protoreflect.EnumNumber { 64 return protoreflect.EnumNumber(x) 65 } 66 67 // Deprecated: Use KnownProtocols.Descriptor instead. 68 func (KnownProtocols) EnumDescriptor() ([]byte, []int) { 69 return file_app_proxyman_config_proto_rawDescGZIP(), []int{0} 70 } 71 72 type AllocationStrategy_Type int32 73 74 const ( 75 // Always allocate all connection handlers. 76 AllocationStrategy_Always AllocationStrategy_Type = 0 77 // Randomly allocate specific range of handlers. 78 AllocationStrategy_Random AllocationStrategy_Type = 1 79 // External. Not supported yet. 80 AllocationStrategy_External AllocationStrategy_Type = 2 81 ) 82 83 // Enum value maps for AllocationStrategy_Type. 84 var ( 85 AllocationStrategy_Type_name = map[int32]string{ 86 0: "Always", 87 1: "Random", 88 2: "External", 89 } 90 AllocationStrategy_Type_value = map[string]int32{ 91 "Always": 0, 92 "Random": 1, 93 "External": 2, 94 } 95 ) 96 97 func (x AllocationStrategy_Type) Enum() *AllocationStrategy_Type { 98 p := new(AllocationStrategy_Type) 99 *p = x 100 return p 101 } 102 103 func (x AllocationStrategy_Type) String() string { 104 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 105 } 106 107 func (AllocationStrategy_Type) Descriptor() protoreflect.EnumDescriptor { 108 return file_app_proxyman_config_proto_enumTypes[1].Descriptor() 109 } 110 111 func (AllocationStrategy_Type) Type() protoreflect.EnumType { 112 return &file_app_proxyman_config_proto_enumTypes[1] 113 } 114 115 func (x AllocationStrategy_Type) Number() protoreflect.EnumNumber { 116 return protoreflect.EnumNumber(x) 117 } 118 119 // Deprecated: Use AllocationStrategy_Type.Descriptor instead. 120 func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int) { 121 return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 0} 122 } 123 124 type InboundConfig struct { 125 state protoimpl.MessageState 126 sizeCache protoimpl.SizeCache 127 unknownFields protoimpl.UnknownFields 128 } 129 130 func (x *InboundConfig) Reset() { 131 *x = InboundConfig{} 132 if protoimpl.UnsafeEnabled { 133 mi := &file_app_proxyman_config_proto_msgTypes[0] 134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 135 ms.StoreMessageInfo(mi) 136 } 137 } 138 139 func (x *InboundConfig) String() string { 140 return protoimpl.X.MessageStringOf(x) 141 } 142 143 func (*InboundConfig) ProtoMessage() {} 144 145 func (x *InboundConfig) ProtoReflect() protoreflect.Message { 146 mi := &file_app_proxyman_config_proto_msgTypes[0] 147 if protoimpl.UnsafeEnabled && x != nil { 148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 149 if ms.LoadMessageInfo() == nil { 150 ms.StoreMessageInfo(mi) 151 } 152 return ms 153 } 154 return mi.MessageOf(x) 155 } 156 157 // Deprecated: Use InboundConfig.ProtoReflect.Descriptor instead. 158 func (*InboundConfig) Descriptor() ([]byte, []int) { 159 return file_app_proxyman_config_proto_rawDescGZIP(), []int{0} 160 } 161 162 type AllocationStrategy struct { 163 state protoimpl.MessageState 164 sizeCache protoimpl.SizeCache 165 unknownFields protoimpl.UnknownFields 166 167 Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.proxyman.AllocationStrategy_Type" json:"type,omitempty"` 168 // Number of handlers (ports) running in parallel. 169 // Default value is 3 if unset. 170 Concurrency *AllocationStrategy_AllocationStrategyConcurrency `protobuf:"bytes,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"` 171 // Number of minutes before a handler is regenerated. 172 // Default value is 5 if unset. 173 Refresh *AllocationStrategy_AllocationStrategyRefresh `protobuf:"bytes,3,opt,name=refresh,proto3" json:"refresh,omitempty"` 174 } 175 176 func (x *AllocationStrategy) Reset() { 177 *x = AllocationStrategy{} 178 if protoimpl.UnsafeEnabled { 179 mi := &file_app_proxyman_config_proto_msgTypes[1] 180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 181 ms.StoreMessageInfo(mi) 182 } 183 } 184 185 func (x *AllocationStrategy) String() string { 186 return protoimpl.X.MessageStringOf(x) 187 } 188 189 func (*AllocationStrategy) ProtoMessage() {} 190 191 func (x *AllocationStrategy) ProtoReflect() protoreflect.Message { 192 mi := &file_app_proxyman_config_proto_msgTypes[1] 193 if protoimpl.UnsafeEnabled && x != nil { 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 if ms.LoadMessageInfo() == nil { 196 ms.StoreMessageInfo(mi) 197 } 198 return ms 199 } 200 return mi.MessageOf(x) 201 } 202 203 // Deprecated: Use AllocationStrategy.ProtoReflect.Descriptor instead. 204 func (*AllocationStrategy) Descriptor() ([]byte, []int) { 205 return file_app_proxyman_config_proto_rawDescGZIP(), []int{1} 206 } 207 208 func (x *AllocationStrategy) GetType() AllocationStrategy_Type { 209 if x != nil { 210 return x.Type 211 } 212 return AllocationStrategy_Always 213 } 214 215 func (x *AllocationStrategy) GetConcurrency() *AllocationStrategy_AllocationStrategyConcurrency { 216 if x != nil { 217 return x.Concurrency 218 } 219 return nil 220 } 221 222 func (x *AllocationStrategy) GetRefresh() *AllocationStrategy_AllocationStrategyRefresh { 223 if x != nil { 224 return x.Refresh 225 } 226 return nil 227 } 228 229 type SniffingConfig struct { 230 state protoimpl.MessageState 231 sizeCache protoimpl.SizeCache 232 unknownFields protoimpl.UnknownFields 233 234 // Whether or not to enable content sniffing on an inbound connection. 235 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 236 // Override target destination if sniff'ed protocol is in the given list. 237 // Supported values are "http", "tls", "fakedns". 238 DestinationOverride []string `protobuf:"bytes,2,rep,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"` 239 DomainsExcluded []string `protobuf:"bytes,3,rep,name=domains_excluded,json=domainsExcluded,proto3" json:"domains_excluded,omitempty"` 240 // Whether should only try to sniff metadata without waiting for client input. 241 // Can be used to support SMTP like protocol where server send the first 242 // message. 243 MetadataOnly bool `protobuf:"varint,4,opt,name=metadata_only,json=metadataOnly,proto3" json:"metadata_only,omitempty"` 244 RouteOnly bool `protobuf:"varint,5,opt,name=route_only,json=routeOnly,proto3" json:"route_only,omitempty"` 245 } 246 247 func (x *SniffingConfig) Reset() { 248 *x = SniffingConfig{} 249 if protoimpl.UnsafeEnabled { 250 mi := &file_app_proxyman_config_proto_msgTypes[2] 251 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 252 ms.StoreMessageInfo(mi) 253 } 254 } 255 256 func (x *SniffingConfig) String() string { 257 return protoimpl.X.MessageStringOf(x) 258 } 259 260 func (*SniffingConfig) ProtoMessage() {} 261 262 func (x *SniffingConfig) ProtoReflect() protoreflect.Message { 263 mi := &file_app_proxyman_config_proto_msgTypes[2] 264 if protoimpl.UnsafeEnabled && x != nil { 265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 266 if ms.LoadMessageInfo() == nil { 267 ms.StoreMessageInfo(mi) 268 } 269 return ms 270 } 271 return mi.MessageOf(x) 272 } 273 274 // Deprecated: Use SniffingConfig.ProtoReflect.Descriptor instead. 275 func (*SniffingConfig) Descriptor() ([]byte, []int) { 276 return file_app_proxyman_config_proto_rawDescGZIP(), []int{2} 277 } 278 279 func (x *SniffingConfig) GetEnabled() bool { 280 if x != nil { 281 return x.Enabled 282 } 283 return false 284 } 285 286 func (x *SniffingConfig) GetDestinationOverride() []string { 287 if x != nil { 288 return x.DestinationOverride 289 } 290 return nil 291 } 292 293 func (x *SniffingConfig) GetDomainsExcluded() []string { 294 if x != nil { 295 return x.DomainsExcluded 296 } 297 return nil 298 } 299 300 func (x *SniffingConfig) GetMetadataOnly() bool { 301 if x != nil { 302 return x.MetadataOnly 303 } 304 return false 305 } 306 307 func (x *SniffingConfig) GetRouteOnly() bool { 308 if x != nil { 309 return x.RouteOnly 310 } 311 return false 312 } 313 314 type ReceiverConfig struct { 315 state protoimpl.MessageState 316 sizeCache protoimpl.SizeCache 317 unknownFields protoimpl.UnknownFields 318 319 // PortList specifies the ports which the Receiver should listen on. 320 PortList *net.PortList `protobuf:"bytes,1,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"` 321 // Listen specifies the IP address that the Receiver should listen on. 322 Listen *net.IPOrDomain `protobuf:"bytes,2,opt,name=listen,proto3" json:"listen,omitempty"` 323 AllocationStrategy *AllocationStrategy `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy,proto3" json:"allocation_strategy,omitempty"` 324 StreamSettings *internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"` 325 ReceiveOriginalDestination bool `protobuf:"varint,5,opt,name=receive_original_destination,json=receiveOriginalDestination,proto3" json:"receive_original_destination,omitempty"` 326 // Override domains for the given protocol. 327 // Deprecated. Use sniffing_settings. 328 // 329 // Deprecated: Do not use. 330 DomainOverride []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,proto3,enum=xray.app.proxyman.KnownProtocols" json:"domain_override,omitempty"` 331 SniffingSettings *SniffingConfig `protobuf:"bytes,8,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"` 332 } 333 334 func (x *ReceiverConfig) Reset() { 335 *x = ReceiverConfig{} 336 if protoimpl.UnsafeEnabled { 337 mi := &file_app_proxyman_config_proto_msgTypes[3] 338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 339 ms.StoreMessageInfo(mi) 340 } 341 } 342 343 func (x *ReceiverConfig) String() string { 344 return protoimpl.X.MessageStringOf(x) 345 } 346 347 func (*ReceiverConfig) ProtoMessage() {} 348 349 func (x *ReceiverConfig) ProtoReflect() protoreflect.Message { 350 mi := &file_app_proxyman_config_proto_msgTypes[3] 351 if protoimpl.UnsafeEnabled && x != nil { 352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 353 if ms.LoadMessageInfo() == nil { 354 ms.StoreMessageInfo(mi) 355 } 356 return ms 357 } 358 return mi.MessageOf(x) 359 } 360 361 // Deprecated: Use ReceiverConfig.ProtoReflect.Descriptor instead. 362 func (*ReceiverConfig) Descriptor() ([]byte, []int) { 363 return file_app_proxyman_config_proto_rawDescGZIP(), []int{3} 364 } 365 366 func (x *ReceiverConfig) GetPortList() *net.PortList { 367 if x != nil { 368 return x.PortList 369 } 370 return nil 371 } 372 373 func (x *ReceiverConfig) GetListen() *net.IPOrDomain { 374 if x != nil { 375 return x.Listen 376 } 377 return nil 378 } 379 380 func (x *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy { 381 if x != nil { 382 return x.AllocationStrategy 383 } 384 return nil 385 } 386 387 func (x *ReceiverConfig) GetStreamSettings() *internet.StreamConfig { 388 if x != nil { 389 return x.StreamSettings 390 } 391 return nil 392 } 393 394 func (x *ReceiverConfig) GetReceiveOriginalDestination() bool { 395 if x != nil { 396 return x.ReceiveOriginalDestination 397 } 398 return false 399 } 400 401 // Deprecated: Do not use. 402 func (x *ReceiverConfig) GetDomainOverride() []KnownProtocols { 403 if x != nil { 404 return x.DomainOverride 405 } 406 return nil 407 } 408 409 func (x *ReceiverConfig) GetSniffingSettings() *SniffingConfig { 410 if x != nil { 411 return x.SniffingSettings 412 } 413 return nil 414 } 415 416 type InboundHandlerConfig struct { 417 state protoimpl.MessageState 418 sizeCache protoimpl.SizeCache 419 unknownFields protoimpl.UnknownFields 420 421 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 422 ReceiverSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"` 423 ProxySettings *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"` 424 } 425 426 func (x *InboundHandlerConfig) Reset() { 427 *x = InboundHandlerConfig{} 428 if protoimpl.UnsafeEnabled { 429 mi := &file_app_proxyman_config_proto_msgTypes[4] 430 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 431 ms.StoreMessageInfo(mi) 432 } 433 } 434 435 func (x *InboundHandlerConfig) String() string { 436 return protoimpl.X.MessageStringOf(x) 437 } 438 439 func (*InboundHandlerConfig) ProtoMessage() {} 440 441 func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message { 442 mi := &file_app_proxyman_config_proto_msgTypes[4] 443 if protoimpl.UnsafeEnabled && x != nil { 444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 445 if ms.LoadMessageInfo() == nil { 446 ms.StoreMessageInfo(mi) 447 } 448 return ms 449 } 450 return mi.MessageOf(x) 451 } 452 453 // Deprecated: Use InboundHandlerConfig.ProtoReflect.Descriptor instead. 454 func (*InboundHandlerConfig) Descriptor() ([]byte, []int) { 455 return file_app_proxyman_config_proto_rawDescGZIP(), []int{4} 456 } 457 458 func (x *InboundHandlerConfig) GetTag() string { 459 if x != nil { 460 return x.Tag 461 } 462 return "" 463 } 464 465 func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage { 466 if x != nil { 467 return x.ReceiverSettings 468 } 469 return nil 470 } 471 472 func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage { 473 if x != nil { 474 return x.ProxySettings 475 } 476 return nil 477 } 478 479 type OutboundConfig struct { 480 state protoimpl.MessageState 481 sizeCache protoimpl.SizeCache 482 unknownFields protoimpl.UnknownFields 483 } 484 485 func (x *OutboundConfig) Reset() { 486 *x = OutboundConfig{} 487 if protoimpl.UnsafeEnabled { 488 mi := &file_app_proxyman_config_proto_msgTypes[5] 489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 490 ms.StoreMessageInfo(mi) 491 } 492 } 493 494 func (x *OutboundConfig) String() string { 495 return protoimpl.X.MessageStringOf(x) 496 } 497 498 func (*OutboundConfig) ProtoMessage() {} 499 500 func (x *OutboundConfig) ProtoReflect() protoreflect.Message { 501 mi := &file_app_proxyman_config_proto_msgTypes[5] 502 if protoimpl.UnsafeEnabled && x != nil { 503 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 504 if ms.LoadMessageInfo() == nil { 505 ms.StoreMessageInfo(mi) 506 } 507 return ms 508 } 509 return mi.MessageOf(x) 510 } 511 512 // Deprecated: Use OutboundConfig.ProtoReflect.Descriptor instead. 513 func (*OutboundConfig) Descriptor() ([]byte, []int) { 514 return file_app_proxyman_config_proto_rawDescGZIP(), []int{5} 515 } 516 517 type SenderConfig struct { 518 state protoimpl.MessageState 519 sizeCache protoimpl.SizeCache 520 unknownFields protoimpl.UnknownFields 521 522 // Send traffic through the given IP. Only IP is allowed. 523 Via *net.IPOrDomain `protobuf:"bytes,1,opt,name=via,proto3" json:"via,omitempty"` 524 StreamSettings *internet.StreamConfig `protobuf:"bytes,2,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"` 525 ProxySettings *internet.ProxyConfig `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"` 526 MultiplexSettings *MultiplexingConfig `protobuf:"bytes,4,opt,name=multiplex_settings,json=multiplexSettings,proto3" json:"multiplex_settings,omitempty"` 527 } 528 529 func (x *SenderConfig) Reset() { 530 *x = SenderConfig{} 531 if protoimpl.UnsafeEnabled { 532 mi := &file_app_proxyman_config_proto_msgTypes[6] 533 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 534 ms.StoreMessageInfo(mi) 535 } 536 } 537 538 func (x *SenderConfig) String() string { 539 return protoimpl.X.MessageStringOf(x) 540 } 541 542 func (*SenderConfig) ProtoMessage() {} 543 544 func (x *SenderConfig) ProtoReflect() protoreflect.Message { 545 mi := &file_app_proxyman_config_proto_msgTypes[6] 546 if protoimpl.UnsafeEnabled && x != nil { 547 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 548 if ms.LoadMessageInfo() == nil { 549 ms.StoreMessageInfo(mi) 550 } 551 return ms 552 } 553 return mi.MessageOf(x) 554 } 555 556 // Deprecated: Use SenderConfig.ProtoReflect.Descriptor instead. 557 func (*SenderConfig) Descriptor() ([]byte, []int) { 558 return file_app_proxyman_config_proto_rawDescGZIP(), []int{6} 559 } 560 561 func (x *SenderConfig) GetVia() *net.IPOrDomain { 562 if x != nil { 563 return x.Via 564 } 565 return nil 566 } 567 568 func (x *SenderConfig) GetStreamSettings() *internet.StreamConfig { 569 if x != nil { 570 return x.StreamSettings 571 } 572 return nil 573 } 574 575 func (x *SenderConfig) GetProxySettings() *internet.ProxyConfig { 576 if x != nil { 577 return x.ProxySettings 578 } 579 return nil 580 } 581 582 func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig { 583 if x != nil { 584 return x.MultiplexSettings 585 } 586 return nil 587 } 588 589 type MultiplexingConfig struct { 590 state protoimpl.MessageState 591 sizeCache protoimpl.SizeCache 592 unknownFields protoimpl.UnknownFields 593 594 // Whether or not Mux is enabled. 595 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 596 // Max number of concurrent connections that one Mux connection can handle. 597 Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"` 598 } 599 600 func (x *MultiplexingConfig) Reset() { 601 *x = MultiplexingConfig{} 602 if protoimpl.UnsafeEnabled { 603 mi := &file_app_proxyman_config_proto_msgTypes[7] 604 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 605 ms.StoreMessageInfo(mi) 606 } 607 } 608 609 func (x *MultiplexingConfig) String() string { 610 return protoimpl.X.MessageStringOf(x) 611 } 612 613 func (*MultiplexingConfig) ProtoMessage() {} 614 615 func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message { 616 mi := &file_app_proxyman_config_proto_msgTypes[7] 617 if protoimpl.UnsafeEnabled && x != nil { 618 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 619 if ms.LoadMessageInfo() == nil { 620 ms.StoreMessageInfo(mi) 621 } 622 return ms 623 } 624 return mi.MessageOf(x) 625 } 626 627 // Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead. 628 func (*MultiplexingConfig) Descriptor() ([]byte, []int) { 629 return file_app_proxyman_config_proto_rawDescGZIP(), []int{7} 630 } 631 632 func (x *MultiplexingConfig) GetEnabled() bool { 633 if x != nil { 634 return x.Enabled 635 } 636 return false 637 } 638 639 func (x *MultiplexingConfig) GetConcurrency() uint32 { 640 if x != nil { 641 return x.Concurrency 642 } 643 return 0 644 } 645 646 type AllocationStrategy_AllocationStrategyConcurrency struct { 647 state protoimpl.MessageState 648 sizeCache protoimpl.SizeCache 649 unknownFields protoimpl.UnknownFields 650 651 Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 652 } 653 654 func (x *AllocationStrategy_AllocationStrategyConcurrency) Reset() { 655 *x = AllocationStrategy_AllocationStrategyConcurrency{} 656 if protoimpl.UnsafeEnabled { 657 mi := &file_app_proxyman_config_proto_msgTypes[8] 658 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 659 ms.StoreMessageInfo(mi) 660 } 661 } 662 663 func (x *AllocationStrategy_AllocationStrategyConcurrency) String() string { 664 return protoimpl.X.MessageStringOf(x) 665 } 666 667 func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage() {} 668 669 func (x *AllocationStrategy_AllocationStrategyConcurrency) ProtoReflect() protoreflect.Message { 670 mi := &file_app_proxyman_config_proto_msgTypes[8] 671 if protoimpl.UnsafeEnabled && x != nil { 672 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 673 if ms.LoadMessageInfo() == nil { 674 ms.StoreMessageInfo(mi) 675 } 676 return ms 677 } 678 return mi.MessageOf(x) 679 } 680 681 // Deprecated: Use AllocationStrategy_AllocationStrategyConcurrency.ProtoReflect.Descriptor instead. 682 func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int) { 683 return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 0} 684 } 685 686 func (x *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32 { 687 if x != nil { 688 return x.Value 689 } 690 return 0 691 } 692 693 type AllocationStrategy_AllocationStrategyRefresh struct { 694 state protoimpl.MessageState 695 sizeCache protoimpl.SizeCache 696 unknownFields protoimpl.UnknownFields 697 698 Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 699 } 700 701 func (x *AllocationStrategy_AllocationStrategyRefresh) Reset() { 702 *x = AllocationStrategy_AllocationStrategyRefresh{} 703 if protoimpl.UnsafeEnabled { 704 mi := &file_app_proxyman_config_proto_msgTypes[9] 705 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 706 ms.StoreMessageInfo(mi) 707 } 708 } 709 710 func (x *AllocationStrategy_AllocationStrategyRefresh) String() string { 711 return protoimpl.X.MessageStringOf(x) 712 } 713 714 func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {} 715 716 func (x *AllocationStrategy_AllocationStrategyRefresh) ProtoReflect() protoreflect.Message { 717 mi := &file_app_proxyman_config_proto_msgTypes[9] 718 if protoimpl.UnsafeEnabled && x != nil { 719 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 720 if ms.LoadMessageInfo() == nil { 721 ms.StoreMessageInfo(mi) 722 } 723 return ms 724 } 725 return mi.MessageOf(x) 726 } 727 728 // Deprecated: Use AllocationStrategy_AllocationStrategyRefresh.ProtoReflect.Descriptor instead. 729 func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int) { 730 return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 1} 731 } 732 733 func (x *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 { 734 if x != nil { 735 return x.Value 736 } 737 return 0 738 } 739 740 var File_app_proxyman_config_proto protoreflect.FileDescriptor 741 742 var file_app_proxyman_config_proto_rawDesc = []byte{ 743 0x0a, 0x19, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63, 744 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x78, 0x72, 0x61, 745 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x1a, 0x18, 746 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 747 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 748 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 749 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 750 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 751 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 752 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 753 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 754 0x6e, 0x66, 0x69, 0x67, 0x22, 0xae, 0x03, 0x0a, 0x12, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 755 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x3e, 0x0a, 0x04, 0x74, 756 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 757 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 758 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 759 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x0b, 0x63, 760 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 761 0x32, 0x43, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 762 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 763 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 764 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 765 0x72, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 766 0x63, 0x79, 0x12, 0x59, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20, 767 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 768 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 769 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 770 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66, 771 0x72, 0x65, 0x73, 0x68, 0x52, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x1a, 0x35, 0x0a, 772 0x1d, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 773 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14, 774 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 775 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x31, 0x0a, 0x19, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 776 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 777 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 778 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 779 0x0a, 0x0a, 0x06, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x52, 780 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, 0x72, 781 0x6e, 0x61, 0x6c, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x0e, 0x53, 0x6e, 0x69, 0x66, 0x66, 0x69, 782 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 783 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 784 0x65, 0x64, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 785 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 786 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 787 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 788 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 789 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 790 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6f, 0x6e, 0x6c, 791 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 792 0x61, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6f, 793 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x6f, 0x75, 0x74, 0x65, 794 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x8d, 0x04, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 795 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 796 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 797 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 798 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 799 0x33, 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 800 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 801 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x6c, 0x69, 802 0x73, 0x74, 0x65, 0x6e, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 803 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 804 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 805 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 806 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 807 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4e, 0x0a, 0x0f, 808 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 809 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 810 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 811 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 812 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x1c, 813 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 814 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 815 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 816 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 817 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 818 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 819 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 820 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 821 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x4e, 822 0x0a, 0x11, 0x73, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 823 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 824 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x6e, 825 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x6e, 826 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x4a, 0x04, 827 0x08, 0x06, 0x10, 0x07, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 828 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 829 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 830 0x4d, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 831 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 832 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 833 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65, 834 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x47, 835 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 836 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 837 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 838 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 839 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 840 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xb0, 0x02, 0x0a, 0x0c, 0x53, 0x65, 841 0x6e, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x03, 0x76, 0x69, 842 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 843 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 844 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x03, 0x76, 0x69, 0x61, 0x12, 0x4e, 0x0a, 0x0f, 0x73, 0x74, 0x72, 845 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 846 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 847 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x74, 0x72, 848 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x61, 849 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4b, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 850 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 851 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 852 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x78, 853 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 854 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 855 0x6c, 0x65, 0x78, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 856 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 857 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 858 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69, 859 0x70, 0x6c, 0x65, 0x78, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x50, 0x0a, 0x12, 860 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 861 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 862 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 863 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 864 0x0d, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x2a, 0x23, 865 0x0a, 0x0e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 866 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x4c, 867 0x53, 0x10, 0x01, 0x42, 0x55, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 868 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x50, 0x01, 0x5a, 0x26, 869 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 870 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 871 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0xaa, 0x02, 0x11, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 872 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 873 0x6f, 0x33, 874 } 875 876 var ( 877 file_app_proxyman_config_proto_rawDescOnce sync.Once 878 file_app_proxyman_config_proto_rawDescData = file_app_proxyman_config_proto_rawDesc 879 ) 880 881 func file_app_proxyman_config_proto_rawDescGZIP() []byte { 882 file_app_proxyman_config_proto_rawDescOnce.Do(func() { 883 file_app_proxyman_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_proxyman_config_proto_rawDescData) 884 }) 885 return file_app_proxyman_config_proto_rawDescData 886 } 887 888 var file_app_proxyman_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 889 var file_app_proxyman_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 890 var file_app_proxyman_config_proto_goTypes = []interface{}{ 891 (KnownProtocols)(0), // 0: xray.app.proxyman.KnownProtocols 892 (AllocationStrategy_Type)(0), // 1: xray.app.proxyman.AllocationStrategy.Type 893 (*InboundConfig)(nil), // 2: xray.app.proxyman.InboundConfig 894 (*AllocationStrategy)(nil), // 3: xray.app.proxyman.AllocationStrategy 895 (*SniffingConfig)(nil), // 4: xray.app.proxyman.SniffingConfig 896 (*ReceiverConfig)(nil), // 5: xray.app.proxyman.ReceiverConfig 897 (*InboundHandlerConfig)(nil), // 6: xray.app.proxyman.InboundHandlerConfig 898 (*OutboundConfig)(nil), // 7: xray.app.proxyman.OutboundConfig 899 (*SenderConfig)(nil), // 8: xray.app.proxyman.SenderConfig 900 (*MultiplexingConfig)(nil), // 9: xray.app.proxyman.MultiplexingConfig 901 (*AllocationStrategy_AllocationStrategyConcurrency)(nil), // 10: xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency 902 (*AllocationStrategy_AllocationStrategyRefresh)(nil), // 11: xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh 903 (*net.PortList)(nil), // 12: xray.common.net.PortList 904 (*net.IPOrDomain)(nil), // 13: xray.common.net.IPOrDomain 905 (*internet.StreamConfig)(nil), // 14: xray.transport.internet.StreamConfig 906 (*serial.TypedMessage)(nil), // 15: xray.common.serial.TypedMessage 907 (*internet.ProxyConfig)(nil), // 16: xray.transport.internet.ProxyConfig 908 } 909 var file_app_proxyman_config_proto_depIdxs = []int32{ 910 1, // 0: xray.app.proxyman.AllocationStrategy.type:type_name -> xray.app.proxyman.AllocationStrategy.Type 911 10, // 1: xray.app.proxyman.AllocationStrategy.concurrency:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency 912 11, // 2: xray.app.proxyman.AllocationStrategy.refresh:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh 913 12, // 3: xray.app.proxyman.ReceiverConfig.port_list:type_name -> xray.common.net.PortList 914 13, // 4: xray.app.proxyman.ReceiverConfig.listen:type_name -> xray.common.net.IPOrDomain 915 3, // 5: xray.app.proxyman.ReceiverConfig.allocation_strategy:type_name -> xray.app.proxyman.AllocationStrategy 916 14, // 6: xray.app.proxyman.ReceiverConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig 917 0, // 7: xray.app.proxyman.ReceiverConfig.domain_override:type_name -> xray.app.proxyman.KnownProtocols 918 4, // 8: xray.app.proxyman.ReceiverConfig.sniffing_settings:type_name -> xray.app.proxyman.SniffingConfig 919 15, // 9: xray.app.proxyman.InboundHandlerConfig.receiver_settings:type_name -> xray.common.serial.TypedMessage 920 15, // 10: xray.app.proxyman.InboundHandlerConfig.proxy_settings:type_name -> xray.common.serial.TypedMessage 921 13, // 11: xray.app.proxyman.SenderConfig.via:type_name -> xray.common.net.IPOrDomain 922 14, // 12: xray.app.proxyman.SenderConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig 923 16, // 13: xray.app.proxyman.SenderConfig.proxy_settings:type_name -> xray.transport.internet.ProxyConfig 924 9, // 14: xray.app.proxyman.SenderConfig.multiplex_settings:type_name -> xray.app.proxyman.MultiplexingConfig 925 15, // [15:15] is the sub-list for method output_type 926 15, // [15:15] is the sub-list for method input_type 927 15, // [15:15] is the sub-list for extension type_name 928 15, // [15:15] is the sub-list for extension extendee 929 0, // [0:15] is the sub-list for field type_name 930 } 931 932 func init() { file_app_proxyman_config_proto_init() } 933 func file_app_proxyman_config_proto_init() { 934 if File_app_proxyman_config_proto != nil { 935 return 936 } 937 if !protoimpl.UnsafeEnabled { 938 file_app_proxyman_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 939 switch v := v.(*InboundConfig); i { 940 case 0: 941 return &v.state 942 case 1: 943 return &v.sizeCache 944 case 2: 945 return &v.unknownFields 946 default: 947 return nil 948 } 949 } 950 file_app_proxyman_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 951 switch v := v.(*AllocationStrategy); i { 952 case 0: 953 return &v.state 954 case 1: 955 return &v.sizeCache 956 case 2: 957 return &v.unknownFields 958 default: 959 return nil 960 } 961 } 962 file_app_proxyman_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 963 switch v := v.(*SniffingConfig); i { 964 case 0: 965 return &v.state 966 case 1: 967 return &v.sizeCache 968 case 2: 969 return &v.unknownFields 970 default: 971 return nil 972 } 973 } 974 file_app_proxyman_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 975 switch v := v.(*ReceiverConfig); i { 976 case 0: 977 return &v.state 978 case 1: 979 return &v.sizeCache 980 case 2: 981 return &v.unknownFields 982 default: 983 return nil 984 } 985 } 986 file_app_proxyman_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 987 switch v := v.(*InboundHandlerConfig); i { 988 case 0: 989 return &v.state 990 case 1: 991 return &v.sizeCache 992 case 2: 993 return &v.unknownFields 994 default: 995 return nil 996 } 997 } 998 file_app_proxyman_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 999 switch v := v.(*OutboundConfig); i { 1000 case 0: 1001 return &v.state 1002 case 1: 1003 return &v.sizeCache 1004 case 2: 1005 return &v.unknownFields 1006 default: 1007 return nil 1008 } 1009 } 1010 file_app_proxyman_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1011 switch v := v.(*SenderConfig); i { 1012 case 0: 1013 return &v.state 1014 case 1: 1015 return &v.sizeCache 1016 case 2: 1017 return &v.unknownFields 1018 default: 1019 return nil 1020 } 1021 } 1022 file_app_proxyman_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1023 switch v := v.(*MultiplexingConfig); i { 1024 case 0: 1025 return &v.state 1026 case 1: 1027 return &v.sizeCache 1028 case 2: 1029 return &v.unknownFields 1030 default: 1031 return nil 1032 } 1033 } 1034 file_app_proxyman_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1035 switch v := v.(*AllocationStrategy_AllocationStrategyConcurrency); i { 1036 case 0: 1037 return &v.state 1038 case 1: 1039 return &v.sizeCache 1040 case 2: 1041 return &v.unknownFields 1042 default: 1043 return nil 1044 } 1045 } 1046 file_app_proxyman_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1047 switch v := v.(*AllocationStrategy_AllocationStrategyRefresh); i { 1048 case 0: 1049 return &v.state 1050 case 1: 1051 return &v.sizeCache 1052 case 2: 1053 return &v.unknownFields 1054 default: 1055 return nil 1056 } 1057 } 1058 } 1059 type x struct{} 1060 out := protoimpl.TypeBuilder{ 1061 File: protoimpl.DescBuilder{ 1062 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1063 RawDescriptor: file_app_proxyman_config_proto_rawDesc, 1064 NumEnums: 2, 1065 NumMessages: 10, 1066 NumExtensions: 0, 1067 NumServices: 0, 1068 }, 1069 GoTypes: file_app_proxyman_config_proto_goTypes, 1070 DependencyIndexes: file_app_proxyman_config_proto_depIdxs, 1071 EnumInfos: file_app_proxyman_config_proto_enumTypes, 1072 MessageInfos: file_app_proxyman_config_proto_msgTypes, 1073 }.Build() 1074 File_app_proxyman_config_proto = out.File 1075 file_app_proxyman_config_proto_rawDesc = nil 1076 file_app_proxyman_config_proto_goTypes = nil 1077 file_app_proxyman_config_proto_depIdxs = nil 1078 }