config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.23.1
  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. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Config struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Show bool `protobuf:"varint,1,opt,name=show,proto3" json:"show,omitempty"`
  24. Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
  25. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  26. Xver uint64 `protobuf:"varint,4,opt,name=xver,proto3" json:"xver,omitempty"`
  27. ServerNames []string `protobuf:"bytes,5,rep,name=server_names,json=serverNames,proto3" json:"server_names,omitempty"`
  28. PrivateKey []byte `protobuf:"bytes,6,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
  29. MinClientVer []byte `protobuf:"bytes,7,opt,name=min_client_ver,json=minClientVer,proto3" json:"min_client_ver,omitempty"`
  30. MaxClientVer []byte `protobuf:"bytes,8,opt,name=max_client_ver,json=maxClientVer,proto3" json:"max_client_ver,omitempty"`
  31. MaxTimeDiff uint64 `protobuf:"varint,9,opt,name=max_time_diff,json=maxTimeDiff,proto3" json:"max_time_diff,omitempty"`
  32. ShortIds [][]byte `protobuf:"bytes,10,rep,name=short_ids,json=shortIds,proto3" json:"short_ids,omitempty"`
  33. Fingerprint string `protobuf:"bytes,21,opt,name=Fingerprint,proto3" json:"Fingerprint,omitempty"`
  34. ServerName string `protobuf:"bytes,22,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
  35. PublicKey []byte `protobuf:"bytes,23,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
  36. ShortId []byte `protobuf:"bytes,24,opt,name=short_id,json=shortId,proto3" json:"short_id,omitempty"`
  37. SpiderX string `protobuf:"bytes,25,opt,name=spider_x,json=spiderX,proto3" json:"spider_x,omitempty"`
  38. SpiderY []int64 `protobuf:"varint,26,rep,packed,name=spider_y,json=spiderY,proto3" json:"spider_y,omitempty"`
  39. }
  40. func (x *Config) Reset() {
  41. *x = Config{}
  42. if protoimpl.UnsafeEnabled {
  43. mi := &file_transport_internet_reality_config_proto_msgTypes[0]
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. ms.StoreMessageInfo(mi)
  46. }
  47. }
  48. func (x *Config) String() string {
  49. return protoimpl.X.MessageStringOf(x)
  50. }
  51. func (*Config) ProtoMessage() {}
  52. func (x *Config) ProtoReflect() protoreflect.Message {
  53. mi := &file_transport_internet_reality_config_proto_msgTypes[0]
  54. if protoimpl.UnsafeEnabled && x != nil {
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. if ms.LoadMessageInfo() == nil {
  57. ms.StoreMessageInfo(mi)
  58. }
  59. return ms
  60. }
  61. return mi.MessageOf(x)
  62. }
  63. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  64. func (*Config) Descriptor() ([]byte, []int) {
  65. return file_transport_internet_reality_config_proto_rawDescGZIP(), []int{0}
  66. }
  67. func (x *Config) GetShow() bool {
  68. if x != nil {
  69. return x.Show
  70. }
  71. return false
  72. }
  73. func (x *Config) GetDest() string {
  74. if x != nil {
  75. return x.Dest
  76. }
  77. return ""
  78. }
  79. func (x *Config) GetType() string {
  80. if x != nil {
  81. return x.Type
  82. }
  83. return ""
  84. }
  85. func (x *Config) GetXver() uint64 {
  86. if x != nil {
  87. return x.Xver
  88. }
  89. return 0
  90. }
  91. func (x *Config) GetServerNames() []string {
  92. if x != nil {
  93. return x.ServerNames
  94. }
  95. return nil
  96. }
  97. func (x *Config) GetPrivateKey() []byte {
  98. if x != nil {
  99. return x.PrivateKey
  100. }
  101. return nil
  102. }
  103. func (x *Config) GetMinClientVer() []byte {
  104. if x != nil {
  105. return x.MinClientVer
  106. }
  107. return nil
  108. }
  109. func (x *Config) GetMaxClientVer() []byte {
  110. if x != nil {
  111. return x.MaxClientVer
  112. }
  113. return nil
  114. }
  115. func (x *Config) GetMaxTimeDiff() uint64 {
  116. if x != nil {
  117. return x.MaxTimeDiff
  118. }
  119. return 0
  120. }
  121. func (x *Config) GetShortIds() [][]byte {
  122. if x != nil {
  123. return x.ShortIds
  124. }
  125. return nil
  126. }
  127. func (x *Config) GetFingerprint() string {
  128. if x != nil {
  129. return x.Fingerprint
  130. }
  131. return ""
  132. }
  133. func (x *Config) GetServerName() string {
  134. if x != nil {
  135. return x.ServerName
  136. }
  137. return ""
  138. }
  139. func (x *Config) GetPublicKey() []byte {
  140. if x != nil {
  141. return x.PublicKey
  142. }
  143. return nil
  144. }
  145. func (x *Config) GetShortId() []byte {
  146. if x != nil {
  147. return x.ShortId
  148. }
  149. return nil
  150. }
  151. func (x *Config) GetSpiderX() string {
  152. if x != nil {
  153. return x.SpiderX
  154. }
  155. return ""
  156. }
  157. func (x *Config) GetSpiderY() []int64 {
  158. if x != nil {
  159. return x.SpiderY
  160. }
  161. return nil
  162. }
  163. var File_transport_internet_reality_config_proto protoreflect.FileDescriptor
  164. var file_transport_internet_reality_config_proto_rawDesc = []byte{
  165. 0x0a, 0x27, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  166. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x63, 0x6f, 0x6e,
  167. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x78, 0x72, 0x61, 0x79, 0x2e,
  168. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  169. 0x65, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x22, 0xdc, 0x03, 0x0a, 0x06, 0x43,
  170. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x01, 0x20,
  171. 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x68, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73,
  172. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
  173. 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
  174. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52,
  175. 0x04, 0x78, 0x76, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f,
  176. 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72,
  177. 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76,
  178. 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70,
  179. 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x69, 0x6e,
  180. 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28,
  181. 0x0c, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x12,
  182. 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65,
  183. 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x6c, 0x69, 0x65,
  184. 0x6e, 0x74, 0x56, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d,
  185. 0x65, 0x5f, 0x64, 0x69, 0x66, 0x66, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61,
  186. 0x78, 0x54, 0x69, 0x6d, 0x65, 0x44, 0x69, 0x66, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x68, 0x6f,
  187. 0x72, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x68,
  188. 0x6f, 0x72, 0x74, 0x49, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72,
  189. 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x46, 0x69, 0x6e,
  190. 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76,
  191. 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73,
  192. 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62,
  193. 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70,
  194. 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x6f, 0x72,
  195. 0x74, 0x5f, 0x69, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x68, 0x6f, 0x72,
  196. 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x78, 0x18,
  197. 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x70, 0x69, 0x64, 0x65, 0x72, 0x58, 0x12, 0x19,
  198. 0x0a, 0x08, 0x73, 0x70, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x79, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x03,
  199. 0x52, 0x07, 0x73, 0x70, 0x69, 0x64, 0x65, 0x72, 0x59, 0x42, 0x7f, 0x0a, 0x23, 0x63, 0x6f, 0x6d,
  200. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  201. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x74, 0x79,
  202. 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78,
  203. 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72,
  204. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  205. 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x74, 0x79, 0xaa, 0x02, 0x1f, 0x58, 0x72, 0x61, 0x79, 0x2e,
  206. 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  207. 0x65, 0x74, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  208. 0x6f, 0x33,
  209. }
  210. var (
  211. file_transport_internet_reality_config_proto_rawDescOnce sync.Once
  212. file_transport_internet_reality_config_proto_rawDescData = file_transport_internet_reality_config_proto_rawDesc
  213. )
  214. func file_transport_internet_reality_config_proto_rawDescGZIP() []byte {
  215. file_transport_internet_reality_config_proto_rawDescOnce.Do(func() {
  216. file_transport_internet_reality_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_reality_config_proto_rawDescData)
  217. })
  218. return file_transport_internet_reality_config_proto_rawDescData
  219. }
  220. var file_transport_internet_reality_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  221. var file_transport_internet_reality_config_proto_goTypes = []interface{}{
  222. (*Config)(nil), // 0: xray.transport.internet.reality.Config
  223. }
  224. var file_transport_internet_reality_config_proto_depIdxs = []int32{
  225. 0, // [0:0] is the sub-list for method output_type
  226. 0, // [0:0] is the sub-list for method input_type
  227. 0, // [0:0] is the sub-list for extension type_name
  228. 0, // [0:0] is the sub-list for extension extendee
  229. 0, // [0:0] is the sub-list for field type_name
  230. }
  231. func init() { file_transport_internet_reality_config_proto_init() }
  232. func file_transport_internet_reality_config_proto_init() {
  233. if File_transport_internet_reality_config_proto != nil {
  234. return
  235. }
  236. if !protoimpl.UnsafeEnabled {
  237. file_transport_internet_reality_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  238. switch v := v.(*Config); i {
  239. case 0:
  240. return &v.state
  241. case 1:
  242. return &v.sizeCache
  243. case 2:
  244. return &v.unknownFields
  245. default:
  246. return nil
  247. }
  248. }
  249. }
  250. type x struct{}
  251. out := protoimpl.TypeBuilder{
  252. File: protoimpl.DescBuilder{
  253. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  254. RawDescriptor: file_transport_internet_reality_config_proto_rawDesc,
  255. NumEnums: 0,
  256. NumMessages: 1,
  257. NumExtensions: 0,
  258. NumServices: 0,
  259. },
  260. GoTypes: file_transport_internet_reality_config_proto_goTypes,
  261. DependencyIndexes: file_transport_internet_reality_config_proto_depIdxs,
  262. MessageInfos: file_transport_internet_reality_config_proto_msgTypes,
  263. }.Build()
  264. File_transport_internet_reality_config_proto = out.File
  265. file_transport_internet_reality_config_proto_rawDesc = nil
  266. file_transport_internet_reality_config_proto_goTypes = nil
  267. file_transport_internet_reality_config_proto_depIdxs = nil
  268. }