config.pb.go 41 KB

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