config.pb.go 14 KB

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