config.pb.go 12 KB

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