config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: proxy/freedom/config.proto
  6. package freedom
  7. import (
  8. protocol "github.com/xtls/xray-core/common/protocol"
  9. internet "github.com/xtls/xray-core/transport/internet"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  14. unsafe "unsafe"
  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 DestinationOverride struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *DestinationOverride) Reset() {
  29. *x = DestinationOverride{}
  30. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *DestinationOverride) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*DestinationOverride) ProtoMessage() {}
  38. func (x *DestinationOverride) ProtoReflect() protoreflect.Message {
  39. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead.
  50. func (*DestinationOverride) Descriptor() ([]byte, []int) {
  51. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint {
  54. if x != nil {
  55. return x.Server
  56. }
  57. return nil
  58. }
  59. type Fragment struct {
  60. state protoimpl.MessageState `protogen:"open.v1"`
  61. PacketsFrom uint64 `protobuf:"varint,1,opt,name=packets_from,json=packetsFrom,proto3" json:"packets_from,omitempty"`
  62. PacketsTo uint64 `protobuf:"varint,2,opt,name=packets_to,json=packetsTo,proto3" json:"packets_to,omitempty"`
  63. LengthMin uint64 `protobuf:"varint,3,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"`
  64. LengthMax uint64 `protobuf:"varint,4,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"`
  65. IntervalMin uint64 `protobuf:"varint,5,opt,name=interval_min,json=intervalMin,proto3" json:"interval_min,omitempty"`
  66. IntervalMax uint64 `protobuf:"varint,6,opt,name=interval_max,json=intervalMax,proto3" json:"interval_max,omitempty"`
  67. MaxSplitMin uint64 `protobuf:"varint,7,opt,name=max_split_min,json=maxSplitMin,proto3" json:"max_split_min,omitempty"`
  68. MaxSplitMax uint64 `protobuf:"varint,8,opt,name=max_split_max,json=maxSplitMax,proto3" json:"max_split_max,omitempty"`
  69. unknownFields protoimpl.UnknownFields
  70. sizeCache protoimpl.SizeCache
  71. }
  72. func (x *Fragment) Reset() {
  73. *x = Fragment{}
  74. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. func (x *Fragment) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*Fragment) ProtoMessage() {}
  82. func (x *Fragment) ProtoReflect() protoreflect.Message {
  83. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  84. if x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use Fragment.ProtoReflect.Descriptor instead.
  94. func (*Fragment) Descriptor() ([]byte, []int) {
  95. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *Fragment) GetPacketsFrom() uint64 {
  98. if x != nil {
  99. return x.PacketsFrom
  100. }
  101. return 0
  102. }
  103. func (x *Fragment) GetPacketsTo() uint64 {
  104. if x != nil {
  105. return x.PacketsTo
  106. }
  107. return 0
  108. }
  109. func (x *Fragment) GetLengthMin() uint64 {
  110. if x != nil {
  111. return x.LengthMin
  112. }
  113. return 0
  114. }
  115. func (x *Fragment) GetLengthMax() uint64 {
  116. if x != nil {
  117. return x.LengthMax
  118. }
  119. return 0
  120. }
  121. func (x *Fragment) GetIntervalMin() uint64 {
  122. if x != nil {
  123. return x.IntervalMin
  124. }
  125. return 0
  126. }
  127. func (x *Fragment) GetIntervalMax() uint64 {
  128. if x != nil {
  129. return x.IntervalMax
  130. }
  131. return 0
  132. }
  133. func (x *Fragment) GetMaxSplitMin() uint64 {
  134. if x != nil {
  135. return x.MaxSplitMin
  136. }
  137. return 0
  138. }
  139. func (x *Fragment) GetMaxSplitMax() uint64 {
  140. if x != nil {
  141. return x.MaxSplitMax
  142. }
  143. return 0
  144. }
  145. type Noise struct {
  146. state protoimpl.MessageState `protogen:"open.v1"`
  147. LengthMin uint64 `protobuf:"varint,1,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"`
  148. LengthMax uint64 `protobuf:"varint,2,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"`
  149. DelayMin uint64 `protobuf:"varint,3,opt,name=delay_min,json=delayMin,proto3" json:"delay_min,omitempty"`
  150. DelayMax uint64 `protobuf:"varint,4,opt,name=delay_max,json=delayMax,proto3" json:"delay_max,omitempty"`
  151. Packet []byte `protobuf:"bytes,5,opt,name=packet,proto3" json:"packet,omitempty"`
  152. ApplyTo string `protobuf:"bytes,6,opt,name=apply_to,json=applyTo,proto3" json:"apply_to,omitempty"`
  153. unknownFields protoimpl.UnknownFields
  154. sizeCache protoimpl.SizeCache
  155. }
  156. func (x *Noise) Reset() {
  157. *x = Noise{}
  158. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. func (x *Noise) String() string {
  163. return protoimpl.X.MessageStringOf(x)
  164. }
  165. func (*Noise) ProtoMessage() {}
  166. func (x *Noise) ProtoReflect() protoreflect.Message {
  167. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  168. if x != nil {
  169. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  170. if ms.LoadMessageInfo() == nil {
  171. ms.StoreMessageInfo(mi)
  172. }
  173. return ms
  174. }
  175. return mi.MessageOf(x)
  176. }
  177. // Deprecated: Use Noise.ProtoReflect.Descriptor instead.
  178. func (*Noise) Descriptor() ([]byte, []int) {
  179. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{2}
  180. }
  181. func (x *Noise) GetLengthMin() uint64 {
  182. if x != nil {
  183. return x.LengthMin
  184. }
  185. return 0
  186. }
  187. func (x *Noise) GetLengthMax() uint64 {
  188. if x != nil {
  189. return x.LengthMax
  190. }
  191. return 0
  192. }
  193. func (x *Noise) GetDelayMin() uint64 {
  194. if x != nil {
  195. return x.DelayMin
  196. }
  197. return 0
  198. }
  199. func (x *Noise) GetDelayMax() uint64 {
  200. if x != nil {
  201. return x.DelayMax
  202. }
  203. return 0
  204. }
  205. func (x *Noise) GetPacket() []byte {
  206. if x != nil {
  207. return x.Packet
  208. }
  209. return nil
  210. }
  211. func (x *Noise) GetApplyTo() string {
  212. if x != nil {
  213. return x.ApplyTo
  214. }
  215. return ""
  216. }
  217. type Config struct {
  218. state protoimpl.MessageState `protogen:"open.v1"`
  219. DomainStrategy internet.DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.transport.internet.DomainStrategy" json:"domain_strategy,omitempty"`
  220. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  221. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  222. Fragment *Fragment `protobuf:"bytes,5,opt,name=fragment,proto3" json:"fragment,omitempty"`
  223. ProxyProtocol uint32 `protobuf:"varint,6,opt,name=proxy_protocol,json=proxyProtocol,proto3" json:"proxy_protocol,omitempty"`
  224. Noises []*Noise `protobuf:"bytes,7,rep,name=noises,proto3" json:"noises,omitempty"`
  225. unknownFields protoimpl.UnknownFields
  226. sizeCache protoimpl.SizeCache
  227. }
  228. func (x *Config) Reset() {
  229. *x = Config{}
  230. mi := &file_proxy_freedom_config_proto_msgTypes[3]
  231. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  232. ms.StoreMessageInfo(mi)
  233. }
  234. func (x *Config) String() string {
  235. return protoimpl.X.MessageStringOf(x)
  236. }
  237. func (*Config) ProtoMessage() {}
  238. func (x *Config) ProtoReflect() protoreflect.Message {
  239. mi := &file_proxy_freedom_config_proto_msgTypes[3]
  240. if x != nil {
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. if ms.LoadMessageInfo() == nil {
  243. ms.StoreMessageInfo(mi)
  244. }
  245. return ms
  246. }
  247. return mi.MessageOf(x)
  248. }
  249. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  250. func (*Config) Descriptor() ([]byte, []int) {
  251. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{3}
  252. }
  253. func (x *Config) GetDomainStrategy() internet.DomainStrategy {
  254. if x != nil {
  255. return x.DomainStrategy
  256. }
  257. return internet.DomainStrategy(0)
  258. }
  259. func (x *Config) GetDestinationOverride() *DestinationOverride {
  260. if x != nil {
  261. return x.DestinationOverride
  262. }
  263. return nil
  264. }
  265. func (x *Config) GetUserLevel() uint32 {
  266. if x != nil {
  267. return x.UserLevel
  268. }
  269. return 0
  270. }
  271. func (x *Config) GetFragment() *Fragment {
  272. if x != nil {
  273. return x.Fragment
  274. }
  275. return nil
  276. }
  277. func (x *Config) GetProxyProtocol() uint32 {
  278. if x != nil {
  279. return x.ProxyProtocol
  280. }
  281. return 0
  282. }
  283. func (x *Config) GetNoises() []*Noise {
  284. if x != nil {
  285. return x.Noises
  286. }
  287. return nil
  288. }
  289. var File_proxy_freedom_config_proto protoreflect.FileDescriptor
  290. const file_proxy_freedom_config_proto_rawDesc = "" +
  291. "\n" +
  292. "\x1aproxy/freedom/config.proto\x12\x12xray.proxy.freedom\x1a!common/protocol/server_spec.proto\x1a\x1ftransport/internet/config.proto\"S\n" +
  293. "\x13DestinationOverride\x12<\n" +
  294. "\x06server\x18\x01 \x01(\v2$.xray.common.protocol.ServerEndpointR\x06server\"\x98\x02\n" +
  295. "\bFragment\x12!\n" +
  296. "\fpackets_from\x18\x01 \x01(\x04R\vpacketsFrom\x12\x1d\n" +
  297. "\n" +
  298. "packets_to\x18\x02 \x01(\x04R\tpacketsTo\x12\x1d\n" +
  299. "\n" +
  300. "length_min\x18\x03 \x01(\x04R\tlengthMin\x12\x1d\n" +
  301. "\n" +
  302. "length_max\x18\x04 \x01(\x04R\tlengthMax\x12!\n" +
  303. "\finterval_min\x18\x05 \x01(\x04R\vintervalMin\x12!\n" +
  304. "\finterval_max\x18\x06 \x01(\x04R\vintervalMax\x12\"\n" +
  305. "\rmax_split_min\x18\a \x01(\x04R\vmaxSplitMin\x12\"\n" +
  306. "\rmax_split_max\x18\b \x01(\x04R\vmaxSplitMax\"\xb2\x01\n" +
  307. "\x05Noise\x12\x1d\n" +
  308. "\n" +
  309. "length_min\x18\x01 \x01(\x04R\tlengthMin\x12\x1d\n" +
  310. "\n" +
  311. "length_max\x18\x02 \x01(\x04R\tlengthMax\x12\x1b\n" +
  312. "\tdelay_min\x18\x03 \x01(\x04R\bdelayMin\x12\x1b\n" +
  313. "\tdelay_max\x18\x04 \x01(\x04R\bdelayMax\x12\x16\n" +
  314. "\x06packet\x18\x05 \x01(\fR\x06packet\x12\x19\n" +
  315. "\bapply_to\x18\x06 \x01(\tR\aapplyTo\"\xe9\x02\n" +
  316. "\x06Config\x12P\n" +
  317. "\x0fdomain_strategy\x18\x01 \x01(\x0e2'.xray.transport.internet.DomainStrategyR\x0edomainStrategy\x12Z\n" +
  318. "\x14destination_override\x18\x03 \x01(\v2'.xray.proxy.freedom.DestinationOverrideR\x13destinationOverride\x12\x1d\n" +
  319. "\n" +
  320. "user_level\x18\x04 \x01(\rR\tuserLevel\x128\n" +
  321. "\bfragment\x18\x05 \x01(\v2\x1c.xray.proxy.freedom.FragmentR\bfragment\x12%\n" +
  322. "\x0eproxy_protocol\x18\x06 \x01(\rR\rproxyProtocol\x121\n" +
  323. "\x06noises\x18\a \x03(\v2\x19.xray.proxy.freedom.NoiseR\x06noisesBX\n" +
  324. "\x16com.xray.proxy.freedomP\x01Z'github.com/xtls/xray-core/proxy/freedom\xaa\x02\x12Xray.Proxy.Freedomb\x06proto3"
  325. var (
  326. file_proxy_freedom_config_proto_rawDescOnce sync.Once
  327. file_proxy_freedom_config_proto_rawDescData []byte
  328. )
  329. func file_proxy_freedom_config_proto_rawDescGZIP() []byte {
  330. file_proxy_freedom_config_proto_rawDescOnce.Do(func() {
  331. file_proxy_freedom_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_freedom_config_proto_rawDesc), len(file_proxy_freedom_config_proto_rawDesc)))
  332. })
  333. return file_proxy_freedom_config_proto_rawDescData
  334. }
  335. var file_proxy_freedom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  336. var file_proxy_freedom_config_proto_goTypes = []any{
  337. (*DestinationOverride)(nil), // 0: xray.proxy.freedom.DestinationOverride
  338. (*Fragment)(nil), // 1: xray.proxy.freedom.Fragment
  339. (*Noise)(nil), // 2: xray.proxy.freedom.Noise
  340. (*Config)(nil), // 3: xray.proxy.freedom.Config
  341. (*protocol.ServerEndpoint)(nil), // 4: xray.common.protocol.ServerEndpoint
  342. (internet.DomainStrategy)(0), // 5: xray.transport.internet.DomainStrategy
  343. }
  344. var file_proxy_freedom_config_proto_depIdxs = []int32{
  345. 4, // 0: xray.proxy.freedom.DestinationOverride.server:type_name -> xray.common.protocol.ServerEndpoint
  346. 5, // 1: xray.proxy.freedom.Config.domain_strategy:type_name -> xray.transport.internet.DomainStrategy
  347. 0, // 2: xray.proxy.freedom.Config.destination_override:type_name -> xray.proxy.freedom.DestinationOverride
  348. 1, // 3: xray.proxy.freedom.Config.fragment:type_name -> xray.proxy.freedom.Fragment
  349. 2, // 4: xray.proxy.freedom.Config.noises:type_name -> xray.proxy.freedom.Noise
  350. 5, // [5:5] is the sub-list for method output_type
  351. 5, // [5:5] is the sub-list for method input_type
  352. 5, // [5:5] is the sub-list for extension type_name
  353. 5, // [5:5] is the sub-list for extension extendee
  354. 0, // [0:5] is the sub-list for field type_name
  355. }
  356. func init() { file_proxy_freedom_config_proto_init() }
  357. func file_proxy_freedom_config_proto_init() {
  358. if File_proxy_freedom_config_proto != nil {
  359. return
  360. }
  361. type x struct{}
  362. out := protoimpl.TypeBuilder{
  363. File: protoimpl.DescBuilder{
  364. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  365. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_freedom_config_proto_rawDesc), len(file_proxy_freedom_config_proto_rawDesc)),
  366. NumEnums: 0,
  367. NumMessages: 4,
  368. NumExtensions: 0,
  369. NumServices: 0,
  370. },
  371. GoTypes: file_proxy_freedom_config_proto_goTypes,
  372. DependencyIndexes: file_proxy_freedom_config_proto_depIdxs,
  373. MessageInfos: file_proxy_freedom_config_proto_msgTypes,
  374. }.Build()
  375. File_proxy_freedom_config_proto = out.File
  376. file_proxy_freedom_config_proto_goTypes = nil
  377. file_proxy_freedom_config_proto_depIdxs = nil
  378. }