config.pb.go 13 KB

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