config.pb.go 11 KB

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