config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. package hysteria2
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  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 Congestion struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  19. UpMbps uint64 `protobuf:"varint,2,opt,name=up_mbps,json=upMbps,proto3" json:"up_mbps,omitempty"`
  20. DownMbps uint64 `protobuf:"varint,3,opt,name=down_mbps,json=downMbps,proto3" json:"down_mbps,omitempty"`
  21. unknownFields protoimpl.UnknownFields
  22. sizeCache protoimpl.SizeCache
  23. }
  24. func (x *Congestion) Reset() {
  25. *x = Congestion{}
  26. mi := &file_transport_internet_hysteria2_config_proto_msgTypes[0]
  27. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  28. ms.StoreMessageInfo(mi)
  29. }
  30. func (x *Congestion) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*Congestion) ProtoMessage() {}
  34. func (x *Congestion) ProtoReflect() protoreflect.Message {
  35. mi := &file_transport_internet_hysteria2_config_proto_msgTypes[0]
  36. if 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 Congestion.ProtoReflect.Descriptor instead.
  46. func (*Congestion) Descriptor() ([]byte, []int) {
  47. return file_transport_internet_hysteria2_config_proto_rawDescGZIP(), []int{0}
  48. }
  49. func (x *Congestion) GetType() string {
  50. if x != nil {
  51. return x.Type
  52. }
  53. return ""
  54. }
  55. func (x *Congestion) GetUpMbps() uint64 {
  56. if x != nil {
  57. return x.UpMbps
  58. }
  59. return 0
  60. }
  61. func (x *Congestion) GetDownMbps() uint64 {
  62. if x != nil {
  63. return x.DownMbps
  64. }
  65. return 0
  66. }
  67. type Config struct {
  68. state protoimpl.MessageState `protogen:"open.v1"`
  69. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  70. Congestion *Congestion `protobuf:"bytes,4,opt,name=congestion,proto3" json:"congestion,omitempty"`
  71. IgnoreClientBandwidth bool `protobuf:"varint,5,opt,name=ignore_client_bandwidth,json=ignoreClientBandwidth,proto3" json:"ignore_client_bandwidth,omitempty"`
  72. UseUdpExtension bool `protobuf:"varint,6,opt,name=use_udp_extension,json=useUdpExtension,proto3" json:"use_udp_extension,omitempty"`
  73. unknownFields protoimpl.UnknownFields
  74. sizeCache protoimpl.SizeCache
  75. }
  76. func (x *Config) Reset() {
  77. *x = Config{}
  78. mi := &file_transport_internet_hysteria2_config_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. func (x *Config) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*Config) ProtoMessage() {}
  86. func (x *Config) ProtoReflect() protoreflect.Message {
  87. mi := &file_transport_internet_hysteria2_config_proto_msgTypes[1]
  88. if x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  98. func (*Config) Descriptor() ([]byte, []int) {
  99. return file_transport_internet_hysteria2_config_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *Config) GetPassword() string {
  102. if x != nil {
  103. return x.Password
  104. }
  105. return ""
  106. }
  107. func (x *Config) GetCongestion() *Congestion {
  108. if x != nil {
  109. return x.Congestion
  110. }
  111. return nil
  112. }
  113. func (x *Config) GetIgnoreClientBandwidth() bool {
  114. if x != nil {
  115. return x.IgnoreClientBandwidth
  116. }
  117. return false
  118. }
  119. func (x *Config) GetUseUdpExtension() bool {
  120. if x != nil {
  121. return x.UseUdpExtension
  122. }
  123. return false
  124. }
  125. var File_transport_internet_hysteria2_config_proto protoreflect.FileDescriptor
  126. var file_transport_internet_hysteria2_config_proto_rawDesc = string([]byte{
  127. 0x0a, 0x29, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  128. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x2f, 0x63,
  129. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x76, 0x32, 0x72,
  130. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  131. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65,
  132. 0x72, 0x69, 0x61, 0x32, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  133. 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  134. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x56, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73,
  135. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
  136. 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x70, 0x5f, 0x6d,
  137. 0x62, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x70, 0x4d, 0x62, 0x70,
  138. 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x6d, 0x62, 0x70, 0x73, 0x18, 0x03,
  139. 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x6f, 0x77, 0x6e, 0x4d, 0x62, 0x70, 0x73, 0x22, 0xf9,
  140. 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73,
  141. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73,
  142. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x53, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74,
  143. 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61,
  144. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  145. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72,
  146. 0x69, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
  147. 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x69, 0x67,
  148. 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, 0x6e, 0x64,
  149. 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x67, 0x6e,
  150. 0x6f, 0x72, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64,
  151. 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x78,
  152. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x75,
  153. 0x73, 0x65, 0x55, 0x64, 0x70, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x1a,
  154. 0x82, 0xb5, 0x18, 0x16, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12,
  155. 0x09, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x42, 0x96, 0x01, 0x0a, 0x2b, 0x63,
  156. 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  157. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  158. 0x2e, 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69,
  159. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76,
  160. 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61,
  161. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f,
  162. 0x68, 0x79, 0x73, 0x74, 0x65, 0x72, 0x69, 0x61, 0x32, 0xaa, 0x02, 0x27, 0x56, 0x32, 0x52, 0x61,
  163. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  164. 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x79, 0x73, 0x74, 0x65, 0x72,
  165. 0x69, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  166. })
  167. var (
  168. file_transport_internet_hysteria2_config_proto_rawDescOnce sync.Once
  169. file_transport_internet_hysteria2_config_proto_rawDescData []byte
  170. )
  171. func file_transport_internet_hysteria2_config_proto_rawDescGZIP() []byte {
  172. file_transport_internet_hysteria2_config_proto_rawDescOnce.Do(func() {
  173. file_transport_internet_hysteria2_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_hysteria2_config_proto_rawDesc), len(file_transport_internet_hysteria2_config_proto_rawDesc)))
  174. })
  175. return file_transport_internet_hysteria2_config_proto_rawDescData
  176. }
  177. var file_transport_internet_hysteria2_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  178. var file_transport_internet_hysteria2_config_proto_goTypes = []any{
  179. (*Congestion)(nil), // 0: v2ray.core.transport.internet.hysteria2.Congestion
  180. (*Config)(nil), // 1: v2ray.core.transport.internet.hysteria2.Config
  181. }
  182. var file_transport_internet_hysteria2_config_proto_depIdxs = []int32{
  183. 0, // 0: v2ray.core.transport.internet.hysteria2.Config.congestion:type_name -> v2ray.core.transport.internet.hysteria2.Congestion
  184. 1, // [1:1] is the sub-list for method output_type
  185. 1, // [1:1] is the sub-list for method input_type
  186. 1, // [1:1] is the sub-list for extension type_name
  187. 1, // [1:1] is the sub-list for extension extendee
  188. 0, // [0:1] is the sub-list for field type_name
  189. }
  190. func init() { file_transport_internet_hysteria2_config_proto_init() }
  191. func file_transport_internet_hysteria2_config_proto_init() {
  192. if File_transport_internet_hysteria2_config_proto != nil {
  193. return
  194. }
  195. type x struct{}
  196. out := protoimpl.TypeBuilder{
  197. File: protoimpl.DescBuilder{
  198. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  199. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_hysteria2_config_proto_rawDesc), len(file_transport_internet_hysteria2_config_proto_rawDesc)),
  200. NumEnums: 0,
  201. NumMessages: 2,
  202. NumExtensions: 0,
  203. NumServices: 0,
  204. },
  205. GoTypes: file_transport_internet_hysteria2_config_proto_goTypes,
  206. DependencyIndexes: file_transport_internet_hysteria2_config_proto_depIdxs,
  207. MessageInfos: file_transport_internet_hysteria2_config_proto_msgTypes,
  208. }.Build()
  209. File_transport_internet_hysteria2_config_proto = out.File
  210. file_transport_internet_hysteria2_config_proto_goTypes = nil
  211. file_transport_internet_hysteria2_config_proto_depIdxs = nil
  212. }