config.pb.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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. type Account struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *Account) Reset() {
  28. *x = Account{}
  29. mi := &file_proxy_trojan_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *Account) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*Account) ProtoMessage() {}
  37. func (x *Account) ProtoReflect() protoreflect.Message {
  38. mi := &file_proxy_trojan_config_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  49. func (*Account) Descriptor() ([]byte, []int) {
  50. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *Account) GetPassword() string {
  53. if x != nil {
  54. return x.Password
  55. }
  56. return ""
  57. }
  58. type Fallback struct {
  59. state protoimpl.MessageState `protogen:"open.v1"`
  60. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  61. Alpn string `protobuf:"bytes,2,opt,name=alpn,proto3" json:"alpn,omitempty"`
  62. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
  63. Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
  64. Dest string `protobuf:"bytes,5,opt,name=dest,proto3" json:"dest,omitempty"`
  65. Xver uint64 `protobuf:"varint,6,opt,name=xver,proto3" json:"xver,omitempty"`
  66. unknownFields protoimpl.UnknownFields
  67. sizeCache protoimpl.SizeCache
  68. }
  69. func (x *Fallback) Reset() {
  70. *x = Fallback{}
  71. mi := &file_proxy_trojan_config_proto_msgTypes[1]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. func (x *Fallback) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*Fallback) ProtoMessage() {}
  79. func (x *Fallback) ProtoReflect() protoreflect.Message {
  80. mi := &file_proxy_trojan_config_proto_msgTypes[1]
  81. if x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
  91. func (*Fallback) Descriptor() ([]byte, []int) {
  92. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{1}
  93. }
  94. func (x *Fallback) GetName() string {
  95. if x != nil {
  96. return x.Name
  97. }
  98. return ""
  99. }
  100. func (x *Fallback) GetAlpn() string {
  101. if x != nil {
  102. return x.Alpn
  103. }
  104. return ""
  105. }
  106. func (x *Fallback) GetPath() string {
  107. if x != nil {
  108. return x.Path
  109. }
  110. return ""
  111. }
  112. func (x *Fallback) GetType() string {
  113. if x != nil {
  114. return x.Type
  115. }
  116. return ""
  117. }
  118. func (x *Fallback) GetDest() string {
  119. if x != nil {
  120. return x.Dest
  121. }
  122. return ""
  123. }
  124. func (x *Fallback) GetXver() uint64 {
  125. if x != nil {
  126. return x.Xver
  127. }
  128. return 0
  129. }
  130. type ClientConfig struct {
  131. state protoimpl.MessageState `protogen:"open.v1"`
  132. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  133. unknownFields protoimpl.UnknownFields
  134. sizeCache protoimpl.SizeCache
  135. }
  136. func (x *ClientConfig) Reset() {
  137. *x = ClientConfig{}
  138. mi := &file_proxy_trojan_config_proto_msgTypes[2]
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. ms.StoreMessageInfo(mi)
  141. }
  142. func (x *ClientConfig) String() string {
  143. return protoimpl.X.MessageStringOf(x)
  144. }
  145. func (*ClientConfig) ProtoMessage() {}
  146. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  147. mi := &file_proxy_trojan_config_proto_msgTypes[2]
  148. if x != nil {
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. if ms.LoadMessageInfo() == nil {
  151. ms.StoreMessageInfo(mi)
  152. }
  153. return ms
  154. }
  155. return mi.MessageOf(x)
  156. }
  157. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  158. func (*ClientConfig) Descriptor() ([]byte, []int) {
  159. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{2}
  160. }
  161. func (x *ClientConfig) GetServer() *protocol.ServerEndpoint {
  162. if x != nil {
  163. return x.Server
  164. }
  165. return nil
  166. }
  167. type ServerConfig struct {
  168. state protoimpl.MessageState `protogen:"open.v1"`
  169. Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  170. Fallbacks []*Fallback `protobuf:"bytes,2,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
  171. unknownFields protoimpl.UnknownFields
  172. sizeCache protoimpl.SizeCache
  173. }
  174. func (x *ServerConfig) Reset() {
  175. *x = ServerConfig{}
  176. mi := &file_proxy_trojan_config_proto_msgTypes[3]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. func (x *ServerConfig) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*ServerConfig) ProtoMessage() {}
  184. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  185. mi := &file_proxy_trojan_config_proto_msgTypes[3]
  186. if x != nil {
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. if ms.LoadMessageInfo() == nil {
  189. ms.StoreMessageInfo(mi)
  190. }
  191. return ms
  192. }
  193. return mi.MessageOf(x)
  194. }
  195. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  196. func (*ServerConfig) Descriptor() ([]byte, []int) {
  197. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{3}
  198. }
  199. func (x *ServerConfig) GetUsers() []*protocol.User {
  200. if x != nil {
  201. return x.Users
  202. }
  203. return nil
  204. }
  205. func (x *ServerConfig) GetFallbacks() []*Fallback {
  206. if x != nil {
  207. return x.Fallbacks
  208. }
  209. return nil
  210. }
  211. var File_proxy_trojan_config_proto protoreflect.FileDescriptor
  212. const file_proxy_trojan_config_proto_rawDesc = "" +
  213. "\n" +
  214. "\x19proxy/trojan/config.proto\x12\x11xray.proxy.trojan\x1a\x1acommon/protocol/user.proto\x1a!common/protocol/server_spec.proto\"%\n" +
  215. "\aAccount\x12\x1a\n" +
  216. "\bpassword\x18\x01 \x01(\tR\bpassword\"\x82\x01\n" +
  217. "\bFallback\x12\x12\n" +
  218. "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
  219. "\x04alpn\x18\x02 \x01(\tR\x04alpn\x12\x12\n" +
  220. "\x04path\x18\x03 \x01(\tR\x04path\x12\x12\n" +
  221. "\x04type\x18\x04 \x01(\tR\x04type\x12\x12\n" +
  222. "\x04dest\x18\x05 \x01(\tR\x04dest\x12\x12\n" +
  223. "\x04xver\x18\x06 \x01(\x04R\x04xver\"L\n" +
  224. "\fClientConfig\x12<\n" +
  225. "\x06server\x18\x01 \x01(\v2$.xray.common.protocol.ServerEndpointR\x06server\"{\n" +
  226. "\fServerConfig\x120\n" +
  227. "\x05users\x18\x01 \x03(\v2\x1a.xray.common.protocol.UserR\x05users\x129\n" +
  228. "\tfallbacks\x18\x02 \x03(\v2\x1b.xray.proxy.trojan.FallbackR\tfallbacksBU\n" +
  229. "\x15com.xray.proxy.trojanP\x01Z&github.com/xtls/xray-core/proxy/trojan\xaa\x02\x11Xray.Proxy.Trojanb\x06proto3"
  230. var (
  231. file_proxy_trojan_config_proto_rawDescOnce sync.Once
  232. file_proxy_trojan_config_proto_rawDescData []byte
  233. )
  234. func file_proxy_trojan_config_proto_rawDescGZIP() []byte {
  235. file_proxy_trojan_config_proto_rawDescOnce.Do(func() {
  236. file_proxy_trojan_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_trojan_config_proto_rawDesc), len(file_proxy_trojan_config_proto_rawDesc)))
  237. })
  238. return file_proxy_trojan_config_proto_rawDescData
  239. }
  240. var file_proxy_trojan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  241. var file_proxy_trojan_config_proto_goTypes = []any{
  242. (*Account)(nil), // 0: xray.proxy.trojan.Account
  243. (*Fallback)(nil), // 1: xray.proxy.trojan.Fallback
  244. (*ClientConfig)(nil), // 2: xray.proxy.trojan.ClientConfig
  245. (*ServerConfig)(nil), // 3: xray.proxy.trojan.ServerConfig
  246. (*protocol.ServerEndpoint)(nil), // 4: xray.common.protocol.ServerEndpoint
  247. (*protocol.User)(nil), // 5: xray.common.protocol.User
  248. }
  249. var file_proxy_trojan_config_proto_depIdxs = []int32{
  250. 4, // 0: xray.proxy.trojan.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint
  251. 5, // 1: xray.proxy.trojan.ServerConfig.users:type_name -> xray.common.protocol.User
  252. 1, // 2: xray.proxy.trojan.ServerConfig.fallbacks:type_name -> xray.proxy.trojan.Fallback
  253. 3, // [3:3] is the sub-list for method output_type
  254. 3, // [3:3] is the sub-list for method input_type
  255. 3, // [3:3] is the sub-list for extension type_name
  256. 3, // [3:3] is the sub-list for extension extendee
  257. 0, // [0:3] is the sub-list for field type_name
  258. }
  259. func init() { file_proxy_trojan_config_proto_init() }
  260. func file_proxy_trojan_config_proto_init() {
  261. if File_proxy_trojan_config_proto != nil {
  262. return
  263. }
  264. type x struct{}
  265. out := protoimpl.TypeBuilder{
  266. File: protoimpl.DescBuilder{
  267. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  268. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_trojan_config_proto_rawDesc), len(file_proxy_trojan_config_proto_rawDesc)),
  269. NumEnums: 0,
  270. NumMessages: 4,
  271. NumExtensions: 0,
  272. NumServices: 0,
  273. },
  274. GoTypes: file_proxy_trojan_config_proto_goTypes,
  275. DependencyIndexes: file_proxy_trojan_config_proto_depIdxs,
  276. MessageInfos: file_proxy_trojan_config_proto_msgTypes,
  277. }.Build()
  278. File_proxy_trojan_config_proto = out.File
  279. file_proxy_trojan_config_proto_goTypes = nil
  280. file_proxy_trojan_config_proto_depIdxs = nil
  281. }