config.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. package proxyman
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import net "v2ray.com/core/common/net"
  6. import serial "v2ray.com/core/common/serial"
  7. import internet "v2ray.com/core/transport/internet"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. type KnownProtocols int32
  18. const (
  19. KnownProtocols_HTTP KnownProtocols = 0
  20. KnownProtocols_TLS KnownProtocols = 1
  21. )
  22. var KnownProtocols_name = map[int32]string{
  23. 0: "HTTP",
  24. 1: "TLS",
  25. }
  26. var KnownProtocols_value = map[string]int32{
  27. "HTTP": 0,
  28. "TLS": 1,
  29. }
  30. func (x KnownProtocols) String() string {
  31. return proto.EnumName(KnownProtocols_name, int32(x))
  32. }
  33. func (KnownProtocols) EnumDescriptor() ([]byte, []int) {
  34. return fileDescriptor_config_8038bf3f86761ebe, []int{0}
  35. }
  36. type AllocationStrategy_Type int32
  37. const (
  38. // Always allocate all connection handlers.
  39. AllocationStrategy_Always AllocationStrategy_Type = 0
  40. // Randomly allocate specific range of handlers.
  41. AllocationStrategy_Random AllocationStrategy_Type = 1
  42. // External. Not supported yet.
  43. AllocationStrategy_External AllocationStrategy_Type = 2
  44. )
  45. var AllocationStrategy_Type_name = map[int32]string{
  46. 0: "Always",
  47. 1: "Random",
  48. 2: "External",
  49. }
  50. var AllocationStrategy_Type_value = map[string]int32{
  51. "Always": 0,
  52. "Random": 1,
  53. "External": 2,
  54. }
  55. func (x AllocationStrategy_Type) String() string {
  56. return proto.EnumName(AllocationStrategy_Type_name, int32(x))
  57. }
  58. func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int) {
  59. return fileDescriptor_config_8038bf3f86761ebe, []int{1, 0}
  60. }
  61. type InboundConfig struct {
  62. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  63. XXX_unrecognized []byte `json:"-"`
  64. XXX_sizecache int32 `json:"-"`
  65. }
  66. func (m *InboundConfig) Reset() { *m = InboundConfig{} }
  67. func (m *InboundConfig) String() string { return proto.CompactTextString(m) }
  68. func (*InboundConfig) ProtoMessage() {}
  69. func (*InboundConfig) Descriptor() ([]byte, []int) {
  70. return fileDescriptor_config_8038bf3f86761ebe, []int{0}
  71. }
  72. func (m *InboundConfig) XXX_Unmarshal(b []byte) error {
  73. return xxx_messageInfo_InboundConfig.Unmarshal(m, b)
  74. }
  75. func (m *InboundConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  76. return xxx_messageInfo_InboundConfig.Marshal(b, m, deterministic)
  77. }
  78. func (dst *InboundConfig) XXX_Merge(src proto.Message) {
  79. xxx_messageInfo_InboundConfig.Merge(dst, src)
  80. }
  81. func (m *InboundConfig) XXX_Size() int {
  82. return xxx_messageInfo_InboundConfig.Size(m)
  83. }
  84. func (m *InboundConfig) XXX_DiscardUnknown() {
  85. xxx_messageInfo_InboundConfig.DiscardUnknown(m)
  86. }
  87. var xxx_messageInfo_InboundConfig proto.InternalMessageInfo
  88. type AllocationStrategy struct {
  89. Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,enum=v2ray.core.app.proxyman.AllocationStrategy_Type" json:"type,omitempty"`
  90. // Number of handlers (ports) running in parallel.
  91. // Default value is 3 if unset.
  92. Concurrency *AllocationStrategy_AllocationStrategyConcurrency `protobuf:"bytes,2,opt,name=concurrency" json:"concurrency,omitempty"`
  93. // Number of minutes before a handler is regenerated.
  94. // Default value is 5 if unset.
  95. Refresh *AllocationStrategy_AllocationStrategyRefresh `protobuf:"bytes,3,opt,name=refresh" json:"refresh,omitempty"`
  96. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  97. XXX_unrecognized []byte `json:"-"`
  98. XXX_sizecache int32 `json:"-"`
  99. }
  100. func (m *AllocationStrategy) Reset() { *m = AllocationStrategy{} }
  101. func (m *AllocationStrategy) String() string { return proto.CompactTextString(m) }
  102. func (*AllocationStrategy) ProtoMessage() {}
  103. func (*AllocationStrategy) Descriptor() ([]byte, []int) {
  104. return fileDescriptor_config_8038bf3f86761ebe, []int{1}
  105. }
  106. func (m *AllocationStrategy) XXX_Unmarshal(b []byte) error {
  107. return xxx_messageInfo_AllocationStrategy.Unmarshal(m, b)
  108. }
  109. func (m *AllocationStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  110. return xxx_messageInfo_AllocationStrategy.Marshal(b, m, deterministic)
  111. }
  112. func (dst *AllocationStrategy) XXX_Merge(src proto.Message) {
  113. xxx_messageInfo_AllocationStrategy.Merge(dst, src)
  114. }
  115. func (m *AllocationStrategy) XXX_Size() int {
  116. return xxx_messageInfo_AllocationStrategy.Size(m)
  117. }
  118. func (m *AllocationStrategy) XXX_DiscardUnknown() {
  119. xxx_messageInfo_AllocationStrategy.DiscardUnknown(m)
  120. }
  121. var xxx_messageInfo_AllocationStrategy proto.InternalMessageInfo
  122. func (m *AllocationStrategy) GetType() AllocationStrategy_Type {
  123. if m != nil {
  124. return m.Type
  125. }
  126. return AllocationStrategy_Always
  127. }
  128. func (m *AllocationStrategy) GetConcurrency() *AllocationStrategy_AllocationStrategyConcurrency {
  129. if m != nil {
  130. return m.Concurrency
  131. }
  132. return nil
  133. }
  134. func (m *AllocationStrategy) GetRefresh() *AllocationStrategy_AllocationStrategyRefresh {
  135. if m != nil {
  136. return m.Refresh
  137. }
  138. return nil
  139. }
  140. type AllocationStrategy_AllocationStrategyConcurrency struct {
  141. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  142. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  143. XXX_unrecognized []byte `json:"-"`
  144. XXX_sizecache int32 `json:"-"`
  145. }
  146. func (m *AllocationStrategy_AllocationStrategyConcurrency) Reset() {
  147. *m = AllocationStrategy_AllocationStrategyConcurrency{}
  148. }
  149. func (m *AllocationStrategy_AllocationStrategyConcurrency) String() string {
  150. return proto.CompactTextString(m)
  151. }
  152. func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage() {}
  153. func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int) {
  154. return fileDescriptor_config_8038bf3f86761ebe, []int{1, 0}
  155. }
  156. func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Unmarshal(b []byte) error {
  157. return xxx_messageInfo_AllocationStrategy_AllocationStrategyConcurrency.Unmarshal(m, b)
  158. }
  159. func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  160. return xxx_messageInfo_AllocationStrategy_AllocationStrategyConcurrency.Marshal(b, m, deterministic)
  161. }
  162. func (dst *AllocationStrategy_AllocationStrategyConcurrency) XXX_Merge(src proto.Message) {
  163. xxx_messageInfo_AllocationStrategy_AllocationStrategyConcurrency.Merge(dst, src)
  164. }
  165. func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Size() int {
  166. return xxx_messageInfo_AllocationStrategy_AllocationStrategyConcurrency.Size(m)
  167. }
  168. func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_DiscardUnknown() {
  169. xxx_messageInfo_AllocationStrategy_AllocationStrategyConcurrency.DiscardUnknown(m)
  170. }
  171. var xxx_messageInfo_AllocationStrategy_AllocationStrategyConcurrency proto.InternalMessageInfo
  172. func (m *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32 {
  173. if m != nil {
  174. return m.Value
  175. }
  176. return 0
  177. }
  178. type AllocationStrategy_AllocationStrategyRefresh struct {
  179. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  180. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  181. XXX_unrecognized []byte `json:"-"`
  182. XXX_sizecache int32 `json:"-"`
  183. }
  184. func (m *AllocationStrategy_AllocationStrategyRefresh) Reset() {
  185. *m = AllocationStrategy_AllocationStrategyRefresh{}
  186. }
  187. func (m *AllocationStrategy_AllocationStrategyRefresh) String() string {
  188. return proto.CompactTextString(m)
  189. }
  190. func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {}
  191. func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int) {
  192. return fileDescriptor_config_8038bf3f86761ebe, []int{1, 1}
  193. }
  194. func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Unmarshal(b []byte) error {
  195. return xxx_messageInfo_AllocationStrategy_AllocationStrategyRefresh.Unmarshal(m, b)
  196. }
  197. func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  198. return xxx_messageInfo_AllocationStrategy_AllocationStrategyRefresh.Marshal(b, m, deterministic)
  199. }
  200. func (dst *AllocationStrategy_AllocationStrategyRefresh) XXX_Merge(src proto.Message) {
  201. xxx_messageInfo_AllocationStrategy_AllocationStrategyRefresh.Merge(dst, src)
  202. }
  203. func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Size() int {
  204. return xxx_messageInfo_AllocationStrategy_AllocationStrategyRefresh.Size(m)
  205. }
  206. func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_DiscardUnknown() {
  207. xxx_messageInfo_AllocationStrategy_AllocationStrategyRefresh.DiscardUnknown(m)
  208. }
  209. var xxx_messageInfo_AllocationStrategy_AllocationStrategyRefresh proto.InternalMessageInfo
  210. func (m *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 {
  211. if m != nil {
  212. return m.Value
  213. }
  214. return 0
  215. }
  216. type ReceiverConfig struct {
  217. // PortRange specifies the ports which the Receiver should listen on.
  218. PortRange *net.PortRange `protobuf:"bytes,1,opt,name=port_range,json=portRange" json:"port_range,omitempty"`
  219. // Listen specifies the IP address that the Receiver should listen on.
  220. Listen *net.IPOrDomain `protobuf:"bytes,2,opt,name=listen" json:"listen,omitempty"`
  221. AllocationStrategy *AllocationStrategy `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy" json:"allocation_strategy,omitempty"`
  222. StreamSettings *internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
  223. ReceiveOriginalDestination bool `protobuf:"varint,5,opt,name=receive_original_destination,json=receiveOriginalDestination" json:"receive_original_destination,omitempty"`
  224. DomainOverride []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,enum=v2ray.core.app.proxyman.KnownProtocols" json:"domain_override,omitempty"`
  225. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  226. XXX_unrecognized []byte `json:"-"`
  227. XXX_sizecache int32 `json:"-"`
  228. }
  229. func (m *ReceiverConfig) Reset() { *m = ReceiverConfig{} }
  230. func (m *ReceiverConfig) String() string { return proto.CompactTextString(m) }
  231. func (*ReceiverConfig) ProtoMessage() {}
  232. func (*ReceiverConfig) Descriptor() ([]byte, []int) {
  233. return fileDescriptor_config_8038bf3f86761ebe, []int{2}
  234. }
  235. func (m *ReceiverConfig) XXX_Unmarshal(b []byte) error {
  236. return xxx_messageInfo_ReceiverConfig.Unmarshal(m, b)
  237. }
  238. func (m *ReceiverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  239. return xxx_messageInfo_ReceiverConfig.Marshal(b, m, deterministic)
  240. }
  241. func (dst *ReceiverConfig) XXX_Merge(src proto.Message) {
  242. xxx_messageInfo_ReceiverConfig.Merge(dst, src)
  243. }
  244. func (m *ReceiverConfig) XXX_Size() int {
  245. return xxx_messageInfo_ReceiverConfig.Size(m)
  246. }
  247. func (m *ReceiverConfig) XXX_DiscardUnknown() {
  248. xxx_messageInfo_ReceiverConfig.DiscardUnknown(m)
  249. }
  250. var xxx_messageInfo_ReceiverConfig proto.InternalMessageInfo
  251. func (m *ReceiverConfig) GetPortRange() *net.PortRange {
  252. if m != nil {
  253. return m.PortRange
  254. }
  255. return nil
  256. }
  257. func (m *ReceiverConfig) GetListen() *net.IPOrDomain {
  258. if m != nil {
  259. return m.Listen
  260. }
  261. return nil
  262. }
  263. func (m *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy {
  264. if m != nil {
  265. return m.AllocationStrategy
  266. }
  267. return nil
  268. }
  269. func (m *ReceiverConfig) GetStreamSettings() *internet.StreamConfig {
  270. if m != nil {
  271. return m.StreamSettings
  272. }
  273. return nil
  274. }
  275. func (m *ReceiverConfig) GetReceiveOriginalDestination() bool {
  276. if m != nil {
  277. return m.ReceiveOriginalDestination
  278. }
  279. return false
  280. }
  281. func (m *ReceiverConfig) GetDomainOverride() []KnownProtocols {
  282. if m != nil {
  283. return m.DomainOverride
  284. }
  285. return nil
  286. }
  287. type InboundHandlerConfig struct {
  288. Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
  289. ReceiverSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings" json:"receiver_settings,omitempty"`
  290. ProxySettings *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings" json:"proxy_settings,omitempty"`
  291. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  292. XXX_unrecognized []byte `json:"-"`
  293. XXX_sizecache int32 `json:"-"`
  294. }
  295. func (m *InboundHandlerConfig) Reset() { *m = InboundHandlerConfig{} }
  296. func (m *InboundHandlerConfig) String() string { return proto.CompactTextString(m) }
  297. func (*InboundHandlerConfig) ProtoMessage() {}
  298. func (*InboundHandlerConfig) Descriptor() ([]byte, []int) {
  299. return fileDescriptor_config_8038bf3f86761ebe, []int{3}
  300. }
  301. func (m *InboundHandlerConfig) XXX_Unmarshal(b []byte) error {
  302. return xxx_messageInfo_InboundHandlerConfig.Unmarshal(m, b)
  303. }
  304. func (m *InboundHandlerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  305. return xxx_messageInfo_InboundHandlerConfig.Marshal(b, m, deterministic)
  306. }
  307. func (dst *InboundHandlerConfig) XXX_Merge(src proto.Message) {
  308. xxx_messageInfo_InboundHandlerConfig.Merge(dst, src)
  309. }
  310. func (m *InboundHandlerConfig) XXX_Size() int {
  311. return xxx_messageInfo_InboundHandlerConfig.Size(m)
  312. }
  313. func (m *InboundHandlerConfig) XXX_DiscardUnknown() {
  314. xxx_messageInfo_InboundHandlerConfig.DiscardUnknown(m)
  315. }
  316. var xxx_messageInfo_InboundHandlerConfig proto.InternalMessageInfo
  317. func (m *InboundHandlerConfig) GetTag() string {
  318. if m != nil {
  319. return m.Tag
  320. }
  321. return ""
  322. }
  323. func (m *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage {
  324. if m != nil {
  325. return m.ReceiverSettings
  326. }
  327. return nil
  328. }
  329. func (m *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage {
  330. if m != nil {
  331. return m.ProxySettings
  332. }
  333. return nil
  334. }
  335. type OutboundConfig struct {
  336. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  337. XXX_unrecognized []byte `json:"-"`
  338. XXX_sizecache int32 `json:"-"`
  339. }
  340. func (m *OutboundConfig) Reset() { *m = OutboundConfig{} }
  341. func (m *OutboundConfig) String() string { return proto.CompactTextString(m) }
  342. func (*OutboundConfig) ProtoMessage() {}
  343. func (*OutboundConfig) Descriptor() ([]byte, []int) {
  344. return fileDescriptor_config_8038bf3f86761ebe, []int{4}
  345. }
  346. func (m *OutboundConfig) XXX_Unmarshal(b []byte) error {
  347. return xxx_messageInfo_OutboundConfig.Unmarshal(m, b)
  348. }
  349. func (m *OutboundConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  350. return xxx_messageInfo_OutboundConfig.Marshal(b, m, deterministic)
  351. }
  352. func (dst *OutboundConfig) XXX_Merge(src proto.Message) {
  353. xxx_messageInfo_OutboundConfig.Merge(dst, src)
  354. }
  355. func (m *OutboundConfig) XXX_Size() int {
  356. return xxx_messageInfo_OutboundConfig.Size(m)
  357. }
  358. func (m *OutboundConfig) XXX_DiscardUnknown() {
  359. xxx_messageInfo_OutboundConfig.DiscardUnknown(m)
  360. }
  361. var xxx_messageInfo_OutboundConfig proto.InternalMessageInfo
  362. type SenderConfig struct {
  363. // Send traffic through the given IP. Only IP is allowed.
  364. Via *net.IPOrDomain `protobuf:"bytes,1,opt,name=via" json:"via,omitempty"`
  365. StreamSettings *internet.StreamConfig `protobuf:"bytes,2,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
  366. ProxySettings *internet.ProxyConfig `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings" json:"proxy_settings,omitempty"`
  367. MultiplexSettings *MultiplexingConfig `protobuf:"bytes,4,opt,name=multiplex_settings,json=multiplexSettings" json:"multiplex_settings,omitempty"`
  368. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  369. XXX_unrecognized []byte `json:"-"`
  370. XXX_sizecache int32 `json:"-"`
  371. }
  372. func (m *SenderConfig) Reset() { *m = SenderConfig{} }
  373. func (m *SenderConfig) String() string { return proto.CompactTextString(m) }
  374. func (*SenderConfig) ProtoMessage() {}
  375. func (*SenderConfig) Descriptor() ([]byte, []int) {
  376. return fileDescriptor_config_8038bf3f86761ebe, []int{5}
  377. }
  378. func (m *SenderConfig) XXX_Unmarshal(b []byte) error {
  379. return xxx_messageInfo_SenderConfig.Unmarshal(m, b)
  380. }
  381. func (m *SenderConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  382. return xxx_messageInfo_SenderConfig.Marshal(b, m, deterministic)
  383. }
  384. func (dst *SenderConfig) XXX_Merge(src proto.Message) {
  385. xxx_messageInfo_SenderConfig.Merge(dst, src)
  386. }
  387. func (m *SenderConfig) XXX_Size() int {
  388. return xxx_messageInfo_SenderConfig.Size(m)
  389. }
  390. func (m *SenderConfig) XXX_DiscardUnknown() {
  391. xxx_messageInfo_SenderConfig.DiscardUnknown(m)
  392. }
  393. var xxx_messageInfo_SenderConfig proto.InternalMessageInfo
  394. func (m *SenderConfig) GetVia() *net.IPOrDomain {
  395. if m != nil {
  396. return m.Via
  397. }
  398. return nil
  399. }
  400. func (m *SenderConfig) GetStreamSettings() *internet.StreamConfig {
  401. if m != nil {
  402. return m.StreamSettings
  403. }
  404. return nil
  405. }
  406. func (m *SenderConfig) GetProxySettings() *internet.ProxyConfig {
  407. if m != nil {
  408. return m.ProxySettings
  409. }
  410. return nil
  411. }
  412. func (m *SenderConfig) GetMultiplexSettings() *MultiplexingConfig {
  413. if m != nil {
  414. return m.MultiplexSettings
  415. }
  416. return nil
  417. }
  418. type MultiplexingConfig struct {
  419. // Whether or not Mux is enabled.
  420. Enabled bool `protobuf:"varint,1,opt,name=enabled" json:"enabled,omitempty"`
  421. // Max number of concurrent connections that one Mux connection can handle.
  422. Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency" json:"concurrency,omitempty"`
  423. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  424. XXX_unrecognized []byte `json:"-"`
  425. XXX_sizecache int32 `json:"-"`
  426. }
  427. func (m *MultiplexingConfig) Reset() { *m = MultiplexingConfig{} }
  428. func (m *MultiplexingConfig) String() string { return proto.CompactTextString(m) }
  429. func (*MultiplexingConfig) ProtoMessage() {}
  430. func (*MultiplexingConfig) Descriptor() ([]byte, []int) {
  431. return fileDescriptor_config_8038bf3f86761ebe, []int{6}
  432. }
  433. func (m *MultiplexingConfig) XXX_Unmarshal(b []byte) error {
  434. return xxx_messageInfo_MultiplexingConfig.Unmarshal(m, b)
  435. }
  436. func (m *MultiplexingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  437. return xxx_messageInfo_MultiplexingConfig.Marshal(b, m, deterministic)
  438. }
  439. func (dst *MultiplexingConfig) XXX_Merge(src proto.Message) {
  440. xxx_messageInfo_MultiplexingConfig.Merge(dst, src)
  441. }
  442. func (m *MultiplexingConfig) XXX_Size() int {
  443. return xxx_messageInfo_MultiplexingConfig.Size(m)
  444. }
  445. func (m *MultiplexingConfig) XXX_DiscardUnknown() {
  446. xxx_messageInfo_MultiplexingConfig.DiscardUnknown(m)
  447. }
  448. var xxx_messageInfo_MultiplexingConfig proto.InternalMessageInfo
  449. func (m *MultiplexingConfig) GetEnabled() bool {
  450. if m != nil {
  451. return m.Enabled
  452. }
  453. return false
  454. }
  455. func (m *MultiplexingConfig) GetConcurrency() uint32 {
  456. if m != nil {
  457. return m.Concurrency
  458. }
  459. return 0
  460. }
  461. func init() {
  462. proto.RegisterType((*InboundConfig)(nil), "v2ray.core.app.proxyman.InboundConfig")
  463. proto.RegisterType((*AllocationStrategy)(nil), "v2ray.core.app.proxyman.AllocationStrategy")
  464. proto.RegisterType((*AllocationStrategy_AllocationStrategyConcurrency)(nil), "v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency")
  465. proto.RegisterType((*AllocationStrategy_AllocationStrategyRefresh)(nil), "v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyRefresh")
  466. proto.RegisterType((*ReceiverConfig)(nil), "v2ray.core.app.proxyman.ReceiverConfig")
  467. proto.RegisterType((*InboundHandlerConfig)(nil), "v2ray.core.app.proxyman.InboundHandlerConfig")
  468. proto.RegisterType((*OutboundConfig)(nil), "v2ray.core.app.proxyman.OutboundConfig")
  469. proto.RegisterType((*SenderConfig)(nil), "v2ray.core.app.proxyman.SenderConfig")
  470. proto.RegisterType((*MultiplexingConfig)(nil), "v2ray.core.app.proxyman.MultiplexingConfig")
  471. proto.RegisterEnum("v2ray.core.app.proxyman.KnownProtocols", KnownProtocols_name, KnownProtocols_value)
  472. proto.RegisterEnum("v2ray.core.app.proxyman.AllocationStrategy_Type", AllocationStrategy_Type_name, AllocationStrategy_Type_value)
  473. }
  474. func init() {
  475. proto.RegisterFile("v2ray.com/core/app/proxyman/config.proto", fileDescriptor_config_8038bf3f86761ebe)
  476. }
  477. var fileDescriptor_config_8038bf3f86761ebe = []byte{
  478. // 772 bytes of a gzipped FileDescriptorProto
  479. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x5f, 0x6f, 0xeb, 0x34,
  480. 0x18, 0xc6, 0x4f, 0x9a, 0x9e, 0xb6, 0xe7, 0xdd, 0x69, 0x96, 0x63, 0x26, 0xad, 0x14, 0x90, 0x4a,
  481. 0x41, 0xac, 0x1a, 0x28, 0x19, 0x9d, 0xb8, 0xe0, 0x0a, 0x46, 0x37, 0x69, 0x03, 0xa6, 0x06, 0xb7,
  482. 0xe2, 0x62, 0x42, 0x8a, 0xbc, 0xc4, 0x0b, 0x11, 0x89, 0x1d, 0x39, 0x6e, 0xb7, 0x7c, 0x25, 0x3e,
  483. 0x05, 0x97, 0x5c, 0xf0, 0x09, 0xf8, 0x34, 0x28, 0x71, 0xd2, 0x3f, 0x6b, 0x3b, 0xce, 0xb4, 0x3b,
  484. 0x67, 0x7b, 0x9e, 0x9f, 0xed, 0xe7, 0x7d, 0xfd, 0x16, 0x06, 0xf3, 0xa1, 0x20, 0x99, 0xe5, 0xf1,
  485. 0xd8, 0xf6, 0xb8, 0xa0, 0x36, 0x49, 0x12, 0x3b, 0x11, 0xfc, 0x21, 0x8b, 0x09, 0xb3, 0x3d, 0xce,
  486. 0xee, 0xc2, 0xc0, 0x4a, 0x04, 0x97, 0x1c, 0x1d, 0x56, 0x4a, 0x41, 0x2d, 0x92, 0x24, 0x56, 0xa5,
  487. 0xea, 0x1e, 0x3d, 0x42, 0x78, 0x3c, 0x8e, 0x39, 0xb3, 0x19, 0x95, 0x36, 0xf1, 0x7d, 0x41, 0xd3,
  488. 0x54, 0x11, 0xba, 0x9f, 0xef, 0x16, 0x26, 0x5c, 0xc8, 0x52, 0x65, 0x3d, 0x52, 0x49, 0x41, 0x58,
  489. 0x9a, 0xff, 0xdf, 0x0e, 0x99, 0xa4, 0x22, 0x57, 0xaf, 0x9e, 0xab, 0x7b, 0xb2, 0x9d, 0x9a, 0x52,
  490. 0x11, 0x92, 0xc8, 0x96, 0x59, 0x42, 0x7d, 0x37, 0xa6, 0x69, 0x4a, 0x02, 0xaa, 0x1c, 0xfd, 0x7d,
  491. 0x68, 0x5f, 0xb1, 0x5b, 0x3e, 0x63, 0xfe, 0xa8, 0x00, 0xf5, 0xff, 0xd2, 0x01, 0x9d, 0x45, 0x11,
  492. 0xf7, 0x88, 0x0c, 0x39, 0x9b, 0x48, 0x41, 0x24, 0x0d, 0x32, 0x74, 0x0e, 0xf5, 0xdc, 0xde, 0xd1,
  493. 0x7a, 0xda, 0xc0, 0x18, 0x9e, 0x58, 0x3b, 0x02, 0xb0, 0x36, 0xad, 0xd6, 0x34, 0x4b, 0x28, 0x2e,
  494. 0xdc, 0xe8, 0x0f, 0xd8, 0xf3, 0x38, 0xf3, 0x66, 0x42, 0x50, 0xe6, 0x65, 0x9d, 0x5a, 0x4f, 0x1b,
  495. 0xec, 0x0d, 0xaf, 0x9e, 0x03, 0xdb, 0xfc, 0xd3, 0x68, 0x09, 0xc4, 0xab, 0x74, 0xe4, 0x42, 0x53,
  496. 0xd0, 0x3b, 0x41, 0xd3, 0xdf, 0x3b, 0x7a, 0xb1, 0xd1, 0xc5, 0xcb, 0x36, 0xc2, 0x0a, 0x86, 0x2b,
  497. 0x6a, 0xf7, 0x1b, 0xf8, 0xe4, 0xc9, 0xe3, 0xa0, 0x03, 0x78, 0x3d, 0x27, 0xd1, 0x4c, 0xa5, 0xd6,
  498. 0xc6, 0xea, 0xa3, 0xfb, 0x35, 0x7c, 0xb8, 0x13, 0xbe, 0xdd, 0xd2, 0xff, 0x0a, 0xea, 0x79, 0x8a,
  499. 0x08, 0xa0, 0x71, 0x16, 0xdd, 0x93, 0x2c, 0x35, 0x5f, 0xe5, 0x6b, 0x4c, 0x98, 0xcf, 0x63, 0x53,
  500. 0x43, 0x6f, 0xa1, 0x75, 0xf1, 0x90, 0x37, 0x04, 0x89, 0xcc, 0x5a, 0xff, 0x5f, 0x1d, 0x0c, 0x4c,
  501. 0x3d, 0x1a, 0xce, 0xa9, 0x50, 0x55, 0x45, 0xdf, 0x01, 0xe4, 0x6d, 0xe3, 0x0a, 0xc2, 0x02, 0xc5,
  502. 0xde, 0x1b, 0xf6, 0x56, 0xe3, 0x50, 0x9d, 0x62, 0x31, 0x2a, 0x2d, 0x87, 0x0b, 0x89, 0x73, 0x1d,
  503. 0x7e, 0x93, 0x54, 0x4b, 0xf4, 0x2d, 0x34, 0xa2, 0x30, 0x95, 0x94, 0x95, 0x45, 0xfb, 0x74, 0x87,
  504. 0xf9, 0xca, 0x19, 0x8b, 0x73, 0x1e, 0x93, 0x90, 0xe1, 0xd2, 0x80, 0x7e, 0x83, 0x0f, 0xc8, 0xe2,
  505. 0xbe, 0x6e, 0x5a, 0x5e, 0xb8, 0xac, 0xc9, 0x97, 0xcf, 0xa8, 0x09, 0x46, 0x64, 0xb3, 0x31, 0xa7,
  506. 0xb0, 0x9f, 0x4a, 0x41, 0x49, 0xec, 0xa6, 0x54, 0xca, 0x90, 0x05, 0x69, 0xa7, 0xbe, 0x49, 0x5e,
  507. 0x3c, 0x1c, 0xab, 0x7a, 0x38, 0xd6, 0xa4, 0x70, 0xa9, 0x7c, 0xb0, 0xa1, 0x18, 0x93, 0x12, 0x81,
  508. 0xbe, 0x87, 0x8f, 0x85, 0x4a, 0xd0, 0xe5, 0x22, 0x0c, 0x42, 0x46, 0x22, 0xd7, 0xa7, 0xa9, 0x0c,
  509. 0x59, 0xb1, 0x7b, 0xe7, 0x75, 0x4f, 0x1b, 0xb4, 0x70, 0xb7, 0xd4, 0x8c, 0x4b, 0xc9, 0xf9, 0x52,
  510. 0x81, 0x1c, 0xd8, 0xf7, 0x8b, 0x1c, 0x5c, 0x3e, 0xa7, 0x42, 0x84, 0x3e, 0xed, 0x34, 0x7b, 0xfa,
  511. 0xc0, 0x18, 0x1e, 0xed, 0xbc, 0xf1, 0x4f, 0x8c, 0xdf, 0x33, 0x27, 0x7f, 0x96, 0x1e, 0x8f, 0x52,
  512. 0x6c, 0x28, 0xff, 0xb8, 0xb4, 0xff, 0x58, 0x6f, 0x35, 0xcc, 0x66, 0xff, 0x1f, 0x0d, 0x0e, 0xca,
  513. 0x17, 0x7b, 0x49, 0x98, 0x1f, 0x2d, 0x4a, 0x6c, 0x82, 0x2e, 0x49, 0x50, 0xd4, 0xf6, 0x0d, 0xce,
  514. 0x97, 0x68, 0x02, 0xef, 0xca, 0x03, 0x8a, 0x65, 0x38, 0xaa, 0x7c, 0x5f, 0x6c, 0x29, 0x9f, 0x9a,
  515. 0x12, 0xc5, 0x73, 0xf5, 0xaf, 0xd5, 0x90, 0xc0, 0x66, 0x05, 0x58, 0x24, 0x73, 0x0d, 0x46, 0x71,
  516. 0xe0, 0x25, 0x51, 0x7f, 0x16, 0xb1, 0x5d, 0xb8, 0x2b, 0x5c, 0xdf, 0x04, 0x63, 0x3c, 0x93, 0xab,
  517. 0x03, 0xe8, 0xef, 0x1a, 0xbc, 0x9d, 0x50, 0xe6, 0x2f, 0x2e, 0x76, 0x0a, 0xfa, 0x3c, 0x24, 0x65,
  518. 0xd3, 0xbe, 0x47, 0xdf, 0xe5, 0xea, 0x6d, 0x6d, 0x51, 0x7b, 0x79, 0x5b, 0xfc, 0xb2, 0xe3, 0xf2,
  519. 0xc7, 0xff, 0x03, 0x75, 0x72, 0x53, 0xc9, 0x5c, 0x0f, 0x00, 0xdd, 0x00, 0x8a, 0x67, 0x91, 0x0c,
  520. 0x93, 0x88, 0x3e, 0x3c, 0xd9, 0xc2, 0x6b, 0xad, 0x72, 0x5d, 0x59, 0x42, 0x16, 0x94, 0xdc, 0x77,
  521. 0x0b, 0xcc, 0x22, 0x5c, 0x07, 0xd0, 0xa6, 0x10, 0x75, 0xa0, 0x49, 0x19, 0xb9, 0x8d, 0xa8, 0x5f,
  522. 0x64, 0xda, 0xc2, 0xd5, 0x27, 0xea, 0x6d, 0x8e, 0xe7, 0xf6, 0xda, 0x4c, 0x3d, 0xfe, 0x0c, 0x8c,
  523. 0xf5, 0x2e, 0x45, 0x2d, 0xa8, 0x5f, 0x4e, 0xa7, 0x8e, 0xf9, 0x0a, 0x35, 0x41, 0x9f, 0xfe, 0x3c,
  524. 0x31, 0xb5, 0x1f, 0x46, 0xf0, 0x91, 0xc7, 0xe3, 0x5d, 0x67, 0x77, 0xb4, 0x9b, 0x56, 0xb5, 0xfe,
  525. 0xb3, 0x76, 0xf8, 0xeb, 0x10, 0x93, 0xcc, 0x1a, 0xe5, 0xaa, 0xb3, 0x24, 0x51, 0x49, 0xc5, 0x84,
  526. 0xdd, 0x36, 0x8a, 0xdf, 0xa7, 0xd3, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6a, 0xe5, 0x6f, 0xed,
  527. 0x95, 0x07, 0x00, 0x00,
  528. }