config.pb.go 42 KB

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