config.pb.go 42 KB

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