config.pb.go 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: app/proxyman/config.proto
  6. package proxyman
  7. import (
  8. net "github.com/v2fly/v2ray-core/v4/common/net"
  9. internet "github.com/v2fly/v2ray-core/v4/transport/internet"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. anypb "google.golang.org/protobuf/types/known/anypb"
  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 *anypb.Any `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"`
  343. ProxySettings *anypb.Any `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() *anypb.Any {
  379. if x != nil {
  380. return x.ReceiverSettings
  381. }
  382. return nil
  383. }
  384. func (x *InboundHandlerConfig) GetProxySettings() *anypb.Any {
  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, 0xa8, 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, 0x41, 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. 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  700. 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53,
  701. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  702. 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
  703. 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  704. 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x74, 0x74,
  705. 0x69, 0x6e, 0x67, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  706. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xc8, 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x65,
  707. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x03, 0x76, 0x69, 0x61, 0x18, 0x01,
  708. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  709. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f,
  710. 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x03, 0x76, 0x69, 0x61, 0x12, 0x54, 0x0a, 0x0f,
  711. 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  712. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  713. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  714. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66,
  715. 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  716. 0x67, 0x73, 0x12, 0x51, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74,
  717. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72,
  718. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  719. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79,
  720. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x74,
  721. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x5a, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
  722. 0x65, 0x78, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
  723. 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  724. 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x75, 0x6c, 0x74,
  725. 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11,
  726. 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  727. 0x73, 0x22, 0x50, 0x0a, 0x12, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6e,
  728. 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  729. 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
  730. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79,
  731. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65,
  732. 0x6e, 0x63, 0x79, 0x2a, 0x23, 0x0a, 0x0e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x74,
  733. 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x00, 0x12,
  734. 0x07, 0x0a, 0x03, 0x54, 0x4c, 0x53, 0x10, 0x01, 0x42, 0x66, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e,
  735. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  736. 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75,
  737. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
  738. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72,
  739. 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0xaa, 0x02, 0x17, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  740. 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e,
  741. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  742. }
  743. var (
  744. file_app_proxyman_config_proto_rawDescOnce sync.Once
  745. file_app_proxyman_config_proto_rawDescData = file_app_proxyman_config_proto_rawDesc
  746. )
  747. func file_app_proxyman_config_proto_rawDescGZIP() []byte {
  748. file_app_proxyman_config_proto_rawDescOnce.Do(func() {
  749. file_app_proxyman_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_proxyman_config_proto_rawDescData)
  750. })
  751. return file_app_proxyman_config_proto_rawDescData
  752. }
  753. var file_app_proxyman_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  754. var file_app_proxyman_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  755. var file_app_proxyman_config_proto_goTypes = []interface{}{
  756. (KnownProtocols)(0), // 0: v2ray.core.app.proxyman.KnownProtocols
  757. (AllocationStrategy_Type)(0), // 1: v2ray.core.app.proxyman.AllocationStrategy.Type
  758. (*InboundConfig)(nil), // 2: v2ray.core.app.proxyman.InboundConfig
  759. (*AllocationStrategy)(nil), // 3: v2ray.core.app.proxyman.AllocationStrategy
  760. (*SniffingConfig)(nil), // 4: v2ray.core.app.proxyman.SniffingConfig
  761. (*ReceiverConfig)(nil), // 5: v2ray.core.app.proxyman.ReceiverConfig
  762. (*InboundHandlerConfig)(nil), // 6: v2ray.core.app.proxyman.InboundHandlerConfig
  763. (*OutboundConfig)(nil), // 7: v2ray.core.app.proxyman.OutboundConfig
  764. (*SenderConfig)(nil), // 8: v2ray.core.app.proxyman.SenderConfig
  765. (*MultiplexingConfig)(nil), // 9: v2ray.core.app.proxyman.MultiplexingConfig
  766. (*AllocationStrategy_AllocationStrategyConcurrency)(nil), // 10: v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  767. (*AllocationStrategy_AllocationStrategyRefresh)(nil), // 11: v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  768. (*net.PortRange)(nil), // 12: v2ray.core.common.net.PortRange
  769. (*net.IPOrDomain)(nil), // 13: v2ray.core.common.net.IPOrDomain
  770. (*internet.StreamConfig)(nil), // 14: v2ray.core.transport.internet.StreamConfig
  771. (*anypb.Any)(nil), // 15: google.protobuf.Any
  772. (*internet.ProxyConfig)(nil), // 16: v2ray.core.transport.internet.ProxyConfig
  773. }
  774. var file_app_proxyman_config_proto_depIdxs = []int32{
  775. 1, // 0: v2ray.core.app.proxyman.AllocationStrategy.type:type_name -> v2ray.core.app.proxyman.AllocationStrategy.Type
  776. 10, // 1: v2ray.core.app.proxyman.AllocationStrategy.concurrency:type_name -> v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  777. 11, // 2: v2ray.core.app.proxyman.AllocationStrategy.refresh:type_name -> v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  778. 12, // 3: v2ray.core.app.proxyman.ReceiverConfig.port_range:type_name -> v2ray.core.common.net.PortRange
  779. 13, // 4: v2ray.core.app.proxyman.ReceiverConfig.listen:type_name -> v2ray.core.common.net.IPOrDomain
  780. 3, // 5: v2ray.core.app.proxyman.ReceiverConfig.allocation_strategy:type_name -> v2ray.core.app.proxyman.AllocationStrategy
  781. 14, // 6: v2ray.core.app.proxyman.ReceiverConfig.stream_settings:type_name -> v2ray.core.transport.internet.StreamConfig
  782. 0, // 7: v2ray.core.app.proxyman.ReceiverConfig.domain_override:type_name -> v2ray.core.app.proxyman.KnownProtocols
  783. 4, // 8: v2ray.core.app.proxyman.ReceiverConfig.sniffing_settings:type_name -> v2ray.core.app.proxyman.SniffingConfig
  784. 15, // 9: v2ray.core.app.proxyman.InboundHandlerConfig.receiver_settings:type_name -> google.protobuf.Any
  785. 15, // 10: v2ray.core.app.proxyman.InboundHandlerConfig.proxy_settings:type_name -> google.protobuf.Any
  786. 13, // 11: v2ray.core.app.proxyman.SenderConfig.via:type_name -> v2ray.core.common.net.IPOrDomain
  787. 14, // 12: v2ray.core.app.proxyman.SenderConfig.stream_settings:type_name -> v2ray.core.transport.internet.StreamConfig
  788. 16, // 13: v2ray.core.app.proxyman.SenderConfig.proxy_settings:type_name -> v2ray.core.transport.internet.ProxyConfig
  789. 9, // 14: v2ray.core.app.proxyman.SenderConfig.multiplex_settings:type_name -> v2ray.core.app.proxyman.MultiplexingConfig
  790. 15, // [15:15] is the sub-list for method output_type
  791. 15, // [15:15] is the sub-list for method input_type
  792. 15, // [15:15] is the sub-list for extension type_name
  793. 15, // [15:15] is the sub-list for extension extendee
  794. 0, // [0:15] is the sub-list for field type_name
  795. }
  796. func init() { file_app_proxyman_config_proto_init() }
  797. func file_app_proxyman_config_proto_init() {
  798. if File_app_proxyman_config_proto != nil {
  799. return
  800. }
  801. if !protoimpl.UnsafeEnabled {
  802. file_app_proxyman_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  803. switch v := v.(*InboundConfig); i {
  804. case 0:
  805. return &v.state
  806. case 1:
  807. return &v.sizeCache
  808. case 2:
  809. return &v.unknownFields
  810. default:
  811. return nil
  812. }
  813. }
  814. file_app_proxyman_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  815. switch v := v.(*AllocationStrategy); i {
  816. case 0:
  817. return &v.state
  818. case 1:
  819. return &v.sizeCache
  820. case 2:
  821. return &v.unknownFields
  822. default:
  823. return nil
  824. }
  825. }
  826. file_app_proxyman_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  827. switch v := v.(*SniffingConfig); i {
  828. case 0:
  829. return &v.state
  830. case 1:
  831. return &v.sizeCache
  832. case 2:
  833. return &v.unknownFields
  834. default:
  835. return nil
  836. }
  837. }
  838. file_app_proxyman_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  839. switch v := v.(*ReceiverConfig); i {
  840. case 0:
  841. return &v.state
  842. case 1:
  843. return &v.sizeCache
  844. case 2:
  845. return &v.unknownFields
  846. default:
  847. return nil
  848. }
  849. }
  850. file_app_proxyman_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  851. switch v := v.(*InboundHandlerConfig); i {
  852. case 0:
  853. return &v.state
  854. case 1:
  855. return &v.sizeCache
  856. case 2:
  857. return &v.unknownFields
  858. default:
  859. return nil
  860. }
  861. }
  862. file_app_proxyman_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  863. switch v := v.(*OutboundConfig); i {
  864. case 0:
  865. return &v.state
  866. case 1:
  867. return &v.sizeCache
  868. case 2:
  869. return &v.unknownFields
  870. default:
  871. return nil
  872. }
  873. }
  874. file_app_proxyman_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  875. switch v := v.(*SenderConfig); i {
  876. case 0:
  877. return &v.state
  878. case 1:
  879. return &v.sizeCache
  880. case 2:
  881. return &v.unknownFields
  882. default:
  883. return nil
  884. }
  885. }
  886. file_app_proxyman_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  887. switch v := v.(*MultiplexingConfig); i {
  888. case 0:
  889. return &v.state
  890. case 1:
  891. return &v.sizeCache
  892. case 2:
  893. return &v.unknownFields
  894. default:
  895. return nil
  896. }
  897. }
  898. file_app_proxyman_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  899. switch v := v.(*AllocationStrategy_AllocationStrategyConcurrency); i {
  900. case 0:
  901. return &v.state
  902. case 1:
  903. return &v.sizeCache
  904. case 2:
  905. return &v.unknownFields
  906. default:
  907. return nil
  908. }
  909. }
  910. file_app_proxyman_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  911. switch v := v.(*AllocationStrategy_AllocationStrategyRefresh); i {
  912. case 0:
  913. return &v.state
  914. case 1:
  915. return &v.sizeCache
  916. case 2:
  917. return &v.unknownFields
  918. default:
  919. return nil
  920. }
  921. }
  922. }
  923. type x struct{}
  924. out := protoimpl.TypeBuilder{
  925. File: protoimpl.DescBuilder{
  926. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  927. RawDescriptor: file_app_proxyman_config_proto_rawDesc,
  928. NumEnums: 2,
  929. NumMessages: 10,
  930. NumExtensions: 0,
  931. NumServices: 0,
  932. },
  933. GoTypes: file_app_proxyman_config_proto_goTypes,
  934. DependencyIndexes: file_app_proxyman_config_proto_depIdxs,
  935. EnumInfos: file_app_proxyman_config_proto_enumTypes,
  936. MessageInfos: file_app_proxyman_config_proto_msgTypes,
  937. }.Build()
  938. File_app_proxyman_config_proto = out.File
  939. file_app_proxyman_config_proto_rawDesc = nil
  940. file_app_proxyman_config_proto_goTypes = nil
  941. file_app_proxyman_config_proto_depIdxs = nil
  942. }