config.pb.go 13 KB

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