config.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.27.0
  5. // source: proxy/trojan/config.proto
  6. package trojan
  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 Account struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
  25. }
  26. func (x *Account) Reset() {
  27. *x = Account{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_proxy_trojan_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *Account) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Account) ProtoMessage() {}
  38. func (x *Account) ProtoReflect() protoreflect.Message {
  39. mi := &file_proxy_trojan_config_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && 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 Account.ProtoReflect.Descriptor instead.
  50. func (*Account) Descriptor() ([]byte, []int) {
  51. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Account) GetPassword() string {
  54. if x != nil {
  55. return x.Password
  56. }
  57. return ""
  58. }
  59. type Fallback struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  64. Alpn string `protobuf:"bytes,2,opt,name=alpn,proto3" json:"alpn,omitempty"`
  65. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
  66. Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
  67. Dest string `protobuf:"bytes,5,opt,name=dest,proto3" json:"dest,omitempty"`
  68. Xver uint64 `protobuf:"varint,6,opt,name=xver,proto3" json:"xver,omitempty"`
  69. }
  70. func (x *Fallback) Reset() {
  71. *x = Fallback{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_proxy_trojan_config_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *Fallback) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*Fallback) ProtoMessage() {}
  82. func (x *Fallback) ProtoReflect() protoreflect.Message {
  83. mi := &file_proxy_trojan_config_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && 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 Fallback.ProtoReflect.Descriptor instead.
  94. func (*Fallback) Descriptor() ([]byte, []int) {
  95. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *Fallback) GetName() string {
  98. if x != nil {
  99. return x.Name
  100. }
  101. return ""
  102. }
  103. func (x *Fallback) GetAlpn() string {
  104. if x != nil {
  105. return x.Alpn
  106. }
  107. return ""
  108. }
  109. func (x *Fallback) GetPath() string {
  110. if x != nil {
  111. return x.Path
  112. }
  113. return ""
  114. }
  115. func (x *Fallback) GetType() string {
  116. if x != nil {
  117. return x.Type
  118. }
  119. return ""
  120. }
  121. func (x *Fallback) GetDest() string {
  122. if x != nil {
  123. return x.Dest
  124. }
  125. return ""
  126. }
  127. func (x *Fallback) GetXver() uint64 {
  128. if x != nil {
  129. return x.Xver
  130. }
  131. return 0
  132. }
  133. type ClientConfig struct {
  134. state protoimpl.MessageState
  135. sizeCache protoimpl.SizeCache
  136. unknownFields protoimpl.UnknownFields
  137. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  138. }
  139. func (x *ClientConfig) Reset() {
  140. *x = ClientConfig{}
  141. if protoimpl.UnsafeEnabled {
  142. mi := &file_proxy_trojan_config_proto_msgTypes[2]
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. ms.StoreMessageInfo(mi)
  145. }
  146. }
  147. func (x *ClientConfig) String() string {
  148. return protoimpl.X.MessageStringOf(x)
  149. }
  150. func (*ClientConfig) ProtoMessage() {}
  151. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  152. mi := &file_proxy_trojan_config_proto_msgTypes[2]
  153. if protoimpl.UnsafeEnabled && x != nil {
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. if ms.LoadMessageInfo() == nil {
  156. ms.StoreMessageInfo(mi)
  157. }
  158. return ms
  159. }
  160. return mi.MessageOf(x)
  161. }
  162. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  163. func (*ClientConfig) Descriptor() ([]byte, []int) {
  164. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{2}
  165. }
  166. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  167. if x != nil {
  168. return x.Server
  169. }
  170. return nil
  171. }
  172. type ServerConfig struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  177. Fallbacks []*Fallback `protobuf:"bytes,2,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
  178. }
  179. func (x *ServerConfig) Reset() {
  180. *x = ServerConfig{}
  181. if protoimpl.UnsafeEnabled {
  182. mi := &file_proxy_trojan_config_proto_msgTypes[3]
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. ms.StoreMessageInfo(mi)
  185. }
  186. }
  187. func (x *ServerConfig) String() string {
  188. return protoimpl.X.MessageStringOf(x)
  189. }
  190. func (*ServerConfig) ProtoMessage() {}
  191. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  192. mi := &file_proxy_trojan_config_proto_msgTypes[3]
  193. if protoimpl.UnsafeEnabled && x != nil {
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. if ms.LoadMessageInfo() == nil {
  196. ms.StoreMessageInfo(mi)
  197. }
  198. return ms
  199. }
  200. return mi.MessageOf(x)
  201. }
  202. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  203. func (*ServerConfig) Descriptor() ([]byte, []int) {
  204. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{3}
  205. }
  206. func (x *ServerConfig) GetUsers() []*protocol.User {
  207. if x != nil {
  208. return x.Users
  209. }
  210. return nil
  211. }
  212. func (x *ServerConfig) GetFallbacks() []*Fallback {
  213. if x != nil {
  214. return x.Fallbacks
  215. }
  216. return nil
  217. }
  218. var File_proxy_trojan_config_proto protoreflect.FileDescriptor
  219. var file_proxy_trojan_config_proto_rawDesc = []byte{
  220. 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2f, 0x63,
  221. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x78, 0x72, 0x61,
  222. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x1a, 0x1a,
  223. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
  224. 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  225. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
  226. 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a,
  227. 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73,
  228. 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,
  229. 0x77, 0x6f, 0x72, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  230. 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  231. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x18, 0x02, 0x20,
  232. 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
  233. 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a,
  234. 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
  235. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
  236. 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 0x65, 0x72, 0x18, 0x06, 0x20,
  237. 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x0c, 0x43, 0x6c, 0x69,
  238. 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65, 0x72,
  239. 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79,
  240. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  241. 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52,
  242. 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
  243. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73,
  244. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  245. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73,
  246. 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x09, 0x66, 0x61, 0x6c,
  247. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78,
  248. 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e,
  249. 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62,
  250. 0x61, 0x63, 0x6b, 0x73, 0x42, 0x55, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79,
  251. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x50, 0x01, 0x5a,
  252. 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
  253. 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79,
  254. 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0xaa, 0x02, 0x11, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50,
  255. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x54, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f,
  256. 0x74, 0x6f, 0x33,
  257. }
  258. var (
  259. file_proxy_trojan_config_proto_rawDescOnce sync.Once
  260. file_proxy_trojan_config_proto_rawDescData = file_proxy_trojan_config_proto_rawDesc
  261. )
  262. func file_proxy_trojan_config_proto_rawDescGZIP() []byte {
  263. file_proxy_trojan_config_proto_rawDescOnce.Do(func() {
  264. file_proxy_trojan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_trojan_config_proto_rawDescData)
  265. })
  266. return file_proxy_trojan_config_proto_rawDescData
  267. }
  268. var file_proxy_trojan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  269. var file_proxy_trojan_config_proto_goTypes = []any{
  270. (*Account)(nil), // 0: xray.proxy.trojan.Account
  271. (*Fallback)(nil), // 1: xray.proxy.trojan.Fallback
  272. (*ClientConfig)(nil), // 2: xray.proxy.trojan.ClientConfig
  273. (*ServerConfig)(nil), // 3: xray.proxy.trojan.ServerConfig
  274. (*protocol.ServerEndpoint)(nil), // 4: xray.common.protocol.ServerEndpoint
  275. (*protocol.User)(nil), // 5: xray.common.protocol.User
  276. }
  277. var file_proxy_trojan_config_proto_depIdxs = []int32{
  278. 4, // 0: xray.proxy.trojan.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint
  279. 5, // 1: xray.proxy.trojan.ServerConfig.users:type_name -> xray.common.protocol.User
  280. 1, // 2: xray.proxy.trojan.ServerConfig.fallbacks:type_name -> xray.proxy.trojan.Fallback
  281. 3, // [3:3] is the sub-list for method output_type
  282. 3, // [3:3] is the sub-list for method input_type
  283. 3, // [3:3] is the sub-list for extension type_name
  284. 3, // [3:3] is the sub-list for extension extendee
  285. 0, // [0:3] is the sub-list for field type_name
  286. }
  287. func init() { file_proxy_trojan_config_proto_init() }
  288. func file_proxy_trojan_config_proto_init() {
  289. if File_proxy_trojan_config_proto != nil {
  290. return
  291. }
  292. if !protoimpl.UnsafeEnabled {
  293. file_proxy_trojan_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  294. switch v := v.(*Account); i {
  295. case 0:
  296. return &v.state
  297. case 1:
  298. return &v.sizeCache
  299. case 2:
  300. return &v.unknownFields
  301. default:
  302. return nil
  303. }
  304. }
  305. file_proxy_trojan_config_proto_msgTypes[1].Exporter = func(v any, i int) any {
  306. switch v := v.(*Fallback); i {
  307. case 0:
  308. return &v.state
  309. case 1:
  310. return &v.sizeCache
  311. case 2:
  312. return &v.unknownFields
  313. default:
  314. return nil
  315. }
  316. }
  317. file_proxy_trojan_config_proto_msgTypes[2].Exporter = func(v any, i int) any {
  318. switch v := v.(*ClientConfig); i {
  319. case 0:
  320. return &v.state
  321. case 1:
  322. return &v.sizeCache
  323. case 2:
  324. return &v.unknownFields
  325. default:
  326. return nil
  327. }
  328. }
  329. file_proxy_trojan_config_proto_msgTypes[3].Exporter = func(v any, i int) any {
  330. switch v := v.(*ServerConfig); i {
  331. case 0:
  332. return &v.state
  333. case 1:
  334. return &v.sizeCache
  335. case 2:
  336. return &v.unknownFields
  337. default:
  338. return nil
  339. }
  340. }
  341. }
  342. type x struct{}
  343. out := protoimpl.TypeBuilder{
  344. File: protoimpl.DescBuilder{
  345. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  346. RawDescriptor: file_proxy_trojan_config_proto_rawDesc,
  347. NumEnums: 0,
  348. NumMessages: 4,
  349. NumExtensions: 0,
  350. NumServices: 0,
  351. },
  352. GoTypes: file_proxy_trojan_config_proto_goTypes,
  353. DependencyIndexes: file_proxy_trojan_config_proto_depIdxs,
  354. MessageInfos: file_proxy_trojan_config_proto_msgTypes,
  355. }.Build()
  356. File_proxy_trojan_config_proto = out.File
  357. file_proxy_trojan_config_proto_rawDesc = nil
  358. file_proxy_trojan_config_proto_goTypes = nil
  359. file_proxy_trojan_config_proto_depIdxs = nil
  360. }