github.com/sagernet/sing-box@v1.9.0-rc.20/experimental/v2rayapi/stats.pb.go (about) 1 package v2rayapi 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 9 ) 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 18 type GetStatsRequest struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 23 // Name of the stat counter. 24 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 25 // Whether or not to reset the counter to fetching its value. 26 Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"` 27 } 28 29 func (x *GetStatsRequest) Reset() { 30 *x = GetStatsRequest{} 31 if protoimpl.UnsafeEnabled { 32 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[0] 33 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 34 ms.StoreMessageInfo(mi) 35 } 36 } 37 38 func (x *GetStatsRequest) String() string { 39 return protoimpl.X.MessageStringOf(x) 40 } 41 42 func (*GetStatsRequest) ProtoMessage() {} 43 44 func (x *GetStatsRequest) ProtoReflect() protoreflect.Message { 45 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[0] 46 if protoimpl.UnsafeEnabled && x != nil { 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 if ms.LoadMessageInfo() == nil { 49 ms.StoreMessageInfo(mi) 50 } 51 return ms 52 } 53 return mi.MessageOf(x) 54 } 55 56 // Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead. 57 func (*GetStatsRequest) Descriptor() ([]byte, []int) { 58 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{0} 59 } 60 61 func (x *GetStatsRequest) GetName() string { 62 if x != nil { 63 return x.Name 64 } 65 return "" 66 } 67 68 func (x *GetStatsRequest) GetReset_() bool { 69 if x != nil { 70 return x.Reset_ 71 } 72 return false 73 } 74 75 type Stat struct { 76 state protoimpl.MessageState 77 sizeCache protoimpl.SizeCache 78 unknownFields protoimpl.UnknownFields 79 80 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 81 Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 82 } 83 84 func (x *Stat) Reset() { 85 *x = Stat{} 86 if protoimpl.UnsafeEnabled { 87 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[1] 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 89 ms.StoreMessageInfo(mi) 90 } 91 } 92 93 func (x *Stat) String() string { 94 return protoimpl.X.MessageStringOf(x) 95 } 96 97 func (*Stat) ProtoMessage() {} 98 99 func (x *Stat) ProtoReflect() protoreflect.Message { 100 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[1] 101 if protoimpl.UnsafeEnabled && x != nil { 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 if ms.LoadMessageInfo() == nil { 104 ms.StoreMessageInfo(mi) 105 } 106 return ms 107 } 108 return mi.MessageOf(x) 109 } 110 111 // Deprecated: Use Stat.ProtoReflect.Descriptor instead. 112 func (*Stat) Descriptor() ([]byte, []int) { 113 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{1} 114 } 115 116 func (x *Stat) GetName() string { 117 if x != nil { 118 return x.Name 119 } 120 return "" 121 } 122 123 func (x *Stat) GetValue() int64 { 124 if x != nil { 125 return x.Value 126 } 127 return 0 128 } 129 130 type GetStatsResponse struct { 131 state protoimpl.MessageState 132 sizeCache protoimpl.SizeCache 133 unknownFields protoimpl.UnknownFields 134 135 Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"` 136 } 137 138 func (x *GetStatsResponse) Reset() { 139 *x = GetStatsResponse{} 140 if protoimpl.UnsafeEnabled { 141 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[2] 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 143 ms.StoreMessageInfo(mi) 144 } 145 } 146 147 func (x *GetStatsResponse) String() string { 148 return protoimpl.X.MessageStringOf(x) 149 } 150 151 func (*GetStatsResponse) ProtoMessage() {} 152 153 func (x *GetStatsResponse) ProtoReflect() protoreflect.Message { 154 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[2] 155 if protoimpl.UnsafeEnabled && x != nil { 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 157 if ms.LoadMessageInfo() == nil { 158 ms.StoreMessageInfo(mi) 159 } 160 return ms 161 } 162 return mi.MessageOf(x) 163 } 164 165 // Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead. 166 func (*GetStatsResponse) Descriptor() ([]byte, []int) { 167 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{2} 168 } 169 170 func (x *GetStatsResponse) GetStat() *Stat { 171 if x != nil { 172 return x.Stat 173 } 174 return nil 175 } 176 177 type QueryStatsRequest struct { 178 state protoimpl.MessageState 179 sizeCache protoimpl.SizeCache 180 unknownFields protoimpl.UnknownFields 181 182 // Deprecated, use Patterns instead 183 Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` 184 Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"` 185 Patterns []string `protobuf:"bytes,3,rep,name=patterns,proto3" json:"patterns,omitempty"` 186 Regexp bool `protobuf:"varint,4,opt,name=regexp,proto3" json:"regexp,omitempty"` 187 } 188 189 func (x *QueryStatsRequest) Reset() { 190 *x = QueryStatsRequest{} 191 if protoimpl.UnsafeEnabled { 192 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[3] 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 ms.StoreMessageInfo(mi) 195 } 196 } 197 198 func (x *QueryStatsRequest) String() string { 199 return protoimpl.X.MessageStringOf(x) 200 } 201 202 func (*QueryStatsRequest) ProtoMessage() {} 203 204 func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message { 205 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[3] 206 if protoimpl.UnsafeEnabled && x != nil { 207 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 208 if ms.LoadMessageInfo() == nil { 209 ms.StoreMessageInfo(mi) 210 } 211 return ms 212 } 213 return mi.MessageOf(x) 214 } 215 216 // Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead. 217 func (*QueryStatsRequest) Descriptor() ([]byte, []int) { 218 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{3} 219 } 220 221 func (x *QueryStatsRequest) GetPattern() string { 222 if x != nil { 223 return x.Pattern 224 } 225 return "" 226 } 227 228 func (x *QueryStatsRequest) GetReset_() bool { 229 if x != nil { 230 return x.Reset_ 231 } 232 return false 233 } 234 235 func (x *QueryStatsRequest) GetPatterns() []string { 236 if x != nil { 237 return x.Patterns 238 } 239 return nil 240 } 241 242 func (x *QueryStatsRequest) GetRegexp() bool { 243 if x != nil { 244 return x.Regexp 245 } 246 return false 247 } 248 249 type QueryStatsResponse struct { 250 state protoimpl.MessageState 251 sizeCache protoimpl.SizeCache 252 unknownFields protoimpl.UnknownFields 253 254 Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"` 255 } 256 257 func (x *QueryStatsResponse) Reset() { 258 *x = QueryStatsResponse{} 259 if protoimpl.UnsafeEnabled { 260 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[4] 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 ms.StoreMessageInfo(mi) 263 } 264 } 265 266 func (x *QueryStatsResponse) String() string { 267 return protoimpl.X.MessageStringOf(x) 268 } 269 270 func (*QueryStatsResponse) ProtoMessage() {} 271 272 func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message { 273 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[4] 274 if protoimpl.UnsafeEnabled && x != nil { 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 276 if ms.LoadMessageInfo() == nil { 277 ms.StoreMessageInfo(mi) 278 } 279 return ms 280 } 281 return mi.MessageOf(x) 282 } 283 284 // Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead. 285 func (*QueryStatsResponse) Descriptor() ([]byte, []int) { 286 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{4} 287 } 288 289 func (x *QueryStatsResponse) GetStat() []*Stat { 290 if x != nil { 291 return x.Stat 292 } 293 return nil 294 } 295 296 type SysStatsRequest struct { 297 state protoimpl.MessageState 298 sizeCache protoimpl.SizeCache 299 unknownFields protoimpl.UnknownFields 300 } 301 302 func (x *SysStatsRequest) Reset() { 303 *x = SysStatsRequest{} 304 if protoimpl.UnsafeEnabled { 305 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[5] 306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 307 ms.StoreMessageInfo(mi) 308 } 309 } 310 311 func (x *SysStatsRequest) String() string { 312 return protoimpl.X.MessageStringOf(x) 313 } 314 315 func (*SysStatsRequest) ProtoMessage() {} 316 317 func (x *SysStatsRequest) ProtoReflect() protoreflect.Message { 318 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[5] 319 if protoimpl.UnsafeEnabled && x != nil { 320 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 321 if ms.LoadMessageInfo() == nil { 322 ms.StoreMessageInfo(mi) 323 } 324 return ms 325 } 326 return mi.MessageOf(x) 327 } 328 329 // Deprecated: Use SysStatsRequest.ProtoReflect.Descriptor instead. 330 func (*SysStatsRequest) Descriptor() ([]byte, []int) { 331 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{5} 332 } 333 334 type SysStatsResponse struct { 335 state protoimpl.MessageState 336 sizeCache protoimpl.SizeCache 337 unknownFields protoimpl.UnknownFields 338 339 NumGoroutine uint32 `protobuf:"varint,1,opt,name=NumGoroutine,proto3" json:"NumGoroutine,omitempty"` 340 NumGC uint32 `protobuf:"varint,2,opt,name=NumGC,proto3" json:"NumGC,omitempty"` 341 Alloc uint64 `protobuf:"varint,3,opt,name=Alloc,proto3" json:"Alloc,omitempty"` 342 TotalAlloc uint64 `protobuf:"varint,4,opt,name=TotalAlloc,proto3" json:"TotalAlloc,omitempty"` 343 Sys uint64 `protobuf:"varint,5,opt,name=Sys,proto3" json:"Sys,omitempty"` 344 Mallocs uint64 `protobuf:"varint,6,opt,name=Mallocs,proto3" json:"Mallocs,omitempty"` 345 Frees uint64 `protobuf:"varint,7,opt,name=Frees,proto3" json:"Frees,omitempty"` 346 LiveObjects uint64 `protobuf:"varint,8,opt,name=LiveObjects,proto3" json:"LiveObjects,omitempty"` 347 PauseTotalNs uint64 `protobuf:"varint,9,opt,name=PauseTotalNs,proto3" json:"PauseTotalNs,omitempty"` 348 Uptime uint32 `protobuf:"varint,10,opt,name=Uptime,proto3" json:"Uptime,omitempty"` 349 } 350 351 func (x *SysStatsResponse) Reset() { 352 *x = SysStatsResponse{} 353 if protoimpl.UnsafeEnabled { 354 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[6] 355 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 356 ms.StoreMessageInfo(mi) 357 } 358 } 359 360 func (x *SysStatsResponse) String() string { 361 return protoimpl.X.MessageStringOf(x) 362 } 363 364 func (*SysStatsResponse) ProtoMessage() {} 365 366 func (x *SysStatsResponse) ProtoReflect() protoreflect.Message { 367 mi := &file_experimental_v2rayapi_stats_proto_msgTypes[6] 368 if protoimpl.UnsafeEnabled && x != nil { 369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 370 if ms.LoadMessageInfo() == nil { 371 ms.StoreMessageInfo(mi) 372 } 373 return ms 374 } 375 return mi.MessageOf(x) 376 } 377 378 // Deprecated: Use SysStatsResponse.ProtoReflect.Descriptor instead. 379 func (*SysStatsResponse) Descriptor() ([]byte, []int) { 380 return file_experimental_v2rayapi_stats_proto_rawDescGZIP(), []int{6} 381 } 382 383 func (x *SysStatsResponse) GetNumGoroutine() uint32 { 384 if x != nil { 385 return x.NumGoroutine 386 } 387 return 0 388 } 389 390 func (x *SysStatsResponse) GetNumGC() uint32 { 391 if x != nil { 392 return x.NumGC 393 } 394 return 0 395 } 396 397 func (x *SysStatsResponse) GetAlloc() uint64 { 398 if x != nil { 399 return x.Alloc 400 } 401 return 0 402 } 403 404 func (x *SysStatsResponse) GetTotalAlloc() uint64 { 405 if x != nil { 406 return x.TotalAlloc 407 } 408 return 0 409 } 410 411 func (x *SysStatsResponse) GetSys() uint64 { 412 if x != nil { 413 return x.Sys 414 } 415 return 0 416 } 417 418 func (x *SysStatsResponse) GetMallocs() uint64 { 419 if x != nil { 420 return x.Mallocs 421 } 422 return 0 423 } 424 425 func (x *SysStatsResponse) GetFrees() uint64 { 426 if x != nil { 427 return x.Frees 428 } 429 return 0 430 } 431 432 func (x *SysStatsResponse) GetLiveObjects() uint64 { 433 if x != nil { 434 return x.LiveObjects 435 } 436 return 0 437 } 438 439 func (x *SysStatsResponse) GetPauseTotalNs() uint64 { 440 if x != nil { 441 return x.PauseTotalNs 442 } 443 return 0 444 } 445 446 func (x *SysStatsResponse) GetUptime() uint32 { 447 if x != nil { 448 return x.Uptime 449 } 450 return 0 451 } 452 453 var File_experimental_v2rayapi_stats_proto protoreflect.FileDescriptor 454 455 var file_experimental_v2rayapi_stats_proto_rawDesc = []byte{ 456 0x0a, 0x21, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 457 0x32, 0x72, 0x61, 0x79, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x70, 0x72, 458 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 459 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x61, 0x70, 0x69, 0x22, 0x3b, 0x0a, 0x0f, 0x47, 0x65, 460 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 461 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 462 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 463 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, 0x30, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 464 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 465 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 466 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x43, 0x0a, 0x10, 0x47, 0x65, 0x74, 467 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 468 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 469 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 470 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x22, 0x77, 471 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 472 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x01, 473 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x14, 0x0a, 474 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 475 0x73, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x18, 476 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 477 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 478 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x22, 0x45, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 479 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 480 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 481 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 482 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x22, 0x11, 483 0x0a, 0x0f, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 484 0x74, 0x22, 0xa2, 0x02, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 485 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x4e, 0x75, 0x6d, 0x47, 0x6f, 0x72, 486 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x4e, 0x75, 487 0x6d, 0x47, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x4e, 0x75, 488 0x6d, 0x47, 0x43, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x4e, 0x75, 0x6d, 0x47, 0x43, 489 0x12, 0x14, 0x0a, 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 490 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x41, 491 0x6c, 0x6c, 0x6f, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x54, 0x6f, 0x74, 0x61, 492 0x6c, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x79, 0x73, 0x18, 0x05, 0x20, 493 0x01, 0x28, 0x04, 0x52, 0x03, 0x53, 0x79, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x61, 0x6c, 0x6c, 494 0x6f, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 495 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x46, 0x72, 0x65, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 496 0x04, 0x52, 0x05, 0x46, 0x72, 0x65, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4c, 0x69, 0x76, 0x65, 497 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x4c, 498 0x69, 0x76, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x50, 0x61, 499 0x75, 0x73, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 500 0x52, 0x0c, 0x50, 0x61, 0x75, 0x73, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x73, 0x12, 0x16, 501 0x0a, 0x06, 0x55, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 502 0x55, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x32, 0xb4, 0x02, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x73, 503 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 504 0x61, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 505 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x53, 506 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x65, 0x78, 507 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 508 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 509 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 510 0x74, 0x61, 0x74, 0x73, 0x12, 0x28, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 511 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 512 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 513 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x32, 514 0x72, 0x61, 0x79, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 515 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0b, 0x47, 516 0x65, 0x74, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x65, 0x78, 0x70, 517 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x61, 518 0x70, 0x69, 0x2e, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 519 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 520 0x6c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x79, 0x73, 0x53, 0x74, 521 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x34, 0x5a, 522 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x61, 0x67, 0x65, 523 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x73, 0x69, 0x6e, 0x67, 0x2d, 0x62, 0x6f, 0x78, 0x2f, 0x65, 0x78, 524 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 525 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 526 } 527 528 var ( 529 file_experimental_v2rayapi_stats_proto_rawDescOnce sync.Once 530 file_experimental_v2rayapi_stats_proto_rawDescData = file_experimental_v2rayapi_stats_proto_rawDesc 531 ) 532 533 func file_experimental_v2rayapi_stats_proto_rawDescGZIP() []byte { 534 file_experimental_v2rayapi_stats_proto_rawDescOnce.Do(func() { 535 file_experimental_v2rayapi_stats_proto_rawDescData = protoimpl.X.CompressGZIP(file_experimental_v2rayapi_stats_proto_rawDescData) 536 }) 537 return file_experimental_v2rayapi_stats_proto_rawDescData 538 } 539 540 var ( 541 file_experimental_v2rayapi_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 542 file_experimental_v2rayapi_stats_proto_goTypes = []interface{}{ 543 (*GetStatsRequest)(nil), // 0: experimental.v2rayapi.GetStatsRequest 544 (*Stat)(nil), // 1: experimental.v2rayapi.Stat 545 (*GetStatsResponse)(nil), // 2: experimental.v2rayapi.GetStatsResponse 546 (*QueryStatsRequest)(nil), // 3: experimental.v2rayapi.QueryStatsRequest 547 (*QueryStatsResponse)(nil), // 4: experimental.v2rayapi.QueryStatsResponse 548 (*SysStatsRequest)(nil), // 5: experimental.v2rayapi.SysStatsRequest 549 (*SysStatsResponse)(nil), // 6: experimental.v2rayapi.SysStatsResponse 550 } 551 ) 552 553 var file_experimental_v2rayapi_stats_proto_depIdxs = []int32{ 554 1, // 0: experimental.v2rayapi.GetStatsResponse.stat:type_name -> experimental.v2rayapi.Stat 555 1, // 1: experimental.v2rayapi.QueryStatsResponse.stat:type_name -> experimental.v2rayapi.Stat 556 0, // 2: experimental.v2rayapi.StatsService.GetStats:input_type -> experimental.v2rayapi.GetStatsRequest 557 3, // 3: experimental.v2rayapi.StatsService.QueryStats:input_type -> experimental.v2rayapi.QueryStatsRequest 558 5, // 4: experimental.v2rayapi.StatsService.GetSysStats:input_type -> experimental.v2rayapi.SysStatsRequest 559 2, // 5: experimental.v2rayapi.StatsService.GetStats:output_type -> experimental.v2rayapi.GetStatsResponse 560 4, // 6: experimental.v2rayapi.StatsService.QueryStats:output_type -> experimental.v2rayapi.QueryStatsResponse 561 6, // 7: experimental.v2rayapi.StatsService.GetSysStats:output_type -> experimental.v2rayapi.SysStatsResponse 562 5, // [5:8] is the sub-list for method output_type 563 2, // [2:5] is the sub-list for method input_type 564 2, // [2:2] is the sub-list for extension type_name 565 2, // [2:2] is the sub-list for extension extendee 566 0, // [0:2] is the sub-list for field type_name 567 } 568 569 func init() { file_experimental_v2rayapi_stats_proto_init() } 570 func file_experimental_v2rayapi_stats_proto_init() { 571 if File_experimental_v2rayapi_stats_proto != nil { 572 return 573 } 574 if !protoimpl.UnsafeEnabled { 575 file_experimental_v2rayapi_stats_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 576 switch v := v.(*GetStatsRequest); i { 577 case 0: 578 return &v.state 579 case 1: 580 return &v.sizeCache 581 case 2: 582 return &v.unknownFields 583 default: 584 return nil 585 } 586 } 587 file_experimental_v2rayapi_stats_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 588 switch v := v.(*Stat); i { 589 case 0: 590 return &v.state 591 case 1: 592 return &v.sizeCache 593 case 2: 594 return &v.unknownFields 595 default: 596 return nil 597 } 598 } 599 file_experimental_v2rayapi_stats_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 600 switch v := v.(*GetStatsResponse); i { 601 case 0: 602 return &v.state 603 case 1: 604 return &v.sizeCache 605 case 2: 606 return &v.unknownFields 607 default: 608 return nil 609 } 610 } 611 file_experimental_v2rayapi_stats_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 612 switch v := v.(*QueryStatsRequest); i { 613 case 0: 614 return &v.state 615 case 1: 616 return &v.sizeCache 617 case 2: 618 return &v.unknownFields 619 default: 620 return nil 621 } 622 } 623 file_experimental_v2rayapi_stats_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 624 switch v := v.(*QueryStatsResponse); i { 625 case 0: 626 return &v.state 627 case 1: 628 return &v.sizeCache 629 case 2: 630 return &v.unknownFields 631 default: 632 return nil 633 } 634 } 635 file_experimental_v2rayapi_stats_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 636 switch v := v.(*SysStatsRequest); i { 637 case 0: 638 return &v.state 639 case 1: 640 return &v.sizeCache 641 case 2: 642 return &v.unknownFields 643 default: 644 return nil 645 } 646 } 647 file_experimental_v2rayapi_stats_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 648 switch v := v.(*SysStatsResponse); i { 649 case 0: 650 return &v.state 651 case 1: 652 return &v.sizeCache 653 case 2: 654 return &v.unknownFields 655 default: 656 return nil 657 } 658 } 659 } 660 type x struct{} 661 out := protoimpl.TypeBuilder{ 662 File: protoimpl.DescBuilder{ 663 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 664 RawDescriptor: file_experimental_v2rayapi_stats_proto_rawDesc, 665 NumEnums: 0, 666 NumMessages: 7, 667 NumExtensions: 0, 668 NumServices: 1, 669 }, 670 GoTypes: file_experimental_v2rayapi_stats_proto_goTypes, 671 DependencyIndexes: file_experimental_v2rayapi_stats_proto_depIdxs, 672 MessageInfos: file_experimental_v2rayapi_stats_proto_msgTypes, 673 }.Build() 674 File_experimental_v2rayapi_stats_proto = out.File 675 file_experimental_v2rayapi_stats_proto_rawDesc = nil 676 file_experimental_v2rayapi_stats_proto_goTypes = nil 677 file_experimental_v2rayapi_stats_proto_depIdxs = nil 678 }