config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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: transport/internet/reality/config.proto
  6. package reality
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  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 struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Show bool `protobuf:"varint,1,opt,name=show,proto3" json:"show,omitempty"`
  23. Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
  24. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  25. Xver uint64 `protobuf:"varint,4,opt,name=xver,proto3" json:"xver,omitempty"`
  26. ServerNames []string `protobuf:"bytes,5,rep,name=server_names,json=serverNames,proto3" json:"server_names,omitempty"`
  27. PrivateKey []byte `protobuf:"bytes,6,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
  28. MinClientVer []byte `protobuf:"bytes,7,opt,name=min_client_ver,json=minClientVer,proto3" json:"min_client_ver,omitempty"`
  29. MaxClientVer []byte `protobuf:"bytes,8,opt,name=max_client_ver,json=maxClientVer,proto3" json:"max_client_ver,omitempty"`
  30. MaxTimeDiff uint64 `protobuf:"varint,9,opt,name=max_time_diff,json=maxTimeDiff,proto3" json:"max_time_diff,omitempty"`
  31. ShortIds [][]byte `protobuf:"bytes,10,rep,name=short_ids,json=shortIds,proto3" json:"short_ids,omitempty"`
  32. Mldsa65Seed []byte `protobuf:"bytes,11,opt,name=mldsa65_seed,json=mldsa65Seed,proto3" json:"mldsa65_seed,omitempty"`
  33. LimitFallbackUpload *LimitFallback `protobuf:"bytes,12,opt,name=limit_fallback_upload,json=limitFallbackUpload,proto3" json:"limit_fallback_upload,omitempty"`
  34. LimitFallbackDownload *LimitFallback `protobuf:"bytes,13,opt,name=limit_fallback_download,json=limitFallbackDownload,proto3" json:"limit_fallback_download,omitempty"`
  35. Fingerprint string `protobuf:"bytes,21,opt,name=Fingerprint,proto3" json:"Fingerprint,omitempty"`
  36. ServerName string `protobuf:"bytes,22,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
  37. PublicKey []byte `protobuf:"bytes,23,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
  38. ShortId []byte `protobuf:"bytes,24,opt,name=short_id,json=shortId,proto3" json:"short_id,omitempty"`
  39. Mldsa65Verify []byte `protobuf:"bytes,25,opt,name=mldsa65_verify,json=mldsa65Verify,proto3" json:"mldsa65_verify,omitempty"`
  40. SpiderX string `protobuf:"bytes,26,opt,name=spider_x,json=spiderX,proto3" json:"spider_x,omitempty"`
  41. SpiderY []int64 `protobuf:"varint,27,rep,packed,name=spider_y,json=spiderY,proto3" json:"spider_y,omitempty"`
  42. MasterKeyLog string `protobuf:"bytes,31,opt,name=master_key_log,json=masterKeyLog,proto3" json:"master_key_log,omitempty"`
  43. unknownFields protoimpl.UnknownFields
  44. sizeCache protoimpl.SizeCache
  45. }
  46. func (x *Config) Reset() {
  47. *x = Config{}
  48. mi := &file_transport_internet_reality_config_proto_msgTypes[0]
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. ms.StoreMessageInfo(mi)
  51. }
  52. func (x *Config) String() string {
  53. return protoimpl.X.MessageStringOf(x)
  54. }
  55. func (*Config) ProtoMessage() {}
  56. func (x *Config) ProtoReflect() protoreflect.Message {
  57. mi := &file_transport_internet_reality_config_proto_msgTypes[0]
  58. if x != nil {
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. if ms.LoadMessageInfo() == nil {
  61. ms.StoreMessageInfo(mi)
  62. }
  63. return ms
  64. }
  65. return mi.MessageOf(x)
  66. }
  67. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  68. func (*Config) Descriptor() ([]byte, []int) {
  69. return file_transport_internet_reality_config_proto_rawDescGZIP(), []int{0}
  70. }
  71. func (x *Config) GetShow() bool {
  72. if x != nil {
  73. return x.Show
  74. }
  75. return false
  76. }
  77. func (x *Config) GetDest() string {
  78. if x != nil {
  79. return x.Dest
  80. }
  81. return ""
  82. }
  83. func (x *Config) GetType() string {
  84. if x != nil {
  85. return x.Type
  86. }
  87. return ""
  88. }
  89. func (x *Config) GetXver() uint64 {
  90. if x != nil {
  91. return x.Xver
  92. }
  93. return 0
  94. }
  95. func (x *Config) GetServerNames() []string {
  96. if x != nil {
  97. return x.ServerNames
  98. }
  99. return nil
  100. }
  101. func (x *Config) GetPrivateKey() []byte {
  102. if x != nil {
  103. return x.PrivateKey
  104. }
  105. return nil
  106. }
  107. func (x *Config) GetMinClientVer() []byte {
  108. if x != nil {
  109. return x.MinClientVer
  110. }
  111. return nil
  112. }
  113. func (x *Config) GetMaxClientVer() []byte {
  114. if x != nil {
  115. return x.MaxClientVer
  116. }
  117. return nil
  118. }
  119. func (x *Config) GetMaxTimeDiff() uint64 {
  120. if x != nil {
  121. return x.MaxTimeDiff
  122. }
  123. return 0
  124. }
  125. func (x *Config) GetShortIds() [][]byte {
  126. if x != nil {
  127. return x.ShortIds
  128. }
  129. return nil
  130. }
  131. func (x *Config) GetMldsa65Seed() []byte {
  132. if x != nil {
  133. return x.Mldsa65Seed
  134. }
  135. return nil
  136. }
  137. func (x *Config) GetLimitFallbackUpload() *LimitFallback {
  138. if x != nil {
  139. return x.LimitFallbackUpload
  140. }
  141. return nil
  142. }
  143. func (x *Config) GetLimitFallbackDownload() *LimitFallback {
  144. if x != nil {
  145. return x.LimitFallbackDownload
  146. }
  147. return nil
  148. }
  149. func (x *Config) GetFingerprint() string {
  150. if x != nil {
  151. return x.Fingerprint
  152. }
  153. return ""
  154. }
  155. func (x *Config) GetServerName() string {
  156. if x != nil {
  157. return x.ServerName
  158. }
  159. return ""
  160. }
  161. func (x *Config) GetPublicKey() []byte {
  162. if x != nil {
  163. return x.PublicKey
  164. }
  165. return nil
  166. }
  167. func (x *Config) GetShortId() []byte {
  168. if x != nil {
  169. return x.ShortId
  170. }
  171. return nil
  172. }
  173. func (x *Config) GetMldsa65Verify() []byte {
  174. if x != nil {
  175. return x.Mldsa65Verify
  176. }
  177. return nil
  178. }
  179. func (x *Config) GetSpiderX() string {
  180. if x != nil {
  181. return x.SpiderX
  182. }
  183. return ""
  184. }
  185. func (x *Config) GetSpiderY() []int64 {
  186. if x != nil {
  187. return x.SpiderY
  188. }
  189. return nil
  190. }
  191. func (x *Config) GetMasterKeyLog() string {
  192. if x != nil {
  193. return x.MasterKeyLog
  194. }
  195. return ""
  196. }
  197. type LimitFallback struct {
  198. state protoimpl.MessageState `protogen:"open.v1"`
  199. AfterBytes uint64 `protobuf:"varint,1,opt,name=after_bytes,json=afterBytes,proto3" json:"after_bytes,omitempty"`
  200. BytesPerSec uint64 `protobuf:"varint,2,opt,name=bytes_per_sec,json=bytesPerSec,proto3" json:"bytes_per_sec,omitempty"`
  201. BurstBytesPerSec uint64 `protobuf:"varint,3,opt,name=burst_bytes_per_sec,json=burstBytesPerSec,proto3" json:"burst_bytes_per_sec,omitempty"`
  202. unknownFields protoimpl.UnknownFields
  203. sizeCache protoimpl.SizeCache
  204. }
  205. func (x *LimitFallback) Reset() {
  206. *x = LimitFallback{}
  207. mi := &file_transport_internet_reality_config_proto_msgTypes[1]
  208. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  209. ms.StoreMessageInfo(mi)
  210. }
  211. func (x *LimitFallback) String() string {
  212. return protoimpl.X.MessageStringOf(x)
  213. }
  214. func (*LimitFallback) ProtoMessage() {}
  215. func (x *LimitFallback) ProtoReflect() protoreflect.Message {
  216. mi := &file_transport_internet_reality_config_proto_msgTypes[1]
  217. if x != nil {
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. if ms.LoadMessageInfo() == nil {
  220. ms.StoreMessageInfo(mi)
  221. }
  222. return ms
  223. }
  224. return mi.MessageOf(x)
  225. }
  226. // Deprecated: Use LimitFallback.ProtoReflect.Descriptor instead.
  227. func (*LimitFallback) Descriptor() ([]byte, []int) {
  228. return file_transport_internet_reality_config_proto_rawDescGZIP(), []int{1}
  229. }
  230. func (x *LimitFallback) GetAfterBytes() uint64 {
  231. if x != nil {
  232. return x.AfterBytes
  233. }
  234. return 0
  235. }
  236. func (x *LimitFallback) GetBytesPerSec() uint64 {
  237. if x != nil {
  238. return x.BytesPerSec
  239. }
  240. return 0
  241. }
  242. func (x *LimitFallback) GetBurstBytesPerSec() uint64 {
  243. if x != nil {
  244. return x.BurstBytesPerSec
  245. }
  246. return 0
  247. }
  248. var File_transport_internet_reality_config_proto protoreflect.FileDescriptor
  249. const file_transport_internet_reality_config_proto_rawDesc = "" +
  250. "\n" +
  251. "'transport/internet/reality/config.proto\x12\x1fxray.transport.internet.reality\"\x98\x06\n" +
  252. "\x06Config\x12\x12\n" +
  253. "\x04show\x18\x01 \x01(\bR\x04show\x12\x12\n" +
  254. "\x04dest\x18\x02 \x01(\tR\x04dest\x12\x12\n" +
  255. "\x04type\x18\x03 \x01(\tR\x04type\x12\x12\n" +
  256. "\x04xver\x18\x04 \x01(\x04R\x04xver\x12!\n" +
  257. "\fserver_names\x18\x05 \x03(\tR\vserverNames\x12\x1f\n" +
  258. "\vprivate_key\x18\x06 \x01(\fR\n" +
  259. "privateKey\x12$\n" +
  260. "\x0emin_client_ver\x18\a \x01(\fR\fminClientVer\x12$\n" +
  261. "\x0emax_client_ver\x18\b \x01(\fR\fmaxClientVer\x12\"\n" +
  262. "\rmax_time_diff\x18\t \x01(\x04R\vmaxTimeDiff\x12\x1b\n" +
  263. "\tshort_ids\x18\n" +
  264. " \x03(\fR\bshortIds\x12!\n" +
  265. "\fmldsa65_seed\x18\v \x01(\fR\vmldsa65Seed\x12b\n" +
  266. "\x15limit_fallback_upload\x18\f \x01(\v2..xray.transport.internet.reality.LimitFallbackR\x13limitFallbackUpload\x12f\n" +
  267. "\x17limit_fallback_download\x18\r \x01(\v2..xray.transport.internet.reality.LimitFallbackR\x15limitFallbackDownload\x12 \n" +
  268. "\vFingerprint\x18\x15 \x01(\tR\vFingerprint\x12\x1f\n" +
  269. "\vserver_name\x18\x16 \x01(\tR\n" +
  270. "serverName\x12\x1d\n" +
  271. "\n" +
  272. "public_key\x18\x17 \x01(\fR\tpublicKey\x12\x19\n" +
  273. "\bshort_id\x18\x18 \x01(\fR\ashortId\x12%\n" +
  274. "\x0emldsa65_verify\x18\x19 \x01(\fR\rmldsa65Verify\x12\x19\n" +
  275. "\bspider_x\x18\x1a \x01(\tR\aspiderX\x12\x19\n" +
  276. "\bspider_y\x18\x1b \x03(\x03R\aspiderY\x12$\n" +
  277. "\x0emaster_key_log\x18\x1f \x01(\tR\fmasterKeyLog\"\x83\x01\n" +
  278. "\rLimitFallback\x12\x1f\n" +
  279. "\vafter_bytes\x18\x01 \x01(\x04R\n" +
  280. "afterBytes\x12\"\n" +
  281. "\rbytes_per_sec\x18\x02 \x01(\x04R\vbytesPerSec\x12-\n" +
  282. "\x13burst_bytes_per_sec\x18\x03 \x01(\x04R\x10burstBytesPerSecB\x7f\n" +
  283. "#com.xray.transport.internet.realityP\x01Z4github.com/xtls/xray-core/transport/internet/reality\xaa\x02\x1fXray.Transport.Internet.Realityb\x06proto3"
  284. var (
  285. file_transport_internet_reality_config_proto_rawDescOnce sync.Once
  286. file_transport_internet_reality_config_proto_rawDescData []byte
  287. )
  288. func file_transport_internet_reality_config_proto_rawDescGZIP() []byte {
  289. file_transport_internet_reality_config_proto_rawDescOnce.Do(func() {
  290. file_transport_internet_reality_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_reality_config_proto_rawDesc), len(file_transport_internet_reality_config_proto_rawDesc)))
  291. })
  292. return file_transport_internet_reality_config_proto_rawDescData
  293. }
  294. var file_transport_internet_reality_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  295. var file_transport_internet_reality_config_proto_goTypes = []any{
  296. (*Config)(nil), // 0: xray.transport.internet.reality.Config
  297. (*LimitFallback)(nil), // 1: xray.transport.internet.reality.LimitFallback
  298. }
  299. var file_transport_internet_reality_config_proto_depIdxs = []int32{
  300. 1, // 0: xray.transport.internet.reality.Config.limit_fallback_upload:type_name -> xray.transport.internet.reality.LimitFallback
  301. 1, // 1: xray.transport.internet.reality.Config.limit_fallback_download:type_name -> xray.transport.internet.reality.LimitFallback
  302. 2, // [2:2] is the sub-list for method output_type
  303. 2, // [2:2] is the sub-list for method input_type
  304. 2, // [2:2] is the sub-list for extension type_name
  305. 2, // [2:2] is the sub-list for extension extendee
  306. 0, // [0:2] is the sub-list for field type_name
  307. }
  308. func init() { file_transport_internet_reality_config_proto_init() }
  309. func file_transport_internet_reality_config_proto_init() {
  310. if File_transport_internet_reality_config_proto != nil {
  311. return
  312. }
  313. type x struct{}
  314. out := protoimpl.TypeBuilder{
  315. File: protoimpl.DescBuilder{
  316. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  317. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_reality_config_proto_rawDesc), len(file_transport_internet_reality_config_proto_rawDesc)),
  318. NumEnums: 0,
  319. NumMessages: 2,
  320. NumExtensions: 0,
  321. NumServices: 0,
  322. },
  323. GoTypes: file_transport_internet_reality_config_proto_goTypes,
  324. DependencyIndexes: file_transport_internet_reality_config_proto_depIdxs,
  325. MessageInfos: file_transport_internet_reality_config_proto_msgTypes,
  326. }.Build()
  327. File_transport_internet_reality_config_proto = out.File
  328. file_transport_internet_reality_config_proto_goTypes = nil
  329. file_transport_internet_reality_config_proto_depIdxs = nil
  330. }