config.pb.go 10 KB

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