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