config.pb.go 41 KB

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