config.pb.go 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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 Account struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. }
  21. func (x *Account) Reset() {
  22. *x = Account{}
  23. if protoimpl.UnsafeEnabled {
  24. mi := &file_proxy_hysteria2_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. }
  29. func (x *Account) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*Account) ProtoMessage() {}
  33. func (x *Account) ProtoReflect() protoreflect.Message {
  34. mi := &file_proxy_hysteria2_config_proto_msgTypes[0]
  35. if protoimpl.UnsafeEnabled && x != nil {
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. if ms.LoadMessageInfo() == nil {
  38. ms.StoreMessageInfo(mi)
  39. }
  40. return ms
  41. }
  42. return mi.MessageOf(x)
  43. }
  44. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  45. func (*Account) Descriptor() ([]byte, []int) {
  46. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{0}
  47. }
  48. type ClientConfig struct {
  49. state protoimpl.MessageState
  50. sizeCache protoimpl.SizeCache
  51. unknownFields protoimpl.UnknownFields
  52. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  53. }
  54. func (x *ClientConfig) Reset() {
  55. *x = ClientConfig{}
  56. if protoimpl.UnsafeEnabled {
  57. mi := &file_proxy_hysteria2_config_proto_msgTypes[1]
  58. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  59. ms.StoreMessageInfo(mi)
  60. }
  61. }
  62. func (x *ClientConfig) String() string {
  63. return protoimpl.X.MessageStringOf(x)
  64. }
  65. func (*ClientConfig) ProtoMessage() {}
  66. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  67. mi := &file_proxy_hysteria2_config_proto_msgTypes[1]
  68. if protoimpl.UnsafeEnabled && x != nil {
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. if ms.LoadMessageInfo() == nil {
  71. ms.StoreMessageInfo(mi)
  72. }
  73. return ms
  74. }
  75. return mi.MessageOf(x)
  76. }
  77. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  78. func (*ClientConfig) Descriptor() ([]byte, []int) {
  79. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{1}
  80. }
  81. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  82. if x != nil {
  83. return x.Server
  84. }
  85. return nil
  86. }
  87. type ServerConfig struct {
  88. state protoimpl.MessageState
  89. sizeCache protoimpl.SizeCache
  90. unknownFields protoimpl.UnknownFields
  91. }
  92. func (x *ServerConfig) Reset() {
  93. *x = ServerConfig{}
  94. if protoimpl.UnsafeEnabled {
  95. mi := &file_proxy_hysteria2_config_proto_msgTypes[2]
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. ms.StoreMessageInfo(mi)
  98. }
  99. }
  100. func (x *ServerConfig) String() string {
  101. return protoimpl.X.MessageStringOf(x)
  102. }
  103. func (*ServerConfig) ProtoMessage() {}
  104. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  105. mi := &file_proxy_hysteria2_config_proto_msgTypes[2]
  106. if protoimpl.UnsafeEnabled && x != nil {
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. if ms.LoadMessageInfo() == nil {
  109. ms.StoreMessageInfo(mi)
  110. }
  111. return ms
  112. }
  113. return mi.MessageOf(x)
  114. }
  115. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  116. func (*ServerConfig) Descriptor() ([]byte, []int) {
  117. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{2}
  118. }
  119. var File_proxy_hysteria2_config_proto protoreflect.FileDescriptor
  120. var file_proxy_hysteria2_config_proto_rawDesc = []byte{
  121. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61,
  122. 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  123. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  124. 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d,
  125. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72,
  126. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  127. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73,
  128. 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  129. 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  130. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x09, 0x0a, 0x07, 0x41,
  131. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6d, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  132. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  133. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  134. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  135. 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
  136. 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x15,
  137. 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x09, 0x68, 0x79, 0x73, 0x74,
  138. 0x65, 0x72, 0x69, 0x61, 0x32, 0x22, 0x28, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43,
  139. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x14, 0x0a, 0x07, 0x69, 0x6e, 0x62,
  140. 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x09, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x42,
  141. 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  142. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61,
  143. 0x32, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  144. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  145. 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72,
  146. 0x69, 0x61, 0x32, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
  147. 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32,
  148. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  149. }
  150. var (
  151. file_proxy_hysteria2_config_proto_rawDescOnce sync.Once
  152. file_proxy_hysteria2_config_proto_rawDescData = file_proxy_hysteria2_config_proto_rawDesc
  153. )
  154. func file_proxy_hysteria2_config_proto_rawDescGZIP() []byte {
  155. file_proxy_hysteria2_config_proto_rawDescOnce.Do(func() {
  156. file_proxy_hysteria2_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_hysteria2_config_proto_rawDescData)
  157. })
  158. return file_proxy_hysteria2_config_proto_rawDescData
  159. }
  160. var file_proxy_hysteria2_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  161. var file_proxy_hysteria2_config_proto_goTypes = []any{
  162. (*Account)(nil), // 0: v2ray.core.proxy.hysteria2.Account
  163. (*ClientConfig)(nil), // 1: v2ray.core.proxy.hysteria2.ClientConfig
  164. (*ServerConfig)(nil), // 2: v2ray.core.proxy.hysteria2.ServerConfig
  165. (*protocol.ServerEndpoint)(nil), // 3: v2ray.core.common.protocol.ServerEndpoint
  166. }
  167. var file_proxy_hysteria2_config_proto_depIdxs = []int32{
  168. 3, // 0: v2ray.core.proxy.hysteria2.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  169. 1, // [1:1] is the sub-list for method output_type
  170. 1, // [1:1] is the sub-list for method input_type
  171. 1, // [1:1] is the sub-list for extension type_name
  172. 1, // [1:1] is the sub-list for extension extendee
  173. 0, // [0:1] is the sub-list for field type_name
  174. }
  175. func init() { file_proxy_hysteria2_config_proto_init() }
  176. func file_proxy_hysteria2_config_proto_init() {
  177. if File_proxy_hysteria2_config_proto != nil {
  178. return
  179. }
  180. if !protoimpl.UnsafeEnabled {
  181. file_proxy_hysteria2_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  182. switch v := v.(*Account); i {
  183. case 0:
  184. return &v.state
  185. case 1:
  186. return &v.sizeCache
  187. case 2:
  188. return &v.unknownFields
  189. default:
  190. return nil
  191. }
  192. }
  193. file_proxy_hysteria2_config_proto_msgTypes[1].Exporter = func(v any, i int) any {
  194. switch v := v.(*ClientConfig); i {
  195. case 0:
  196. return &v.state
  197. case 1:
  198. return &v.sizeCache
  199. case 2:
  200. return &v.unknownFields
  201. default:
  202. return nil
  203. }
  204. }
  205. file_proxy_hysteria2_config_proto_msgTypes[2].Exporter = func(v any, i int) any {
  206. switch v := v.(*ServerConfig); i {
  207. case 0:
  208. return &v.state
  209. case 1:
  210. return &v.sizeCache
  211. case 2:
  212. return &v.unknownFields
  213. default:
  214. return nil
  215. }
  216. }
  217. }
  218. type x struct{}
  219. out := protoimpl.TypeBuilder{
  220. File: protoimpl.DescBuilder{
  221. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  222. RawDescriptor: file_proxy_hysteria2_config_proto_rawDesc,
  223. NumEnums: 0,
  224. NumMessages: 3,
  225. NumExtensions: 0,
  226. NumServices: 0,
  227. },
  228. GoTypes: file_proxy_hysteria2_config_proto_goTypes,
  229. DependencyIndexes: file_proxy_hysteria2_config_proto_depIdxs,
  230. MessageInfos: file_proxy_hysteria2_config_proto_msgTypes,
  231. }.Build()
  232. File_proxy_hysteria2_config_proto = out.File
  233. file_proxy_hysteria2_config_proto_rawDesc = nil
  234. file_proxy_hysteria2_config_proto_goTypes = nil
  235. file_proxy_hysteria2_config_proto_depIdxs = nil
  236. }