config.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. package hysteria2
  2. import (
  3. protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type OBFS struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  21. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  22. }
  23. func (x *OBFS) Reset() {
  24. *x = OBFS{}
  25. if protoimpl.UnsafeEnabled {
  26. mi := &file_proxy_hysteria2_config_proto_msgTypes[0]
  27. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  28. ms.StoreMessageInfo(mi)
  29. }
  30. }
  31. func (x *OBFS) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*OBFS) ProtoMessage() {}
  35. func (x *OBFS) ProtoReflect() protoreflect.Message {
  36. mi := &file_proxy_hysteria2_config_proto_msgTypes[0]
  37. if protoimpl.UnsafeEnabled && x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use OBFS.ProtoReflect.Descriptor instead.
  47. func (*OBFS) Descriptor() ([]byte, []int) {
  48. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. func (x *OBFS) GetType() string {
  51. if x != nil {
  52. return x.Type
  53. }
  54. return ""
  55. }
  56. func (x *OBFS) GetPassword() string {
  57. if x != nil {
  58. return x.Password
  59. }
  60. return ""
  61. }
  62. type Account struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. Obfs *OBFS `protobuf:"bytes,1,opt,name=obfs,proto3" json:"obfs,omitempty"`
  67. }
  68. func (x *Account) Reset() {
  69. *x = Account{}
  70. if protoimpl.UnsafeEnabled {
  71. mi := &file_proxy_hysteria2_config_proto_msgTypes[1]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. }
  76. func (x *Account) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*Account) ProtoMessage() {}
  80. func (x *Account) ProtoReflect() protoreflect.Message {
  81. mi := &file_proxy_hysteria2_config_proto_msgTypes[1]
  82. if protoimpl.UnsafeEnabled && x != nil {
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. if ms.LoadMessageInfo() == nil {
  85. ms.StoreMessageInfo(mi)
  86. }
  87. return ms
  88. }
  89. return mi.MessageOf(x)
  90. }
  91. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  92. func (*Account) Descriptor() ([]byte, []int) {
  93. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{1}
  94. }
  95. func (x *Account) GetObfs() *OBFS {
  96. if x != nil {
  97. return x.Obfs
  98. }
  99. return nil
  100. }
  101. type ClientConfig struct {
  102. state protoimpl.MessageState
  103. sizeCache protoimpl.SizeCache
  104. unknownFields protoimpl.UnknownFields
  105. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  106. }
  107. func (x *ClientConfig) Reset() {
  108. *x = ClientConfig{}
  109. if protoimpl.UnsafeEnabled {
  110. mi := &file_proxy_hysteria2_config_proto_msgTypes[2]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. }
  115. func (x *ClientConfig) String() string {
  116. return protoimpl.X.MessageStringOf(x)
  117. }
  118. func (*ClientConfig) ProtoMessage() {}
  119. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  120. mi := &file_proxy_hysteria2_config_proto_msgTypes[2]
  121. if protoimpl.UnsafeEnabled && x != nil {
  122. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  123. if ms.LoadMessageInfo() == nil {
  124. ms.StoreMessageInfo(mi)
  125. }
  126. return ms
  127. }
  128. return mi.MessageOf(x)
  129. }
  130. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  131. func (*ClientConfig) Descriptor() ([]byte, []int) {
  132. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{2}
  133. }
  134. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  135. if x != nil {
  136. return x.Server
  137. }
  138. return nil
  139. }
  140. type ServerConfig struct {
  141. state protoimpl.MessageState
  142. sizeCache protoimpl.SizeCache
  143. unknownFields protoimpl.UnknownFields
  144. Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  145. }
  146. func (x *ServerConfig) Reset() {
  147. *x = ServerConfig{}
  148. if protoimpl.UnsafeEnabled {
  149. mi := &file_proxy_hysteria2_config_proto_msgTypes[3]
  150. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  151. ms.StoreMessageInfo(mi)
  152. }
  153. }
  154. func (x *ServerConfig) String() string {
  155. return protoimpl.X.MessageStringOf(x)
  156. }
  157. func (*ServerConfig) ProtoMessage() {}
  158. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  159. mi := &file_proxy_hysteria2_config_proto_msgTypes[3]
  160. if protoimpl.UnsafeEnabled && x != nil {
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. if ms.LoadMessageInfo() == nil {
  163. ms.StoreMessageInfo(mi)
  164. }
  165. return ms
  166. }
  167. return mi.MessageOf(x)
  168. }
  169. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  170. func (*ServerConfig) Descriptor() ([]byte, []int) {
  171. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{3}
  172. }
  173. func (x *ServerConfig) GetUsers() []*protocol.User {
  174. if x != nil {
  175. return x.Users
  176. }
  177. return nil
  178. }
  179. var File_proxy_hysteria2_config_proto protoreflect.FileDescriptor
  180. var file_proxy_hysteria2_config_proto_rawDesc = []byte{
  181. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61,
  182. 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  183. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  184. 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d,
  185. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72,
  186. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  187. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73,
  188. 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  189. 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  190. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x04, 0x4f,
  191. 0x42, 0x46, 0x53, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  192. 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  193. 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  194. 0x6f, 0x72, 0x64, 0x22, 0x3f, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34,
  195. 0x0a, 0x04, 0x6f, 0x62, 0x66, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76,
  196. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  197. 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x2e, 0x4f, 0x42, 0x46, 0x53, 0x52, 0x04,
  198. 0x6f, 0x62, 0x66, 0x73, 0x22, 0x6d, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f,
  199. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01,
  200. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  201. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  202. 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  203. 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x08,
  204. 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x09, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72,
  205. 0x69, 0x61, 0x32, 0x22, 0x60, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  206. 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03,
  207. 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  208. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e,
  209. 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3a, 0x18, 0x82, 0xb5, 0x18,
  210. 0x14, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x09, 0x68, 0x79, 0x73, 0x74,
  211. 0x65, 0x72, 0x69, 0x61, 0x32, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
  212. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x79,
  213. 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
  214. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
  215. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
  216. 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61,
  217. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x79, 0x73,
  218. 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  219. }
  220. var (
  221. file_proxy_hysteria2_config_proto_rawDescOnce sync.Once
  222. file_proxy_hysteria2_config_proto_rawDescData = file_proxy_hysteria2_config_proto_rawDesc
  223. )
  224. func file_proxy_hysteria2_config_proto_rawDescGZIP() []byte {
  225. file_proxy_hysteria2_config_proto_rawDescOnce.Do(func() {
  226. file_proxy_hysteria2_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_hysteria2_config_proto_rawDescData)
  227. })
  228. return file_proxy_hysteria2_config_proto_rawDescData
  229. }
  230. var file_proxy_hysteria2_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  231. var file_proxy_hysteria2_config_proto_goTypes = []interface{}{
  232. (*OBFS)(nil), // 0: v2ray.core.proxy.hysteria2.OBFS
  233. (*Account)(nil), // 1: v2ray.core.proxy.hysteria2.Account
  234. (*ClientConfig)(nil), // 2: v2ray.core.proxy.hysteria2.ClientConfig
  235. (*ServerConfig)(nil), // 3: v2ray.core.proxy.hysteria2.ServerConfig
  236. (*protocol.ServerEndpoint)(nil), // 4: v2ray.core.common.protocol.ServerEndpoint
  237. (*protocol.User)(nil), // 5: v2ray.core.common.protocol.User
  238. }
  239. var file_proxy_hysteria2_config_proto_depIdxs = []int32{
  240. 0, // 0: v2ray.core.proxy.hysteria2.Account.obfs:type_name -> v2ray.core.proxy.hysteria2.OBFS
  241. 4, // 1: v2ray.core.proxy.hysteria2.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  242. 5, // 2: v2ray.core.proxy.hysteria2.ServerConfig.users:type_name -> v2ray.core.common.protocol.User
  243. 3, // [3:3] is the sub-list for method output_type
  244. 3, // [3:3] is the sub-list for method input_type
  245. 3, // [3:3] is the sub-list for extension type_name
  246. 3, // [3:3] is the sub-list for extension extendee
  247. 0, // [0:3] is the sub-list for field type_name
  248. }
  249. func init() { file_proxy_hysteria2_config_proto_init() }
  250. func file_proxy_hysteria2_config_proto_init() {
  251. if File_proxy_hysteria2_config_proto != nil {
  252. return
  253. }
  254. if !protoimpl.UnsafeEnabled {
  255. file_proxy_hysteria2_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  256. switch v := v.(*OBFS); i {
  257. case 0:
  258. return &v.state
  259. case 1:
  260. return &v.sizeCache
  261. case 2:
  262. return &v.unknownFields
  263. default:
  264. return nil
  265. }
  266. }
  267. file_proxy_hysteria2_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  268. switch v := v.(*Account); i {
  269. case 0:
  270. return &v.state
  271. case 1:
  272. return &v.sizeCache
  273. case 2:
  274. return &v.unknownFields
  275. default:
  276. return nil
  277. }
  278. }
  279. file_proxy_hysteria2_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  280. switch v := v.(*ClientConfig); i {
  281. case 0:
  282. return &v.state
  283. case 1:
  284. return &v.sizeCache
  285. case 2:
  286. return &v.unknownFields
  287. default:
  288. return nil
  289. }
  290. }
  291. file_proxy_hysteria2_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  292. switch v := v.(*ServerConfig); i {
  293. case 0:
  294. return &v.state
  295. case 1:
  296. return &v.sizeCache
  297. case 2:
  298. return &v.unknownFields
  299. default:
  300. return nil
  301. }
  302. }
  303. }
  304. type x struct{}
  305. out := protoimpl.TypeBuilder{
  306. File: protoimpl.DescBuilder{
  307. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  308. RawDescriptor: file_proxy_hysteria2_config_proto_rawDesc,
  309. NumEnums: 0,
  310. NumMessages: 4,
  311. NumExtensions: 0,
  312. NumServices: 0,
  313. },
  314. GoTypes: file_proxy_hysteria2_config_proto_goTypes,
  315. DependencyIndexes: file_proxy_hysteria2_config_proto_depIdxs,
  316. MessageInfos: file_proxy_hysteria2_config_proto_msgTypes,
  317. }.Build()
  318. File_proxy_hysteria2_config_proto = out.File
  319. file_proxy_hysteria2_config_proto_rawDesc = nil
  320. file_proxy_hysteria2_config_proto_goTypes = nil
  321. file_proxy_hysteria2_config_proto_depIdxs = nil
  322. }