config.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.28.0
  5. // source: proxy/freedom/config.proto
  6. package freedom
  7. import (
  8. protocol "github.com/xtls/xray-core/common/protocol"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Config_DomainStrategy int32
  21. const (
  22. Config_AS_IS Config_DomainStrategy = 0
  23. Config_USE_IP Config_DomainStrategy = 1
  24. Config_USE_IP4 Config_DomainStrategy = 2
  25. Config_USE_IP6 Config_DomainStrategy = 3
  26. Config_USE_IP46 Config_DomainStrategy = 4
  27. Config_USE_IP64 Config_DomainStrategy = 5
  28. Config_FORCE_IP Config_DomainStrategy = 6
  29. Config_FORCE_IP4 Config_DomainStrategy = 7
  30. Config_FORCE_IP6 Config_DomainStrategy = 8
  31. Config_FORCE_IP46 Config_DomainStrategy = 9
  32. Config_FORCE_IP64 Config_DomainStrategy = 10
  33. )
  34. // Enum value maps for Config_DomainStrategy.
  35. var (
  36. Config_DomainStrategy_name = map[int32]string{
  37. 0: "AS_IS",
  38. 1: "USE_IP",
  39. 2: "USE_IP4",
  40. 3: "USE_IP6",
  41. 4: "USE_IP46",
  42. 5: "USE_IP64",
  43. 6: "FORCE_IP",
  44. 7: "FORCE_IP4",
  45. 8: "FORCE_IP6",
  46. 9: "FORCE_IP46",
  47. 10: "FORCE_IP64",
  48. }
  49. Config_DomainStrategy_value = map[string]int32{
  50. "AS_IS": 0,
  51. "USE_IP": 1,
  52. "USE_IP4": 2,
  53. "USE_IP6": 3,
  54. "USE_IP46": 4,
  55. "USE_IP64": 5,
  56. "FORCE_IP": 6,
  57. "FORCE_IP4": 7,
  58. "FORCE_IP6": 8,
  59. "FORCE_IP46": 9,
  60. "FORCE_IP64": 10,
  61. }
  62. )
  63. func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
  64. p := new(Config_DomainStrategy)
  65. *p = x
  66. return p
  67. }
  68. func (x Config_DomainStrategy) String() string {
  69. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  70. }
  71. func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  72. return file_proxy_freedom_config_proto_enumTypes[0].Descriptor()
  73. }
  74. func (Config_DomainStrategy) Type() protoreflect.EnumType {
  75. return &file_proxy_freedom_config_proto_enumTypes[0]
  76. }
  77. func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
  78. return protoreflect.EnumNumber(x)
  79. }
  80. // Deprecated: Use Config_DomainStrategy.Descriptor instead.
  81. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  82. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{3, 0}
  83. }
  84. type DestinationOverride struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  89. }
  90. func (x *DestinationOverride) Reset() {
  91. *x = DestinationOverride{}
  92. if protoimpl.UnsafeEnabled {
  93. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. ms.StoreMessageInfo(mi)
  96. }
  97. }
  98. func (x *DestinationOverride) String() string {
  99. return protoimpl.X.MessageStringOf(x)
  100. }
  101. func (*DestinationOverride) ProtoMessage() {}
  102. func (x *DestinationOverride) ProtoReflect() protoreflect.Message {
  103. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  104. if protoimpl.UnsafeEnabled && x != nil {
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. if ms.LoadMessageInfo() == nil {
  107. ms.StoreMessageInfo(mi)
  108. }
  109. return ms
  110. }
  111. return mi.MessageOf(x)
  112. }
  113. // Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead.
  114. func (*DestinationOverride) Descriptor() ([]byte, []int) {
  115. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0}
  116. }
  117. func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint {
  118. if x != nil {
  119. return x.Server
  120. }
  121. return nil
  122. }
  123. type Fragment struct {
  124. state protoimpl.MessageState
  125. sizeCache protoimpl.SizeCache
  126. unknownFields protoimpl.UnknownFields
  127. PacketsFrom uint64 `protobuf:"varint,1,opt,name=packets_from,json=packetsFrom,proto3" json:"packets_from,omitempty"`
  128. PacketsTo uint64 `protobuf:"varint,2,opt,name=packets_to,json=packetsTo,proto3" json:"packets_to,omitempty"`
  129. LengthMin uint64 `protobuf:"varint,3,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"`
  130. LengthMax uint64 `protobuf:"varint,4,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"`
  131. IntervalMin uint64 `protobuf:"varint,5,opt,name=interval_min,json=intervalMin,proto3" json:"interval_min,omitempty"`
  132. IntervalMax uint64 `protobuf:"varint,6,opt,name=interval_max,json=intervalMax,proto3" json:"interval_max,omitempty"`
  133. }
  134. func (x *Fragment) Reset() {
  135. *x = Fragment{}
  136. if protoimpl.UnsafeEnabled {
  137. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  138. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  139. ms.StoreMessageInfo(mi)
  140. }
  141. }
  142. func (x *Fragment) String() string {
  143. return protoimpl.X.MessageStringOf(x)
  144. }
  145. func (*Fragment) ProtoMessage() {}
  146. func (x *Fragment) ProtoReflect() protoreflect.Message {
  147. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  148. if protoimpl.UnsafeEnabled && x != nil {
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. if ms.LoadMessageInfo() == nil {
  151. ms.StoreMessageInfo(mi)
  152. }
  153. return ms
  154. }
  155. return mi.MessageOf(x)
  156. }
  157. // Deprecated: Use Fragment.ProtoReflect.Descriptor instead.
  158. func (*Fragment) Descriptor() ([]byte, []int) {
  159. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1}
  160. }
  161. func (x *Fragment) GetPacketsFrom() uint64 {
  162. if x != nil {
  163. return x.PacketsFrom
  164. }
  165. return 0
  166. }
  167. func (x *Fragment) GetPacketsTo() uint64 {
  168. if x != nil {
  169. return x.PacketsTo
  170. }
  171. return 0
  172. }
  173. func (x *Fragment) GetLengthMin() uint64 {
  174. if x != nil {
  175. return x.LengthMin
  176. }
  177. return 0
  178. }
  179. func (x *Fragment) GetLengthMax() uint64 {
  180. if x != nil {
  181. return x.LengthMax
  182. }
  183. return 0
  184. }
  185. func (x *Fragment) GetIntervalMin() uint64 {
  186. if x != nil {
  187. return x.IntervalMin
  188. }
  189. return 0
  190. }
  191. func (x *Fragment) GetIntervalMax() uint64 {
  192. if x != nil {
  193. return x.IntervalMax
  194. }
  195. return 0
  196. }
  197. type Noise struct {
  198. state protoimpl.MessageState
  199. sizeCache protoimpl.SizeCache
  200. unknownFields protoimpl.UnknownFields
  201. LengthMin uint64 `protobuf:"varint,1,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"`
  202. LengthMax uint64 `protobuf:"varint,2,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"`
  203. DelayMin uint64 `protobuf:"varint,3,opt,name=delay_min,json=delayMin,proto3" json:"delay_min,omitempty"`
  204. DelayMax uint64 `protobuf:"varint,4,opt,name=delay_max,json=delayMax,proto3" json:"delay_max,omitempty"`
  205. StrNoise []byte `protobuf:"bytes,5,opt,name=str_noise,json=strNoise,proto3" json:"str_noise,omitempty"`
  206. }
  207. func (x *Noise) Reset() {
  208. *x = Noise{}
  209. if protoimpl.UnsafeEnabled {
  210. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  211. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  212. ms.StoreMessageInfo(mi)
  213. }
  214. }
  215. func (x *Noise) String() string {
  216. return protoimpl.X.MessageStringOf(x)
  217. }
  218. func (*Noise) ProtoMessage() {}
  219. func (x *Noise) ProtoReflect() protoreflect.Message {
  220. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  221. if protoimpl.UnsafeEnabled && x != nil {
  222. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  223. if ms.LoadMessageInfo() == nil {
  224. ms.StoreMessageInfo(mi)
  225. }
  226. return ms
  227. }
  228. return mi.MessageOf(x)
  229. }
  230. // Deprecated: Use Noise.ProtoReflect.Descriptor instead.
  231. func (*Noise) Descriptor() ([]byte, []int) {
  232. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{2}
  233. }
  234. func (x *Noise) GetLengthMin() uint64 {
  235. if x != nil {
  236. return x.LengthMin
  237. }
  238. return 0
  239. }
  240. func (x *Noise) GetLengthMax() uint64 {
  241. if x != nil {
  242. return x.LengthMax
  243. }
  244. return 0
  245. }
  246. func (x *Noise) GetDelayMin() uint64 {
  247. if x != nil {
  248. return x.DelayMin
  249. }
  250. return 0
  251. }
  252. func (x *Noise) GetDelayMax() uint64 {
  253. if x != nil {
  254. return x.DelayMax
  255. }
  256. return 0
  257. }
  258. func (x *Noise) GetStrNoise() []byte {
  259. if x != nil {
  260. return x.StrNoise
  261. }
  262. return nil
  263. }
  264. type Config struct {
  265. state protoimpl.MessageState
  266. sizeCache protoimpl.SizeCache
  267. unknownFields protoimpl.UnknownFields
  268. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  269. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  270. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  271. Fragment *Fragment `protobuf:"bytes,5,opt,name=fragment,proto3" json:"fragment,omitempty"`
  272. ProxyProtocol uint32 `protobuf:"varint,6,opt,name=proxy_protocol,json=proxyProtocol,proto3" json:"proxy_protocol,omitempty"`
  273. Noises []*Noise `protobuf:"bytes,7,rep,name=noises,proto3" json:"noises,omitempty"`
  274. }
  275. func (x *Config) Reset() {
  276. *x = Config{}
  277. if protoimpl.UnsafeEnabled {
  278. mi := &file_proxy_freedom_config_proto_msgTypes[3]
  279. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  280. ms.StoreMessageInfo(mi)
  281. }
  282. }
  283. func (x *Config) String() string {
  284. return protoimpl.X.MessageStringOf(x)
  285. }
  286. func (*Config) ProtoMessage() {}
  287. func (x *Config) ProtoReflect() protoreflect.Message {
  288. mi := &file_proxy_freedom_config_proto_msgTypes[3]
  289. if protoimpl.UnsafeEnabled && x != nil {
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. if ms.LoadMessageInfo() == nil {
  292. ms.StoreMessageInfo(mi)
  293. }
  294. return ms
  295. }
  296. return mi.MessageOf(x)
  297. }
  298. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  299. func (*Config) Descriptor() ([]byte, []int) {
  300. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{3}
  301. }
  302. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  303. if x != nil {
  304. return x.DomainStrategy
  305. }
  306. return Config_AS_IS
  307. }
  308. func (x *Config) GetDestinationOverride() *DestinationOverride {
  309. if x != nil {
  310. return x.DestinationOverride
  311. }
  312. return nil
  313. }
  314. func (x *Config) GetUserLevel() uint32 {
  315. if x != nil {
  316. return x.UserLevel
  317. }
  318. return 0
  319. }
  320. func (x *Config) GetFragment() *Fragment {
  321. if x != nil {
  322. return x.Fragment
  323. }
  324. return nil
  325. }
  326. func (x *Config) GetProxyProtocol() uint32 {
  327. if x != nil {
  328. return x.ProxyProtocol
  329. }
  330. return 0
  331. }
  332. func (x *Config) GetNoises() []*Noise {
  333. if x != nil {
  334. return x.Noises
  335. }
  336. return nil
  337. }
  338. var File_proxy_freedom_config_proto protoreflect.FileDescriptor
  339. var file_proxy_freedom_config_proto_rawDesc = []byte{
  340. 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2f,
  341. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72,
  342. 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d,
  343. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  344. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  345. 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69,
  346. 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65,
  347. 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61,
  348. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  349. 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  350. 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0xd0, 0x01, 0x0a, 0x08, 0x46, 0x72, 0x61,
  351. 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73,
  352. 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x61, 0x63,
  353. 0x6b, 0x65, 0x74, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x63, 0x6b,
  354. 0x65, 0x74, 0x73, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61,
  355. 0x63, 0x6b, 0x65, 0x74, 0x73, 0x54, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74,
  356. 0x68, 0x5f, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e,
  357. 0x67, 0x74, 0x68, 0x4d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
  358. 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e, 0x67,
  359. 0x74, 0x68, 0x4d, 0x61, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
  360. 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x69, 0x6e, 0x74,
  361. 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x65,
  362. 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b,
  363. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x61, 0x78, 0x22, 0x9c, 0x01, 0x0a, 0x05,
  364. 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f,
  365. 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e, 0x67, 0x74,
  366. 0x68, 0x4d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d,
  367. 0x61, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
  368. 0x4d, 0x61, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x69, 0x6e,
  369. 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x4d, 0x69, 0x6e,
  370. 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x04, 0x20,
  371. 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x4d, 0x61, 0x78, 0x12, 0x1b, 0x0a,
  372. 0x09, 0x73, 0x74, 0x72, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
  373. 0x52, 0x08, 0x73, 0x74, 0x72, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x22, 0x97, 0x04, 0x0a, 0x06, 0x43,
  374. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x52, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f,
  375. 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29,
  376. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65,
  377. 0x64, 0x6f, 0x6d, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  378. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  379. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x5a, 0x0a, 0x14, 0x64, 0x65, 0x73,
  380. 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
  381. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70,
  382. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x44, 0x65, 0x73,
  383. 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
  384. 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65,
  385. 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65,
  386. 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c,
  387. 0x65, 0x76, 0x65, 0x6c, 0x12, 0x38, 0x0a, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
  388. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72,
  389. 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x46, 0x72, 0x61, 0x67,
  390. 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25,
  391. 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  392. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f,
  393. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x73, 0x18,
  394. 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  395. 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x4e, 0x6f, 0x69, 0x73, 0x65,
  396. 0x52, 0x06, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x44, 0x6f, 0x6d,
  397. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41,
  398. 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50,
  399. 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12,
  400. 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08,
  401. 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x36, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x53,
  402. 0x45, 0x5f, 0x49, 0x50, 0x36, 0x34, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52, 0x43,
  403. 0x45, 0x5f, 0x49, 0x50, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f,
  404. 0x49, 0x50, 0x34, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49,
  405. 0x50, 0x36, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50,
  406. 0x34, 0x36, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50,
  407. 0x36, 0x34, 0x10, 0x0a, 0x42, 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79,
  408. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x50, 0x01,
  409. 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  410. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78,
  411. 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79,
  412. 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x46, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x62, 0x06,
  413. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  414. }
  415. var (
  416. file_proxy_freedom_config_proto_rawDescOnce sync.Once
  417. file_proxy_freedom_config_proto_rawDescData = file_proxy_freedom_config_proto_rawDesc
  418. )
  419. func file_proxy_freedom_config_proto_rawDescGZIP() []byte {
  420. file_proxy_freedom_config_proto_rawDescOnce.Do(func() {
  421. file_proxy_freedom_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_freedom_config_proto_rawDescData)
  422. })
  423. return file_proxy_freedom_config_proto_rawDescData
  424. }
  425. var file_proxy_freedom_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  426. var file_proxy_freedom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  427. var file_proxy_freedom_config_proto_goTypes = []any{
  428. (Config_DomainStrategy)(0), // 0: xray.proxy.freedom.Config.DomainStrategy
  429. (*DestinationOverride)(nil), // 1: xray.proxy.freedom.DestinationOverride
  430. (*Fragment)(nil), // 2: xray.proxy.freedom.Fragment
  431. (*Noise)(nil), // 3: xray.proxy.freedom.Noise
  432. (*Config)(nil), // 4: xray.proxy.freedom.Config
  433. (*protocol.ServerEndpoint)(nil), // 5: xray.common.protocol.ServerEndpoint
  434. }
  435. var file_proxy_freedom_config_proto_depIdxs = []int32{
  436. 5, // 0: xray.proxy.freedom.DestinationOverride.server:type_name -> xray.common.protocol.ServerEndpoint
  437. 0, // 1: xray.proxy.freedom.Config.domain_strategy:type_name -> xray.proxy.freedom.Config.DomainStrategy
  438. 1, // 2: xray.proxy.freedom.Config.destination_override:type_name -> xray.proxy.freedom.DestinationOverride
  439. 2, // 3: xray.proxy.freedom.Config.fragment:type_name -> xray.proxy.freedom.Fragment
  440. 3, // 4: xray.proxy.freedom.Config.noises:type_name -> xray.proxy.freedom.Noise
  441. 5, // [5:5] is the sub-list for method output_type
  442. 5, // [5:5] is the sub-list for method input_type
  443. 5, // [5:5] is the sub-list for extension type_name
  444. 5, // [5:5] is the sub-list for extension extendee
  445. 0, // [0:5] is the sub-list for field type_name
  446. }
  447. func init() { file_proxy_freedom_config_proto_init() }
  448. func file_proxy_freedom_config_proto_init() {
  449. if File_proxy_freedom_config_proto != nil {
  450. return
  451. }
  452. if !protoimpl.UnsafeEnabled {
  453. file_proxy_freedom_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  454. switch v := v.(*DestinationOverride); i {
  455. case 0:
  456. return &v.state
  457. case 1:
  458. return &v.sizeCache
  459. case 2:
  460. return &v.unknownFields
  461. default:
  462. return nil
  463. }
  464. }
  465. file_proxy_freedom_config_proto_msgTypes[1].Exporter = func(v any, i int) any {
  466. switch v := v.(*Fragment); i {
  467. case 0:
  468. return &v.state
  469. case 1:
  470. return &v.sizeCache
  471. case 2:
  472. return &v.unknownFields
  473. default:
  474. return nil
  475. }
  476. }
  477. file_proxy_freedom_config_proto_msgTypes[2].Exporter = func(v any, i int) any {
  478. switch v := v.(*Noise); i {
  479. case 0:
  480. return &v.state
  481. case 1:
  482. return &v.sizeCache
  483. case 2:
  484. return &v.unknownFields
  485. default:
  486. return nil
  487. }
  488. }
  489. file_proxy_freedom_config_proto_msgTypes[3].Exporter = func(v any, i int) any {
  490. switch v := v.(*Config); i {
  491. case 0:
  492. return &v.state
  493. case 1:
  494. return &v.sizeCache
  495. case 2:
  496. return &v.unknownFields
  497. default:
  498. return nil
  499. }
  500. }
  501. }
  502. type x struct{}
  503. out := protoimpl.TypeBuilder{
  504. File: protoimpl.DescBuilder{
  505. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  506. RawDescriptor: file_proxy_freedom_config_proto_rawDesc,
  507. NumEnums: 1,
  508. NumMessages: 4,
  509. NumExtensions: 0,
  510. NumServices: 0,
  511. },
  512. GoTypes: file_proxy_freedom_config_proto_goTypes,
  513. DependencyIndexes: file_proxy_freedom_config_proto_depIdxs,
  514. EnumInfos: file_proxy_freedom_config_proto_enumTypes,
  515. MessageInfos: file_proxy_freedom_config_proto_msgTypes,
  516. }.Build()
  517. File_proxy_freedom_config_proto = out.File
  518. file_proxy_freedom_config_proto_rawDesc = nil
  519. file_proxy_freedom_config_proto_goTypes = nil
  520. file_proxy_freedom_config_proto_depIdxs = nil
  521. }