config.pb.go 13 KB

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