config.pb.go 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: app/proxyman/config.proto
  6. package proxyman
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. net "github.com/xtls/xray-core/common/net"
  10. serial "github.com/xtls/xray-core/common/serial"
  11. internet "github.com/xtls/xray-core/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=xray.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".
  203. DestinationOverride []string `protobuf:"bytes,2,rep,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  204. DomainsExcluded []string `protobuf:"bytes,3,rep,name=domains_excluded,json=domainsExcluded,proto3" json:"domains_excluded,omitempty"`
  205. }
  206. func (x *SniffingConfig) Reset() {
  207. *x = SniffingConfig{}
  208. if protoimpl.UnsafeEnabled {
  209. mi := &file_app_proxyman_config_proto_msgTypes[2]
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. ms.StoreMessageInfo(mi)
  212. }
  213. }
  214. func (x *SniffingConfig) String() string {
  215. return protoimpl.X.MessageStringOf(x)
  216. }
  217. func (*SniffingConfig) ProtoMessage() {}
  218. func (x *SniffingConfig) ProtoReflect() protoreflect.Message {
  219. mi := &file_app_proxyman_config_proto_msgTypes[2]
  220. if protoimpl.UnsafeEnabled && x != nil {
  221. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  222. if ms.LoadMessageInfo() == nil {
  223. ms.StoreMessageInfo(mi)
  224. }
  225. return ms
  226. }
  227. return mi.MessageOf(x)
  228. }
  229. // Deprecated: Use SniffingConfig.ProtoReflect.Descriptor instead.
  230. func (*SniffingConfig) Descriptor() ([]byte, []int) {
  231. return file_app_proxyman_config_proto_rawDescGZIP(), []int{2}
  232. }
  233. func (x *SniffingConfig) GetEnabled() bool {
  234. if x != nil {
  235. return x.Enabled
  236. }
  237. return false
  238. }
  239. func (x *SniffingConfig) GetDestinationOverride() []string {
  240. if x != nil {
  241. return x.DestinationOverride
  242. }
  243. return nil
  244. }
  245. func (x *SniffingConfig) GetDomainsExcluded() []string {
  246. if x != nil {
  247. return x.DomainsExcluded
  248. }
  249. return nil
  250. }
  251. type ReceiverConfig struct {
  252. state protoimpl.MessageState
  253. sizeCache protoimpl.SizeCache
  254. unknownFields protoimpl.UnknownFields
  255. // PortRange specifies the ports which the Receiver should listen on.
  256. PortRange *net.PortRange `protobuf:"bytes,1,opt,name=port_range,json=portRange,proto3" json:"port_range,omitempty"`
  257. // Listen specifies the IP address that the Receiver should listen on.
  258. Listen *net.IPOrDomain `protobuf:"bytes,2,opt,name=listen,proto3" json:"listen,omitempty"`
  259. AllocationStrategy *AllocationStrategy `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy,proto3" json:"allocation_strategy,omitempty"`
  260. StreamSettings *internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"`
  261. ReceiveOriginalDestination bool `protobuf:"varint,5,opt,name=receive_original_destination,json=receiveOriginalDestination,proto3" json:"receive_original_destination,omitempty"`
  262. // Override domains for the given protocol.
  263. // Deprecated. Use sniffing_settings.
  264. //
  265. // Deprecated: Do not use.
  266. DomainOverride []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,proto3,enum=xray.app.proxyman.KnownProtocols" json:"domain_override,omitempty"`
  267. SniffingSettings *SniffingConfig `protobuf:"bytes,8,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"`
  268. }
  269. func (x *ReceiverConfig) Reset() {
  270. *x = ReceiverConfig{}
  271. if protoimpl.UnsafeEnabled {
  272. mi := &file_app_proxyman_config_proto_msgTypes[3]
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. ms.StoreMessageInfo(mi)
  275. }
  276. }
  277. func (x *ReceiverConfig) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*ReceiverConfig) ProtoMessage() {}
  281. func (x *ReceiverConfig) ProtoReflect() protoreflect.Message {
  282. mi := &file_app_proxyman_config_proto_msgTypes[3]
  283. if protoimpl.UnsafeEnabled && x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use ReceiverConfig.ProtoReflect.Descriptor instead.
  293. func (*ReceiverConfig) Descriptor() ([]byte, []int) {
  294. return file_app_proxyman_config_proto_rawDescGZIP(), []int{3}
  295. }
  296. func (x *ReceiverConfig) GetPortRange() *net.PortRange {
  297. if x != nil {
  298. return x.PortRange
  299. }
  300. return nil
  301. }
  302. func (x *ReceiverConfig) GetListen() *net.IPOrDomain {
  303. if x != nil {
  304. return x.Listen
  305. }
  306. return nil
  307. }
  308. func (x *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy {
  309. if x != nil {
  310. return x.AllocationStrategy
  311. }
  312. return nil
  313. }
  314. func (x *ReceiverConfig) GetStreamSettings() *internet.StreamConfig {
  315. if x != nil {
  316. return x.StreamSettings
  317. }
  318. return nil
  319. }
  320. func (x *ReceiverConfig) GetReceiveOriginalDestination() bool {
  321. if x != nil {
  322. return x.ReceiveOriginalDestination
  323. }
  324. return false
  325. }
  326. // Deprecated: Do not use.
  327. func (x *ReceiverConfig) GetDomainOverride() []KnownProtocols {
  328. if x != nil {
  329. return x.DomainOverride
  330. }
  331. return nil
  332. }
  333. func (x *ReceiverConfig) GetSniffingSettings() *SniffingConfig {
  334. if x != nil {
  335. return x.SniffingSettings
  336. }
  337. return nil
  338. }
  339. type InboundHandlerConfig struct {
  340. state protoimpl.MessageState
  341. sizeCache protoimpl.SizeCache
  342. unknownFields protoimpl.UnknownFields
  343. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  344. ReceiverSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"`
  345. ProxySettings *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
  346. }
  347. func (x *InboundHandlerConfig) Reset() {
  348. *x = InboundHandlerConfig{}
  349. if protoimpl.UnsafeEnabled {
  350. mi := &file_app_proxyman_config_proto_msgTypes[4]
  351. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  352. ms.StoreMessageInfo(mi)
  353. }
  354. }
  355. func (x *InboundHandlerConfig) String() string {
  356. return protoimpl.X.MessageStringOf(x)
  357. }
  358. func (*InboundHandlerConfig) ProtoMessage() {}
  359. func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message {
  360. mi := &file_app_proxyman_config_proto_msgTypes[4]
  361. if protoimpl.UnsafeEnabled && x != nil {
  362. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  363. if ms.LoadMessageInfo() == nil {
  364. ms.StoreMessageInfo(mi)
  365. }
  366. return ms
  367. }
  368. return mi.MessageOf(x)
  369. }
  370. // Deprecated: Use InboundHandlerConfig.ProtoReflect.Descriptor instead.
  371. func (*InboundHandlerConfig) Descriptor() ([]byte, []int) {
  372. return file_app_proxyman_config_proto_rawDescGZIP(), []int{4}
  373. }
  374. func (x *InboundHandlerConfig) GetTag() string {
  375. if x != nil {
  376. return x.Tag
  377. }
  378. return ""
  379. }
  380. func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage {
  381. if x != nil {
  382. return x.ReceiverSettings
  383. }
  384. return nil
  385. }
  386. func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage {
  387. if x != nil {
  388. return x.ProxySettings
  389. }
  390. return nil
  391. }
  392. type OutboundConfig struct {
  393. state protoimpl.MessageState
  394. sizeCache protoimpl.SizeCache
  395. unknownFields protoimpl.UnknownFields
  396. }
  397. func (x *OutboundConfig) Reset() {
  398. *x = OutboundConfig{}
  399. if protoimpl.UnsafeEnabled {
  400. mi := &file_app_proxyman_config_proto_msgTypes[5]
  401. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  402. ms.StoreMessageInfo(mi)
  403. }
  404. }
  405. func (x *OutboundConfig) String() string {
  406. return protoimpl.X.MessageStringOf(x)
  407. }
  408. func (*OutboundConfig) ProtoMessage() {}
  409. func (x *OutboundConfig) ProtoReflect() protoreflect.Message {
  410. mi := &file_app_proxyman_config_proto_msgTypes[5]
  411. if protoimpl.UnsafeEnabled && x != nil {
  412. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  413. if ms.LoadMessageInfo() == nil {
  414. ms.StoreMessageInfo(mi)
  415. }
  416. return ms
  417. }
  418. return mi.MessageOf(x)
  419. }
  420. // Deprecated: Use OutboundConfig.ProtoReflect.Descriptor instead.
  421. func (*OutboundConfig) Descriptor() ([]byte, []int) {
  422. return file_app_proxyman_config_proto_rawDescGZIP(), []int{5}
  423. }
  424. type SenderConfig struct {
  425. state protoimpl.MessageState
  426. sizeCache protoimpl.SizeCache
  427. unknownFields protoimpl.UnknownFields
  428. // Send traffic through the given IP. Only IP is allowed.
  429. Via *net.IPOrDomain `protobuf:"bytes,1,opt,name=via,proto3" json:"via,omitempty"`
  430. StreamSettings *internet.StreamConfig `protobuf:"bytes,2,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"`
  431. ProxySettings *internet.ProxyConfig `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
  432. MultiplexSettings *MultiplexingConfig `protobuf:"bytes,4,opt,name=multiplex_settings,json=multiplexSettings,proto3" json:"multiplex_settings,omitempty"`
  433. }
  434. func (x *SenderConfig) Reset() {
  435. *x = SenderConfig{}
  436. if protoimpl.UnsafeEnabled {
  437. mi := &file_app_proxyman_config_proto_msgTypes[6]
  438. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  439. ms.StoreMessageInfo(mi)
  440. }
  441. }
  442. func (x *SenderConfig) String() string {
  443. return protoimpl.X.MessageStringOf(x)
  444. }
  445. func (*SenderConfig) ProtoMessage() {}
  446. func (x *SenderConfig) ProtoReflect() protoreflect.Message {
  447. mi := &file_app_proxyman_config_proto_msgTypes[6]
  448. if protoimpl.UnsafeEnabled && x != nil {
  449. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  450. if ms.LoadMessageInfo() == nil {
  451. ms.StoreMessageInfo(mi)
  452. }
  453. return ms
  454. }
  455. return mi.MessageOf(x)
  456. }
  457. // Deprecated: Use SenderConfig.ProtoReflect.Descriptor instead.
  458. func (*SenderConfig) Descriptor() ([]byte, []int) {
  459. return file_app_proxyman_config_proto_rawDescGZIP(), []int{6}
  460. }
  461. func (x *SenderConfig) GetVia() *net.IPOrDomain {
  462. if x != nil {
  463. return x.Via
  464. }
  465. return nil
  466. }
  467. func (x *SenderConfig) GetStreamSettings() *internet.StreamConfig {
  468. if x != nil {
  469. return x.StreamSettings
  470. }
  471. return nil
  472. }
  473. func (x *SenderConfig) GetProxySettings() *internet.ProxyConfig {
  474. if x != nil {
  475. return x.ProxySettings
  476. }
  477. return nil
  478. }
  479. func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig {
  480. if x != nil {
  481. return x.MultiplexSettings
  482. }
  483. return nil
  484. }
  485. type MultiplexingConfig struct {
  486. state protoimpl.MessageState
  487. sizeCache protoimpl.SizeCache
  488. unknownFields protoimpl.UnknownFields
  489. // Whether or not Mux is enabled.
  490. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  491. // Max number of concurrent connections that one Mux connection can handle.
  492. Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
  493. }
  494. func (x *MultiplexingConfig) Reset() {
  495. *x = MultiplexingConfig{}
  496. if protoimpl.UnsafeEnabled {
  497. mi := &file_app_proxyman_config_proto_msgTypes[7]
  498. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  499. ms.StoreMessageInfo(mi)
  500. }
  501. }
  502. func (x *MultiplexingConfig) String() string {
  503. return protoimpl.X.MessageStringOf(x)
  504. }
  505. func (*MultiplexingConfig) ProtoMessage() {}
  506. func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message {
  507. mi := &file_app_proxyman_config_proto_msgTypes[7]
  508. if protoimpl.UnsafeEnabled && x != nil {
  509. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  510. if ms.LoadMessageInfo() == nil {
  511. ms.StoreMessageInfo(mi)
  512. }
  513. return ms
  514. }
  515. return mi.MessageOf(x)
  516. }
  517. // Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead.
  518. func (*MultiplexingConfig) Descriptor() ([]byte, []int) {
  519. return file_app_proxyman_config_proto_rawDescGZIP(), []int{7}
  520. }
  521. func (x *MultiplexingConfig) GetEnabled() bool {
  522. if x != nil {
  523. return x.Enabled
  524. }
  525. return false
  526. }
  527. func (x *MultiplexingConfig) GetConcurrency() uint32 {
  528. if x != nil {
  529. return x.Concurrency
  530. }
  531. return 0
  532. }
  533. type AllocationStrategy_AllocationStrategyConcurrency struct {
  534. state protoimpl.MessageState
  535. sizeCache protoimpl.SizeCache
  536. unknownFields protoimpl.UnknownFields
  537. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  538. }
  539. func (x *AllocationStrategy_AllocationStrategyConcurrency) Reset() {
  540. *x = AllocationStrategy_AllocationStrategyConcurrency{}
  541. if protoimpl.UnsafeEnabled {
  542. mi := &file_app_proxyman_config_proto_msgTypes[8]
  543. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  544. ms.StoreMessageInfo(mi)
  545. }
  546. }
  547. func (x *AllocationStrategy_AllocationStrategyConcurrency) String() string {
  548. return protoimpl.X.MessageStringOf(x)
  549. }
  550. func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage() {}
  551. func (x *AllocationStrategy_AllocationStrategyConcurrency) ProtoReflect() protoreflect.Message {
  552. mi := &file_app_proxyman_config_proto_msgTypes[8]
  553. if protoimpl.UnsafeEnabled && x != nil {
  554. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  555. if ms.LoadMessageInfo() == nil {
  556. ms.StoreMessageInfo(mi)
  557. }
  558. return ms
  559. }
  560. return mi.MessageOf(x)
  561. }
  562. // Deprecated: Use AllocationStrategy_AllocationStrategyConcurrency.ProtoReflect.Descriptor instead.
  563. func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int) {
  564. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 0}
  565. }
  566. func (x *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32 {
  567. if x != nil {
  568. return x.Value
  569. }
  570. return 0
  571. }
  572. type AllocationStrategy_AllocationStrategyRefresh struct {
  573. state protoimpl.MessageState
  574. sizeCache protoimpl.SizeCache
  575. unknownFields protoimpl.UnknownFields
  576. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  577. }
  578. func (x *AllocationStrategy_AllocationStrategyRefresh) Reset() {
  579. *x = AllocationStrategy_AllocationStrategyRefresh{}
  580. if protoimpl.UnsafeEnabled {
  581. mi := &file_app_proxyman_config_proto_msgTypes[9]
  582. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  583. ms.StoreMessageInfo(mi)
  584. }
  585. }
  586. func (x *AllocationStrategy_AllocationStrategyRefresh) String() string {
  587. return protoimpl.X.MessageStringOf(x)
  588. }
  589. func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {}
  590. func (x *AllocationStrategy_AllocationStrategyRefresh) ProtoReflect() protoreflect.Message {
  591. mi := &file_app_proxyman_config_proto_msgTypes[9]
  592. if protoimpl.UnsafeEnabled && x != nil {
  593. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  594. if ms.LoadMessageInfo() == nil {
  595. ms.StoreMessageInfo(mi)
  596. }
  597. return ms
  598. }
  599. return mi.MessageOf(x)
  600. }
  601. // Deprecated: Use AllocationStrategy_AllocationStrategyRefresh.ProtoReflect.Descriptor instead.
  602. func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int) {
  603. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 1}
  604. }
  605. func (x *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 {
  606. if x != nil {
  607. return x.Value
  608. }
  609. return 0
  610. }
  611. var File_app_proxyman_config_proto protoreflect.FileDescriptor
  612. var file_app_proxyman_config_proto_rawDesc = []byte{
  613. 0x0a, 0x19, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63,
  614. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x78, 0x72, 0x61,
  615. 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x1a, 0x18,
  616. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65,
  617. 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  618. 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  619. 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  620. 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  621. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  622. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  623. 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f,
  624. 0x6e, 0x66, 0x69, 0x67, 0x22, 0xae, 0x03, 0x0a, 0x12, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74,
  625. 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x3e, 0x0a, 0x04, 0x74,
  626. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79,
  627. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c,
  628. 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  629. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x0b, 0x63,
  630. 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  631. 0x32, 0x43, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  632. 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  633. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  634. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72,
  635. 0x72, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
  636. 0x63, 0x79, 0x12, 0x59, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20,
  637. 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  638. 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  639. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
  640. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66,
  641. 0x72, 0x65, 0x73, 0x68, 0x52, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x1a, 0x35, 0x0a,
  642. 0x1d, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74,
  643. 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14,
  644. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76,
  645. 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x31, 0x0a, 0x19, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  646. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73,
  647. 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  648. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,
  649. 0x0a, 0x0a, 0x06, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x52,
  650. 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, 0x72,
  651. 0x6e, 0x61, 0x6c, 0x10, 0x02, 0x22, 0x88, 0x01, 0x0a, 0x0e, 0x53, 0x6e, 0x69, 0x66, 0x66, 0x69,
  652. 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
  653. 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  654. 0x65, 0x64, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
  655. 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
  656. 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65,
  657. 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
  658. 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52,
  659. 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64,
  660. 0x22, 0x90, 0x04, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  661. 0x66, 0x69, 0x67, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67,
  662. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
  663. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61,
  664. 0x6e, 0x67, 0x65, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x33,
  665. 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
  666. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  667. 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x6c, 0x69, 0x73,
  668. 0x74, 0x65, 0x6e, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
  669. 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  670. 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  671. 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  672. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74,
  673. 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4e, 0x0a, 0x0f, 0x73,
  674. 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04,
  675. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  676. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53,
  677. 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 0x72,
  678. 0x65, 0x61, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x72,
  679. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f,
  680. 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
  681. 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e,
  682. 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a,
  683. 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
  684. 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  685. 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e,
  686. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x64,
  687. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x4e, 0x0a,
  688. 0x11, 0x73, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  689. 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  690. 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x6e, 0x69,
  691. 0x66, 0x66, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x6e, 0x69,
  692. 0x66, 0x66, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x4a, 0x04, 0x08,
  693. 0x06, 0x10, 0x07, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x48,
  694. 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03,
  695. 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x4d,
  696. 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69,
  697. 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79,
  698. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54,
  699. 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65, 0x63,
  700. 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x47, 0x0a,
  701. 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  702. 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d,
  703. 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64,
  704. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65,
  705. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  706. 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xb0, 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x6e,
  707. 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x03, 0x76, 0x69, 0x61,
  708. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  709. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d,
  710. 0x61, 0x69, 0x6e, 0x52, 0x03, 0x76, 0x69, 0x61, 0x12, 0x4e, 0x0a, 0x0f, 0x73, 0x74, 0x72, 0x65,
  711. 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
  712. 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  713. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x65,
  714. 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
  715. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4b, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78,
  716. 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  717. 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  718. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79,
  719. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x74,
  720. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
  721. 0x65, 0x78, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
  722. 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  723. 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69,
  724. 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  725. 0x6c, 0x65, 0x78, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x50, 0x0a, 0x12, 0x4d,
  726. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  727. 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01,
  728. 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63,
  729. 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
  730. 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x2a, 0x23, 0x0a,
  731. 0x0e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x12,
  732. 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x4c, 0x53,
  733. 0x10, 0x01, 0x42, 0x55, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  734. 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x50, 0x01, 0x5a, 0x26, 0x67,
  735. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78,
  736. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f,
  737. 0x78, 0x79, 0x6d, 0x61, 0x6e, 0xaa, 0x02, 0x11, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70,
  738. 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  739. 0x33,
  740. }
  741. var (
  742. file_app_proxyman_config_proto_rawDescOnce sync.Once
  743. file_app_proxyman_config_proto_rawDescData = file_app_proxyman_config_proto_rawDesc
  744. )
  745. func file_app_proxyman_config_proto_rawDescGZIP() []byte {
  746. file_app_proxyman_config_proto_rawDescOnce.Do(func() {
  747. file_app_proxyman_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_proxyman_config_proto_rawDescData)
  748. })
  749. return file_app_proxyman_config_proto_rawDescData
  750. }
  751. var file_app_proxyman_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  752. var file_app_proxyman_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  753. var file_app_proxyman_config_proto_goTypes = []interface{}{
  754. (KnownProtocols)(0), // 0: xray.app.proxyman.KnownProtocols
  755. (AllocationStrategy_Type)(0), // 1: xray.app.proxyman.AllocationStrategy.Type
  756. (*InboundConfig)(nil), // 2: xray.app.proxyman.InboundConfig
  757. (*AllocationStrategy)(nil), // 3: xray.app.proxyman.AllocationStrategy
  758. (*SniffingConfig)(nil), // 4: xray.app.proxyman.SniffingConfig
  759. (*ReceiverConfig)(nil), // 5: xray.app.proxyman.ReceiverConfig
  760. (*InboundHandlerConfig)(nil), // 6: xray.app.proxyman.InboundHandlerConfig
  761. (*OutboundConfig)(nil), // 7: xray.app.proxyman.OutboundConfig
  762. (*SenderConfig)(nil), // 8: xray.app.proxyman.SenderConfig
  763. (*MultiplexingConfig)(nil), // 9: xray.app.proxyman.MultiplexingConfig
  764. (*AllocationStrategy_AllocationStrategyConcurrency)(nil), // 10: xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  765. (*AllocationStrategy_AllocationStrategyRefresh)(nil), // 11: xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  766. (*net.PortRange)(nil), // 12: xray.common.net.PortRange
  767. (*net.IPOrDomain)(nil), // 13: xray.common.net.IPOrDomain
  768. (*internet.StreamConfig)(nil), // 14: xray.transport.internet.StreamConfig
  769. (*serial.TypedMessage)(nil), // 15: xray.common.serial.TypedMessage
  770. (*internet.ProxyConfig)(nil), // 16: xray.transport.internet.ProxyConfig
  771. }
  772. var file_app_proxyman_config_proto_depIdxs = []int32{
  773. 1, // 0: xray.app.proxyman.AllocationStrategy.type:type_name -> xray.app.proxyman.AllocationStrategy.Type
  774. 10, // 1: xray.app.proxyman.AllocationStrategy.concurrency:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  775. 11, // 2: xray.app.proxyman.AllocationStrategy.refresh:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  776. 12, // 3: xray.app.proxyman.ReceiverConfig.port_range:type_name -> xray.common.net.PortRange
  777. 13, // 4: xray.app.proxyman.ReceiverConfig.listen:type_name -> xray.common.net.IPOrDomain
  778. 3, // 5: xray.app.proxyman.ReceiverConfig.allocation_strategy:type_name -> xray.app.proxyman.AllocationStrategy
  779. 14, // 6: xray.app.proxyman.ReceiverConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig
  780. 0, // 7: xray.app.proxyman.ReceiverConfig.domain_override:type_name -> xray.app.proxyman.KnownProtocols
  781. 4, // 8: xray.app.proxyman.ReceiverConfig.sniffing_settings:type_name -> xray.app.proxyman.SniffingConfig
  782. 15, // 9: xray.app.proxyman.InboundHandlerConfig.receiver_settings:type_name -> xray.common.serial.TypedMessage
  783. 15, // 10: xray.app.proxyman.InboundHandlerConfig.proxy_settings:type_name -> xray.common.serial.TypedMessage
  784. 13, // 11: xray.app.proxyman.SenderConfig.via:type_name -> xray.common.net.IPOrDomain
  785. 14, // 12: xray.app.proxyman.SenderConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig
  786. 16, // 13: xray.app.proxyman.SenderConfig.proxy_settings:type_name -> xray.transport.internet.ProxyConfig
  787. 9, // 14: xray.app.proxyman.SenderConfig.multiplex_settings:type_name -> xray.app.proxyman.MultiplexingConfig
  788. 15, // [15:15] is the sub-list for method output_type
  789. 15, // [15:15] is the sub-list for method input_type
  790. 15, // [15:15] is the sub-list for extension type_name
  791. 15, // [15:15] is the sub-list for extension extendee
  792. 0, // [0:15] is the sub-list for field type_name
  793. }
  794. func init() { file_app_proxyman_config_proto_init() }
  795. func file_app_proxyman_config_proto_init() {
  796. if File_app_proxyman_config_proto != nil {
  797. return
  798. }
  799. if !protoimpl.UnsafeEnabled {
  800. file_app_proxyman_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  801. switch v := v.(*InboundConfig); i {
  802. case 0:
  803. return &v.state
  804. case 1:
  805. return &v.sizeCache
  806. case 2:
  807. return &v.unknownFields
  808. default:
  809. return nil
  810. }
  811. }
  812. file_app_proxyman_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  813. switch v := v.(*AllocationStrategy); i {
  814. case 0:
  815. return &v.state
  816. case 1:
  817. return &v.sizeCache
  818. case 2:
  819. return &v.unknownFields
  820. default:
  821. return nil
  822. }
  823. }
  824. file_app_proxyman_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  825. switch v := v.(*SniffingConfig); i {
  826. case 0:
  827. return &v.state
  828. case 1:
  829. return &v.sizeCache
  830. case 2:
  831. return &v.unknownFields
  832. default:
  833. return nil
  834. }
  835. }
  836. file_app_proxyman_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  837. switch v := v.(*ReceiverConfig); i {
  838. case 0:
  839. return &v.state
  840. case 1:
  841. return &v.sizeCache
  842. case 2:
  843. return &v.unknownFields
  844. default:
  845. return nil
  846. }
  847. }
  848. file_app_proxyman_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  849. switch v := v.(*InboundHandlerConfig); i {
  850. case 0:
  851. return &v.state
  852. case 1:
  853. return &v.sizeCache
  854. case 2:
  855. return &v.unknownFields
  856. default:
  857. return nil
  858. }
  859. }
  860. file_app_proxyman_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  861. switch v := v.(*OutboundConfig); i {
  862. case 0:
  863. return &v.state
  864. case 1:
  865. return &v.sizeCache
  866. case 2:
  867. return &v.unknownFields
  868. default:
  869. return nil
  870. }
  871. }
  872. file_app_proxyman_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  873. switch v := v.(*SenderConfig); i {
  874. case 0:
  875. return &v.state
  876. case 1:
  877. return &v.sizeCache
  878. case 2:
  879. return &v.unknownFields
  880. default:
  881. return nil
  882. }
  883. }
  884. file_app_proxyman_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  885. switch v := v.(*MultiplexingConfig); i {
  886. case 0:
  887. return &v.state
  888. case 1:
  889. return &v.sizeCache
  890. case 2:
  891. return &v.unknownFields
  892. default:
  893. return nil
  894. }
  895. }
  896. file_app_proxyman_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  897. switch v := v.(*AllocationStrategy_AllocationStrategyConcurrency); i {
  898. case 0:
  899. return &v.state
  900. case 1:
  901. return &v.sizeCache
  902. case 2:
  903. return &v.unknownFields
  904. default:
  905. return nil
  906. }
  907. }
  908. file_app_proxyman_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  909. switch v := v.(*AllocationStrategy_AllocationStrategyRefresh); i {
  910. case 0:
  911. return &v.state
  912. case 1:
  913. return &v.sizeCache
  914. case 2:
  915. return &v.unknownFields
  916. default:
  917. return nil
  918. }
  919. }
  920. }
  921. type x struct{}
  922. out := protoimpl.TypeBuilder{
  923. File: protoimpl.DescBuilder{
  924. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  925. RawDescriptor: file_app_proxyman_config_proto_rawDesc,
  926. NumEnums: 2,
  927. NumMessages: 10,
  928. NumExtensions: 0,
  929. NumServices: 0,
  930. },
  931. GoTypes: file_app_proxyman_config_proto_goTypes,
  932. DependencyIndexes: file_app_proxyman_config_proto_depIdxs,
  933. EnumInfos: file_app_proxyman_config_proto_enumTypes,
  934. MessageInfos: file_app_proxyman_config_proto_msgTypes,
  935. }.Build()
  936. File_app_proxyman_config_proto = out.File
  937. file_app_proxyman_config_proto_rawDesc = nil
  938. file_app_proxyman_config_proto_goTypes = nil
  939. file_app_proxyman_config_proto_depIdxs = nil
  940. }