config.pb.go 41 KB

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