config.pb.go 41 KB

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