config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.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. 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, 0x17, 0x76, 0x32, 0x72,
  226. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72,
  227. 0x6f, 0x6a, 0x61, 0x6e, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  228. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  229. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  230. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  231. 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a,
  232. 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  233. 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6c,
  234. 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x6e,
  235. 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c,
  236. 0x70, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x12,
  237. 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
  238. 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  239. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x04,
  240. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76,
  241. 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0x52,
  242. 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42,
  243. 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a,
  244. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  245. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76,
  246. 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76,
  247. 0x65, 0x72, 0x22, 0x87, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  248. 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03,
  249. 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  250. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e,
  251. 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x09, 0x66,
  252. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21,
  253. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  254. 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  255. 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x42, 0x56, 0x0a, 0x1b,
  256. 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  257. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x50, 0x01, 0x5a, 0x1b, 0x76,
  258. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72,
  259. 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0xaa, 0x02, 0x17, 0x56, 0x32, 0x52,
  260. 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x54, 0x72,
  261. 0x6f, 0x6a, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  262. }
  263. var (
  264. file_proxy_trojan_config_proto_rawDescOnce sync.Once
  265. file_proxy_trojan_config_proto_rawDescData = file_proxy_trojan_config_proto_rawDesc
  266. )
  267. func file_proxy_trojan_config_proto_rawDescGZIP() []byte {
  268. file_proxy_trojan_config_proto_rawDescOnce.Do(func() {
  269. file_proxy_trojan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_trojan_config_proto_rawDescData)
  270. })
  271. return file_proxy_trojan_config_proto_rawDescData
  272. }
  273. var file_proxy_trojan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  274. var file_proxy_trojan_config_proto_goTypes = []interface{}{
  275. (*Account)(nil), // 0: v2ray.core.proxy.trojan.Account
  276. (*Fallback)(nil), // 1: v2ray.core.proxy.trojan.Fallback
  277. (*ClientConfig)(nil), // 2: v2ray.core.proxy.trojan.ClientConfig
  278. (*ServerConfig)(nil), // 3: v2ray.core.proxy.trojan.ServerConfig
  279. (*protocol.ServerEndpoint)(nil), // 4: v2ray.core.common.protocol.ServerEndpoint
  280. (*protocol.User)(nil), // 5: v2ray.core.common.protocol.User
  281. }
  282. var file_proxy_trojan_config_proto_depIdxs = []int32{
  283. 4, // 0: v2ray.core.proxy.trojan.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  284. 5, // 1: v2ray.core.proxy.trojan.ServerConfig.users:type_name -> v2ray.core.common.protocol.User
  285. 1, // 2: v2ray.core.proxy.trojan.ServerConfig.fallbacks:type_name -> v2ray.core.proxy.trojan.Fallback
  286. 3, // [3:3] is the sub-list for method output_type
  287. 3, // [3:3] is the sub-list for method input_type
  288. 3, // [3:3] is the sub-list for extension type_name
  289. 3, // [3:3] is the sub-list for extension extendee
  290. 0, // [0:3] is the sub-list for field type_name
  291. }
  292. func init() { file_proxy_trojan_config_proto_init() }
  293. func file_proxy_trojan_config_proto_init() {
  294. if File_proxy_trojan_config_proto != nil {
  295. return
  296. }
  297. if !protoimpl.UnsafeEnabled {
  298. file_proxy_trojan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  299. switch v := v.(*Account); i {
  300. case 0:
  301. return &v.state
  302. case 1:
  303. return &v.sizeCache
  304. case 2:
  305. return &v.unknownFields
  306. default:
  307. return nil
  308. }
  309. }
  310. file_proxy_trojan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  311. switch v := v.(*Fallback); i {
  312. case 0:
  313. return &v.state
  314. case 1:
  315. return &v.sizeCache
  316. case 2:
  317. return &v.unknownFields
  318. default:
  319. return nil
  320. }
  321. }
  322. file_proxy_trojan_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  323. switch v := v.(*ClientConfig); i {
  324. case 0:
  325. return &v.state
  326. case 1:
  327. return &v.sizeCache
  328. case 2:
  329. return &v.unknownFields
  330. default:
  331. return nil
  332. }
  333. }
  334. file_proxy_trojan_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  335. switch v := v.(*ServerConfig); i {
  336. case 0:
  337. return &v.state
  338. case 1:
  339. return &v.sizeCache
  340. case 2:
  341. return &v.unknownFields
  342. default:
  343. return nil
  344. }
  345. }
  346. }
  347. type x struct{}
  348. out := protoimpl.TypeBuilder{
  349. File: protoimpl.DescBuilder{
  350. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  351. RawDescriptor: file_proxy_trojan_config_proto_rawDesc,
  352. NumEnums: 0,
  353. NumMessages: 4,
  354. NumExtensions: 0,
  355. NumServices: 0,
  356. },
  357. GoTypes: file_proxy_trojan_config_proto_goTypes,
  358. DependencyIndexes: file_proxy_trojan_config_proto_depIdxs,
  359. MessageInfos: file_proxy_trojan_config_proto_msgTypes,
  360. }.Build()
  361. File_proxy_trojan_config_proto = out.File
  362. file_proxy_trojan_config_proto_rawDesc = nil
  363. file_proxy_trojan_config_proto_goTypes = nil
  364. file_proxy_trojan_config_proto_depIdxs = nil
  365. }