config.pb.go 41 KB

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