config.pb.go 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. unsafe "unsafe"
  11. )
  12. const (
  13. // Verify that this generated code is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  15. // Verify that runtime/protoimpl is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  17. )
  18. type Account struct {
  19. state protoimpl.MessageState `protogen:"open.v1"`
  20. unknownFields protoimpl.UnknownFields
  21. sizeCache protoimpl.SizeCache
  22. }
  23. func (x *Account) Reset() {
  24. *x = Account{}
  25. mi := &file_proxy_hysteria2_config_proto_msgTypes[0]
  26. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  27. ms.StoreMessageInfo(mi)
  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 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 `protogen:"open.v1"`
  50. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  51. unknownFields protoimpl.UnknownFields
  52. sizeCache protoimpl.SizeCache
  53. }
  54. func (x *ClientConfig) Reset() {
  55. *x = ClientConfig{}
  56. mi := &file_proxy_hysteria2_config_proto_msgTypes[1]
  57. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  58. ms.StoreMessageInfo(mi)
  59. }
  60. func (x *ClientConfig) String() string {
  61. return protoimpl.X.MessageStringOf(x)
  62. }
  63. func (*ClientConfig) ProtoMessage() {}
  64. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  65. mi := &file_proxy_hysteria2_config_proto_msgTypes[1]
  66. if x != nil {
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. if ms.LoadMessageInfo() == nil {
  69. ms.StoreMessageInfo(mi)
  70. }
  71. return ms
  72. }
  73. return mi.MessageOf(x)
  74. }
  75. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  76. func (*ClientConfig) Descriptor() ([]byte, []int) {
  77. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{1}
  78. }
  79. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  80. if x != nil {
  81. return x.Server
  82. }
  83. return nil
  84. }
  85. type ServerConfig struct {
  86. state protoimpl.MessageState `protogen:"open.v1"`
  87. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,1,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  88. unknownFields protoimpl.UnknownFields
  89. sizeCache protoimpl.SizeCache
  90. }
  91. func (x *ServerConfig) Reset() {
  92. *x = ServerConfig{}
  93. mi := &file_proxy_hysteria2_config_proto_msgTypes[2]
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. ms.StoreMessageInfo(mi)
  96. }
  97. func (x *ServerConfig) String() string {
  98. return protoimpl.X.MessageStringOf(x)
  99. }
  100. func (*ServerConfig) ProtoMessage() {}
  101. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  102. mi := &file_proxy_hysteria2_config_proto_msgTypes[2]
  103. if x != nil {
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. if ms.LoadMessageInfo() == nil {
  106. ms.StoreMessageInfo(mi)
  107. }
  108. return ms
  109. }
  110. return mi.MessageOf(x)
  111. }
  112. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  113. func (*ServerConfig) Descriptor() ([]byte, []int) {
  114. return file_proxy_hysteria2_config_proto_rawDescGZIP(), []int{2}
  115. }
  116. func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
  117. if x != nil {
  118. return x.PacketEncoding
  119. }
  120. return packetaddr.PacketAddrType(0)
  121. }
  122. var File_proxy_hysteria2_config_proto protoreflect.FileDescriptor
  123. var file_proxy_hysteria2_config_proto_rawDesc = string([]byte{
  124. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61,
  125. 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  126. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  127. 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d,
  128. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64,
  129. 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21,
  130. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
  131. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  132. 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65,
  133. 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
  134. 0x6f, 0x74, 0x6f, 0x22, 0x09, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6d,
  135. 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42,
  136. 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a,
  137. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  138. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76,
  139. 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76,
  140. 0x65, 0x72, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  141. 0x6e, 0x64, 0x12, 0x09, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x22, 0x7c, 0x0a,
  142. 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x52, 0x0a,
  143. 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
  144. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  145. 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64,
  146. 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70,
  147. 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
  148. 0x67, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x14, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  149. 0x12, 0x09, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x42, 0x6f, 0x0a, 0x1e, 0x63,
  150. 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  151. 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x50, 0x01, 0x5a,
  152. 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c,
  153. 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f,
  154. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0xaa,
  155. 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  156. 0x78, 0x79, 0x2e, 0x48, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72,
  157. 0x6f, 0x74, 0x6f, 0x33,
  158. })
  159. var (
  160. file_proxy_hysteria2_config_proto_rawDescOnce sync.Once
  161. file_proxy_hysteria2_config_proto_rawDescData []byte
  162. )
  163. func file_proxy_hysteria2_config_proto_rawDescGZIP() []byte {
  164. file_proxy_hysteria2_config_proto_rawDescOnce.Do(func() {
  165. file_proxy_hysteria2_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_hysteria2_config_proto_rawDesc), len(file_proxy_hysteria2_config_proto_rawDesc)))
  166. })
  167. return file_proxy_hysteria2_config_proto_rawDescData
  168. }
  169. var file_proxy_hysteria2_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  170. var file_proxy_hysteria2_config_proto_goTypes = []any{
  171. (*Account)(nil), // 0: v2ray.core.proxy.hysteria2.Account
  172. (*ClientConfig)(nil), // 1: v2ray.core.proxy.hysteria2.ClientConfig
  173. (*ServerConfig)(nil), // 2: v2ray.core.proxy.hysteria2.ServerConfig
  174. (*protocol.ServerEndpoint)(nil), // 3: v2ray.core.common.protocol.ServerEndpoint
  175. (packetaddr.PacketAddrType)(0), // 4: v2ray.core.net.packetaddr.PacketAddrType
  176. }
  177. var file_proxy_hysteria2_config_proto_depIdxs = []int32{
  178. 3, // 0: v2ray.core.proxy.hysteria2.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  179. 4, // 1: v2ray.core.proxy.hysteria2.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  180. 2, // [2:2] is the sub-list for method output_type
  181. 2, // [2:2] is the sub-list for method input_type
  182. 2, // [2:2] is the sub-list for extension type_name
  183. 2, // [2:2] is the sub-list for extension extendee
  184. 0, // [0:2] is the sub-list for field type_name
  185. }
  186. func init() { file_proxy_hysteria2_config_proto_init() }
  187. func file_proxy_hysteria2_config_proto_init() {
  188. if File_proxy_hysteria2_config_proto != nil {
  189. return
  190. }
  191. type x struct{}
  192. out := protoimpl.TypeBuilder{
  193. File: protoimpl.DescBuilder{
  194. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  195. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_hysteria2_config_proto_rawDesc), len(file_proxy_hysteria2_config_proto_rawDesc)),
  196. NumEnums: 0,
  197. NumMessages: 3,
  198. NumExtensions: 0,
  199. NumServices: 0,
  200. },
  201. GoTypes: file_proxy_hysteria2_config_proto_goTypes,
  202. DependencyIndexes: file_proxy_hysteria2_config_proto_depIdxs,
  203. MessageInfos: file_proxy_hysteria2_config_proto_msgTypes,
  204. }.Build()
  205. File_proxy_hysteria2_config_proto = out.File
  206. file_proxy_hysteria2_config_proto_goTypes = nil
  207. file_proxy_hysteria2_config_proto_depIdxs = nil
  208. }