config.pb.go 13 KB

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