config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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. }
  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. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  68. Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
  69. }
  70. func (x *Fallback) Reset() {
  71. *x = Fallback{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_proxy_trojan_config_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *Fallback) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*Fallback) ProtoMessage() {}
  82. func (x *Fallback) ProtoReflect() protoreflect.Message {
  83. mi := &file_proxy_trojan_config_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
  94. func (*Fallback) Descriptor() ([]byte, []int) {
  95. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *Fallback) GetType() string {
  98. if x != nil {
  99. return x.Type
  100. }
  101. return ""
  102. }
  103. func (x *Fallback) GetDest() string {
  104. if x != nil {
  105. return x.Dest
  106. }
  107. return ""
  108. }
  109. type ClientConfig struct {
  110. state protoimpl.MessageState
  111. sizeCache protoimpl.SizeCache
  112. unknownFields protoimpl.UnknownFields
  113. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  114. }
  115. func (x *ClientConfig) Reset() {
  116. *x = ClientConfig{}
  117. if protoimpl.UnsafeEnabled {
  118. mi := &file_proxy_trojan_config_proto_msgTypes[2]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. }
  123. func (x *ClientConfig) String() string {
  124. return protoimpl.X.MessageStringOf(x)
  125. }
  126. func (*ClientConfig) ProtoMessage() {}
  127. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  128. mi := &file_proxy_trojan_config_proto_msgTypes[2]
  129. if protoimpl.UnsafeEnabled && x != nil {
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. if ms.LoadMessageInfo() == nil {
  132. ms.StoreMessageInfo(mi)
  133. }
  134. return ms
  135. }
  136. return mi.MessageOf(x)
  137. }
  138. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  139. func (*ClientConfig) Descriptor() ([]byte, []int) {
  140. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{2}
  141. }
  142. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  143. if x != nil {
  144. return x.Server
  145. }
  146. return nil
  147. }
  148. type ServerConfig struct {
  149. state protoimpl.MessageState
  150. sizeCache protoimpl.SizeCache
  151. unknownFields protoimpl.UnknownFields
  152. Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  153. Fallback *Fallback `protobuf:"bytes,2,opt,name=fallback,proto3" json:"fallback,omitempty"`
  154. }
  155. func (x *ServerConfig) Reset() {
  156. *x = ServerConfig{}
  157. if protoimpl.UnsafeEnabled {
  158. mi := &file_proxy_trojan_config_proto_msgTypes[3]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. }
  163. func (x *ServerConfig) String() string {
  164. return protoimpl.X.MessageStringOf(x)
  165. }
  166. func (*ServerConfig) ProtoMessage() {}
  167. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  168. mi := &file_proxy_trojan_config_proto_msgTypes[3]
  169. if protoimpl.UnsafeEnabled && x != nil {
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. if ms.LoadMessageInfo() == nil {
  172. ms.StoreMessageInfo(mi)
  173. }
  174. return ms
  175. }
  176. return mi.MessageOf(x)
  177. }
  178. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  179. func (*ServerConfig) Descriptor() ([]byte, []int) {
  180. return file_proxy_trojan_config_proto_rawDescGZIP(), []int{3}
  181. }
  182. func (x *ServerConfig) GetUsers() []*protocol.User {
  183. if x != nil {
  184. return x.Users
  185. }
  186. return nil
  187. }
  188. func (x *ServerConfig) GetFallback() *Fallback {
  189. if x != nil {
  190. return x.Fallback
  191. }
  192. return nil
  193. }
  194. var File_proxy_trojan_config_proto protoreflect.FileDescriptor
  195. var file_proxy_trojan_config_proto_rawDesc = []byte{
  196. 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2f, 0x63,
  197. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x76, 0x32, 0x72,
  198. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72,
  199. 0x6f, 0x6a, 0x61, 0x6e, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  200. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  201. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  202. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  203. 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a,
  204. 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  205. 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x32, 0x0a, 0x08, 0x46, 0x61,
  206. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
  207. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65,
  208. 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x22, 0x52,
  209. 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42,
  210. 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a,
  211. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  212. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76,
  213. 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76,
  214. 0x65, 0x72, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  215. 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03,
  216. 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  217. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e,
  218. 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x66,
  219. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e,
  220. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  221. 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  222. 0x52, 0x08, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x56, 0x0a, 0x1b, 0x63, 0x6f,
  223. 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  224. 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x50, 0x01, 0x5a, 0x1b, 0x76, 0x32, 0x72,
  225. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78,
  226. 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0xaa, 0x02, 0x17, 0x56, 0x32, 0x52, 0x61, 0x79,
  227. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x54, 0x72, 0x6f, 0x6a,
  228. 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  229. }
  230. var (
  231. file_proxy_trojan_config_proto_rawDescOnce sync.Once
  232. file_proxy_trojan_config_proto_rawDescData = file_proxy_trojan_config_proto_rawDesc
  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(file_proxy_trojan_config_proto_rawDescData)
  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 = []interface{}{
  242. (*Account)(nil), // 0: v2ray.core.proxy.trojan.Account
  243. (*Fallback)(nil), // 1: v2ray.core.proxy.trojan.Fallback
  244. (*ClientConfig)(nil), // 2: v2ray.core.proxy.trojan.ClientConfig
  245. (*ServerConfig)(nil), // 3: v2ray.core.proxy.trojan.ServerConfig
  246. (*protocol.ServerEndpoint)(nil), // 4: v2ray.core.common.protocol.ServerEndpoint
  247. (*protocol.User)(nil), // 5: v2ray.core.common.protocol.User
  248. }
  249. var file_proxy_trojan_config_proto_depIdxs = []int32{
  250. 4, // 0: v2ray.core.proxy.trojan.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  251. 5, // 1: v2ray.core.proxy.trojan.ServerConfig.users:type_name -> v2ray.core.common.protocol.User
  252. 1, // 2: v2ray.core.proxy.trojan.ServerConfig.fallback:type_name -> v2ray.core.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. if !protoimpl.UnsafeEnabled {
  265. file_proxy_trojan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  266. switch v := v.(*Account); i {
  267. case 0:
  268. return &v.state
  269. case 1:
  270. return &v.sizeCache
  271. case 2:
  272. return &v.unknownFields
  273. default:
  274. return nil
  275. }
  276. }
  277. file_proxy_trojan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  278. switch v := v.(*Fallback); i {
  279. case 0:
  280. return &v.state
  281. case 1:
  282. return &v.sizeCache
  283. case 2:
  284. return &v.unknownFields
  285. default:
  286. return nil
  287. }
  288. }
  289. file_proxy_trojan_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  290. switch v := v.(*ClientConfig); i {
  291. case 0:
  292. return &v.state
  293. case 1:
  294. return &v.sizeCache
  295. case 2:
  296. return &v.unknownFields
  297. default:
  298. return nil
  299. }
  300. }
  301. file_proxy_trojan_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  302. switch v := v.(*ServerConfig); i {
  303. case 0:
  304. return &v.state
  305. case 1:
  306. return &v.sizeCache
  307. case 2:
  308. return &v.unknownFields
  309. default:
  310. return nil
  311. }
  312. }
  313. }
  314. type x struct{}
  315. out := protoimpl.TypeBuilder{
  316. File: protoimpl.DescBuilder{
  317. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  318. RawDescriptor: file_proxy_trojan_config_proto_rawDesc,
  319. NumEnums: 0,
  320. NumMessages: 4,
  321. NumExtensions: 0,
  322. NumServices: 0,
  323. },
  324. GoTypes: file_proxy_trojan_config_proto_goTypes,
  325. DependencyIndexes: file_proxy_trojan_config_proto_depIdxs,
  326. MessageInfos: file_proxy_trojan_config_proto_msgTypes,
  327. }.Build()
  328. File_proxy_trojan_config_proto = out.File
  329. file_proxy_trojan_config_proto_rawDesc = nil
  330. file_proxy_trojan_config_proto_goTypes = nil
  331. file_proxy_trojan_config_proto_depIdxs = nil
  332. }