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