github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/metric/metric_go_proto/metric.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.30.0 4 // protoc v3.21.7 5 // source: pkg/metric/metric.proto 6 7 package metric_go_proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type MetricMetadata_Type int32 25 26 const ( 27 MetricMetadata_TYPE_UINT64 MetricMetadata_Type = 0 28 MetricMetadata_TYPE_DISTRIBUTION MetricMetadata_Type = 1 29 ) 30 31 // Enum value maps for MetricMetadata_Type. 32 var ( 33 MetricMetadata_Type_name = map[int32]string{ 34 0: "TYPE_UINT64", 35 1: "TYPE_DISTRIBUTION", 36 } 37 MetricMetadata_Type_value = map[string]int32{ 38 "TYPE_UINT64": 0, 39 "TYPE_DISTRIBUTION": 1, 40 } 41 ) 42 43 func (x MetricMetadata_Type) Enum() *MetricMetadata_Type { 44 p := new(MetricMetadata_Type) 45 *p = x 46 return p 47 } 48 49 func (x MetricMetadata_Type) String() string { 50 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 51 } 52 53 func (MetricMetadata_Type) Descriptor() protoreflect.EnumDescriptor { 54 return file_pkg_metric_metric_proto_enumTypes[0].Descriptor() 55 } 56 57 func (MetricMetadata_Type) Type() protoreflect.EnumType { 58 return &file_pkg_metric_metric_proto_enumTypes[0] 59 } 60 61 func (x MetricMetadata_Type) Number() protoreflect.EnumNumber { 62 return protoreflect.EnumNumber(x) 63 } 64 65 // Deprecated: Use MetricMetadata_Type.Descriptor instead. 66 func (MetricMetadata_Type) EnumDescriptor() ([]byte, []int) { 67 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{0, 0} 68 } 69 70 type MetricMetadata_Units int32 71 72 const ( 73 MetricMetadata_UNITS_NONE MetricMetadata_Units = 0 74 MetricMetadata_UNITS_NANOSECONDS MetricMetadata_Units = 1 75 ) 76 77 // Enum value maps for MetricMetadata_Units. 78 var ( 79 MetricMetadata_Units_name = map[int32]string{ 80 0: "UNITS_NONE", 81 1: "UNITS_NANOSECONDS", 82 } 83 MetricMetadata_Units_value = map[string]int32{ 84 "UNITS_NONE": 0, 85 "UNITS_NANOSECONDS": 1, 86 } 87 ) 88 89 func (x MetricMetadata_Units) Enum() *MetricMetadata_Units { 90 p := new(MetricMetadata_Units) 91 *p = x 92 return p 93 } 94 95 func (x MetricMetadata_Units) String() string { 96 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 97 } 98 99 func (MetricMetadata_Units) Descriptor() protoreflect.EnumDescriptor { 100 return file_pkg_metric_metric_proto_enumTypes[1].Descriptor() 101 } 102 103 func (MetricMetadata_Units) Type() protoreflect.EnumType { 104 return &file_pkg_metric_metric_proto_enumTypes[1] 105 } 106 107 func (x MetricMetadata_Units) Number() protoreflect.EnumNumber { 108 return protoreflect.EnumNumber(x) 109 } 110 111 // Deprecated: Use MetricMetadata_Units.Descriptor instead. 112 func (MetricMetadata_Units) EnumDescriptor() ([]byte, []int) { 113 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{0, 1} 114 } 115 116 type MetricMetadata struct { 117 state protoimpl.MessageState 118 sizeCache protoimpl.SizeCache 119 unknownFields protoimpl.UnknownFields 120 121 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 122 PrometheusName string `protobuf:"bytes,9,opt,name=prometheus_name,json=prometheusName,proto3" json:"prometheus_name,omitempty"` 123 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 124 Cumulative bool `protobuf:"varint,3,opt,name=cumulative,proto3" json:"cumulative,omitempty"` 125 Sync bool `protobuf:"varint,4,opt,name=sync,proto3" json:"sync,omitempty"` 126 Type MetricMetadata_Type `protobuf:"varint,5,opt,name=type,proto3,enum=gvisor.MetricMetadata_Type" json:"type,omitempty"` 127 Units MetricMetadata_Units `protobuf:"varint,6,opt,name=units,proto3,enum=gvisor.MetricMetadata_Units" json:"units,omitempty"` 128 Fields []*MetricMetadata_Field `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` 129 DistributionBucketLowerBounds []int64 `protobuf:"varint,8,rep,packed,name=distribution_bucket_lower_bounds,json=distributionBucketLowerBounds,proto3" json:"distribution_bucket_lower_bounds,omitempty"` 130 } 131 132 func (x *MetricMetadata) Reset() { 133 *x = MetricMetadata{} 134 if protoimpl.UnsafeEnabled { 135 mi := &file_pkg_metric_metric_proto_msgTypes[0] 136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 137 ms.StoreMessageInfo(mi) 138 } 139 } 140 141 func (x *MetricMetadata) String() string { 142 return protoimpl.X.MessageStringOf(x) 143 } 144 145 func (*MetricMetadata) ProtoMessage() {} 146 147 func (x *MetricMetadata) ProtoReflect() protoreflect.Message { 148 mi := &file_pkg_metric_metric_proto_msgTypes[0] 149 if protoimpl.UnsafeEnabled && x != nil { 150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 151 if ms.LoadMessageInfo() == nil { 152 ms.StoreMessageInfo(mi) 153 } 154 return ms 155 } 156 return mi.MessageOf(x) 157 } 158 159 // Deprecated: Use MetricMetadata.ProtoReflect.Descriptor instead. 160 func (*MetricMetadata) Descriptor() ([]byte, []int) { 161 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{0} 162 } 163 164 func (x *MetricMetadata) GetName() string { 165 if x != nil { 166 return x.Name 167 } 168 return "" 169 } 170 171 func (x *MetricMetadata) GetPrometheusName() string { 172 if x != nil { 173 return x.PrometheusName 174 } 175 return "" 176 } 177 178 func (x *MetricMetadata) GetDescription() string { 179 if x != nil { 180 return x.Description 181 } 182 return "" 183 } 184 185 func (x *MetricMetadata) GetCumulative() bool { 186 if x != nil { 187 return x.Cumulative 188 } 189 return false 190 } 191 192 func (x *MetricMetadata) GetSync() bool { 193 if x != nil { 194 return x.Sync 195 } 196 return false 197 } 198 199 func (x *MetricMetadata) GetType() MetricMetadata_Type { 200 if x != nil { 201 return x.Type 202 } 203 return MetricMetadata_TYPE_UINT64 204 } 205 206 func (x *MetricMetadata) GetUnits() MetricMetadata_Units { 207 if x != nil { 208 return x.Units 209 } 210 return MetricMetadata_UNITS_NONE 211 } 212 213 func (x *MetricMetadata) GetFields() []*MetricMetadata_Field { 214 if x != nil { 215 return x.Fields 216 } 217 return nil 218 } 219 220 func (x *MetricMetadata) GetDistributionBucketLowerBounds() []int64 { 221 if x != nil { 222 return x.DistributionBucketLowerBounds 223 } 224 return nil 225 } 226 227 type MetricRegistration struct { 228 state protoimpl.MessageState 229 sizeCache protoimpl.SizeCache 230 unknownFields protoimpl.UnknownFields 231 232 Metrics []*MetricMetadata `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` 233 Stages []string `protobuf:"bytes,2,rep,name=stages,proto3" json:"stages,omitempty"` 234 } 235 236 func (x *MetricRegistration) Reset() { 237 *x = MetricRegistration{} 238 if protoimpl.UnsafeEnabled { 239 mi := &file_pkg_metric_metric_proto_msgTypes[1] 240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 241 ms.StoreMessageInfo(mi) 242 } 243 } 244 245 func (x *MetricRegistration) String() string { 246 return protoimpl.X.MessageStringOf(x) 247 } 248 249 func (*MetricRegistration) ProtoMessage() {} 250 251 func (x *MetricRegistration) ProtoReflect() protoreflect.Message { 252 mi := &file_pkg_metric_metric_proto_msgTypes[1] 253 if protoimpl.UnsafeEnabled && x != nil { 254 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 255 if ms.LoadMessageInfo() == nil { 256 ms.StoreMessageInfo(mi) 257 } 258 return ms 259 } 260 return mi.MessageOf(x) 261 } 262 263 // Deprecated: Use MetricRegistration.ProtoReflect.Descriptor instead. 264 func (*MetricRegistration) Descriptor() ([]byte, []int) { 265 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{1} 266 } 267 268 func (x *MetricRegistration) GetMetrics() []*MetricMetadata { 269 if x != nil { 270 return x.Metrics 271 } 272 return nil 273 } 274 275 func (x *MetricRegistration) GetStages() []string { 276 if x != nil { 277 return x.Stages 278 } 279 return nil 280 } 281 282 type Samples struct { 283 state protoimpl.MessageState 284 sizeCache protoimpl.SizeCache 285 unknownFields protoimpl.UnknownFields 286 287 NewSamples []uint64 `protobuf:"varint,1,rep,packed,name=new_samples,json=newSamples,proto3" json:"new_samples,omitempty"` 288 } 289 290 func (x *Samples) Reset() { 291 *x = Samples{} 292 if protoimpl.UnsafeEnabled { 293 mi := &file_pkg_metric_metric_proto_msgTypes[2] 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 ms.StoreMessageInfo(mi) 296 } 297 } 298 299 func (x *Samples) String() string { 300 return protoimpl.X.MessageStringOf(x) 301 } 302 303 func (*Samples) ProtoMessage() {} 304 305 func (x *Samples) ProtoReflect() protoreflect.Message { 306 mi := &file_pkg_metric_metric_proto_msgTypes[2] 307 if protoimpl.UnsafeEnabled && x != nil { 308 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 309 if ms.LoadMessageInfo() == nil { 310 ms.StoreMessageInfo(mi) 311 } 312 return ms 313 } 314 return mi.MessageOf(x) 315 } 316 317 // Deprecated: Use Samples.ProtoReflect.Descriptor instead. 318 func (*Samples) Descriptor() ([]byte, []int) { 319 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{2} 320 } 321 322 func (x *Samples) GetNewSamples() []uint64 { 323 if x != nil { 324 return x.NewSamples 325 } 326 return nil 327 } 328 329 type MetricValue struct { 330 state protoimpl.MessageState 331 sizeCache protoimpl.SizeCache 332 unknownFields protoimpl.UnknownFields 333 334 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 335 // Types that are assignable to Value: 336 // 337 // *MetricValue_Uint64Value 338 // *MetricValue_DistributionValue 339 Value isMetricValue_Value `protobuf_oneof:"value"` 340 FieldValues []string `protobuf:"bytes,4,rep,name=field_values,json=fieldValues,proto3" json:"field_values,omitempty"` 341 } 342 343 func (x *MetricValue) Reset() { 344 *x = MetricValue{} 345 if protoimpl.UnsafeEnabled { 346 mi := &file_pkg_metric_metric_proto_msgTypes[3] 347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 348 ms.StoreMessageInfo(mi) 349 } 350 } 351 352 func (x *MetricValue) String() string { 353 return protoimpl.X.MessageStringOf(x) 354 } 355 356 func (*MetricValue) ProtoMessage() {} 357 358 func (x *MetricValue) ProtoReflect() protoreflect.Message { 359 mi := &file_pkg_metric_metric_proto_msgTypes[3] 360 if protoimpl.UnsafeEnabled && x != nil { 361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 362 if ms.LoadMessageInfo() == nil { 363 ms.StoreMessageInfo(mi) 364 } 365 return ms 366 } 367 return mi.MessageOf(x) 368 } 369 370 // Deprecated: Use MetricValue.ProtoReflect.Descriptor instead. 371 func (*MetricValue) Descriptor() ([]byte, []int) { 372 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{3} 373 } 374 375 func (x *MetricValue) GetName() string { 376 if x != nil { 377 return x.Name 378 } 379 return "" 380 } 381 382 func (m *MetricValue) GetValue() isMetricValue_Value { 383 if m != nil { 384 return m.Value 385 } 386 return nil 387 } 388 389 func (x *MetricValue) GetUint64Value() uint64 { 390 if x, ok := x.GetValue().(*MetricValue_Uint64Value); ok { 391 return x.Uint64Value 392 } 393 return 0 394 } 395 396 func (x *MetricValue) GetDistributionValue() *Samples { 397 if x, ok := x.GetValue().(*MetricValue_DistributionValue); ok { 398 return x.DistributionValue 399 } 400 return nil 401 } 402 403 func (x *MetricValue) GetFieldValues() []string { 404 if x != nil { 405 return x.FieldValues 406 } 407 return nil 408 } 409 410 type isMetricValue_Value interface { 411 isMetricValue_Value() 412 } 413 414 type MetricValue_Uint64Value struct { 415 Uint64Value uint64 `protobuf:"varint,2,opt,name=uint64_value,json=uint64Value,proto3,oneof"` 416 } 417 418 type MetricValue_DistributionValue struct { 419 DistributionValue *Samples `protobuf:"bytes,3,opt,name=distribution_value,json=distributionValue,proto3,oneof"` 420 } 421 422 func (*MetricValue_Uint64Value) isMetricValue_Value() {} 423 424 func (*MetricValue_DistributionValue) isMetricValue_Value() {} 425 426 type StageTiming struct { 427 state protoimpl.MessageState 428 sizeCache protoimpl.SizeCache 429 unknownFields protoimpl.UnknownFields 430 431 Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"` 432 Started *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started,proto3" json:"started,omitempty"` 433 Ended *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ended,proto3" json:"ended,omitempty"` 434 } 435 436 func (x *StageTiming) Reset() { 437 *x = StageTiming{} 438 if protoimpl.UnsafeEnabled { 439 mi := &file_pkg_metric_metric_proto_msgTypes[4] 440 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 441 ms.StoreMessageInfo(mi) 442 } 443 } 444 445 func (x *StageTiming) String() string { 446 return protoimpl.X.MessageStringOf(x) 447 } 448 449 func (*StageTiming) ProtoMessage() {} 450 451 func (x *StageTiming) ProtoReflect() protoreflect.Message { 452 mi := &file_pkg_metric_metric_proto_msgTypes[4] 453 if protoimpl.UnsafeEnabled && x != nil { 454 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 455 if ms.LoadMessageInfo() == nil { 456 ms.StoreMessageInfo(mi) 457 } 458 return ms 459 } 460 return mi.MessageOf(x) 461 } 462 463 // Deprecated: Use StageTiming.ProtoReflect.Descriptor instead. 464 func (*StageTiming) Descriptor() ([]byte, []int) { 465 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{4} 466 } 467 468 func (x *StageTiming) GetStage() string { 469 if x != nil { 470 return x.Stage 471 } 472 return "" 473 } 474 475 func (x *StageTiming) GetStarted() *timestamppb.Timestamp { 476 if x != nil { 477 return x.Started 478 } 479 return nil 480 } 481 482 func (x *StageTiming) GetEnded() *timestamppb.Timestamp { 483 if x != nil { 484 return x.Ended 485 } 486 return nil 487 } 488 489 type MetricUpdate struct { 490 state protoimpl.MessageState 491 sizeCache protoimpl.SizeCache 492 unknownFields protoimpl.UnknownFields 493 494 Metrics []*MetricValue `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` 495 StageTiming []*StageTiming `protobuf:"bytes,2,rep,name=stage_timing,json=stageTiming,proto3" json:"stage_timing,omitempty"` 496 } 497 498 func (x *MetricUpdate) Reset() { 499 *x = MetricUpdate{} 500 if protoimpl.UnsafeEnabled { 501 mi := &file_pkg_metric_metric_proto_msgTypes[5] 502 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 503 ms.StoreMessageInfo(mi) 504 } 505 } 506 507 func (x *MetricUpdate) String() string { 508 return protoimpl.X.MessageStringOf(x) 509 } 510 511 func (*MetricUpdate) ProtoMessage() {} 512 513 func (x *MetricUpdate) ProtoReflect() protoreflect.Message { 514 mi := &file_pkg_metric_metric_proto_msgTypes[5] 515 if protoimpl.UnsafeEnabled && x != nil { 516 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 517 if ms.LoadMessageInfo() == nil { 518 ms.StoreMessageInfo(mi) 519 } 520 return ms 521 } 522 return mi.MessageOf(x) 523 } 524 525 // Deprecated: Use MetricUpdate.ProtoReflect.Descriptor instead. 526 func (*MetricUpdate) Descriptor() ([]byte, []int) { 527 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{5} 528 } 529 530 func (x *MetricUpdate) GetMetrics() []*MetricValue { 531 if x != nil { 532 return x.Metrics 533 } 534 return nil 535 } 536 537 func (x *MetricUpdate) GetStageTiming() []*StageTiming { 538 if x != nil { 539 return x.StageTiming 540 } 541 return nil 542 } 543 544 type MetricMetadata_Field struct { 545 state protoimpl.MessageState 546 sizeCache protoimpl.SizeCache 547 unknownFields protoimpl.UnknownFields 548 549 FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` 550 AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` 551 } 552 553 func (x *MetricMetadata_Field) Reset() { 554 *x = MetricMetadata_Field{} 555 if protoimpl.UnsafeEnabled { 556 mi := &file_pkg_metric_metric_proto_msgTypes[6] 557 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 558 ms.StoreMessageInfo(mi) 559 } 560 } 561 562 func (x *MetricMetadata_Field) String() string { 563 return protoimpl.X.MessageStringOf(x) 564 } 565 566 func (*MetricMetadata_Field) ProtoMessage() {} 567 568 func (x *MetricMetadata_Field) ProtoReflect() protoreflect.Message { 569 mi := &file_pkg_metric_metric_proto_msgTypes[6] 570 if protoimpl.UnsafeEnabled && x != nil { 571 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 572 if ms.LoadMessageInfo() == nil { 573 ms.StoreMessageInfo(mi) 574 } 575 return ms 576 } 577 return mi.MessageOf(x) 578 } 579 580 // Deprecated: Use MetricMetadata_Field.ProtoReflect.Descriptor instead. 581 func (*MetricMetadata_Field) Descriptor() ([]byte, []int) { 582 return file_pkg_metric_metric_proto_rawDescGZIP(), []int{0, 0} 583 } 584 585 func (x *MetricMetadata_Field) GetFieldName() string { 586 if x != nil { 587 return x.FieldName 588 } 589 return "" 590 } 591 592 func (x *MetricMetadata_Field) GetAllowedValues() []string { 593 if x != nil { 594 return x.AllowedValues 595 } 596 return nil 597 } 598 599 var File_pkg_metric_metric_proto protoreflect.FileDescriptor 600 601 var file_pkg_metric_metric_proto_rawDesc = []byte{ 602 0x0a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2f, 0x6d, 0x65, 0x74, 603 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x76, 0x69, 0x73, 0x6f, 604 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 605 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 606 0x74, 0x6f, 0x22, 0xb6, 0x04, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 607 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 608 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 609 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 610 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x4e, 0x61, 611 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 612 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 613 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 614 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 615 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x04, 0x20, 0x01, 616 0x28, 0x08, 0x52, 0x04, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 617 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 618 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 619 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x75, 0x6e, 0x69, 620 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x76, 0x69, 0x73, 0x6f, 621 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 622 0x2e, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x34, 0x0a, 623 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 624 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 625 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 626 0x6c, 0x64, 0x73, 0x12, 0x47, 0x0a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 627 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 628 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1d, 0x64, 629 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x63, 0x6b, 0x65, 630 0x74, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x1a, 0x4d, 0x0a, 0x05, 631 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 632 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 633 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 634 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6c, 635 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x2e, 0x0a, 0x04, 0x54, 636 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 637 0x36, 0x34, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x53, 638 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x2e, 0x0a, 0x05, 0x55, 639 0x6e, 0x69, 0x74, 0x73, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, 0x49, 0x54, 0x53, 0x5f, 0x4e, 0x4f, 640 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x4e, 0x49, 0x54, 0x53, 0x5f, 0x4e, 0x41, 641 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x53, 0x10, 0x01, 0x22, 0x5e, 0x0a, 0x12, 0x4d, 642 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 643 0x6e, 0x12, 0x30, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 644 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 645 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 646 0x69, 0x63, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 647 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x07, 0x53, 648 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x61, 649 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0a, 0x6e, 0x65, 0x77, 650 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x72, 651 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 652 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 653 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 654 0x04, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 655 0x12, 0x40, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 656 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 657 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 658 0x11, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 659 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 660 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x56, 661 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8b, 662 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x14, 663 0x0a, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 664 0x74, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 665 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 666 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 667 0x70, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x6e, 668 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 669 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 670 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x22, 0x75, 0x0a, 0x0c, 671 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x07, 672 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 673 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 674 0x75, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x36, 0x0a, 0x0c, 0x73, 675 0x74, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28, 676 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 677 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x67, 0x65, 0x54, 0x69, 0x6d, 678 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 679 } 680 681 var ( 682 file_pkg_metric_metric_proto_rawDescOnce sync.Once 683 file_pkg_metric_metric_proto_rawDescData = file_pkg_metric_metric_proto_rawDesc 684 ) 685 686 func file_pkg_metric_metric_proto_rawDescGZIP() []byte { 687 file_pkg_metric_metric_proto_rawDescOnce.Do(func() { 688 file_pkg_metric_metric_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_metric_metric_proto_rawDescData) 689 }) 690 return file_pkg_metric_metric_proto_rawDescData 691 } 692 693 var file_pkg_metric_metric_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 694 var file_pkg_metric_metric_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 695 var file_pkg_metric_metric_proto_goTypes = []interface{}{ 696 (MetricMetadata_Type)(0), // 0: gvisor.MetricMetadata.Type 697 (MetricMetadata_Units)(0), // 1: gvisor.MetricMetadata.Units 698 (*MetricMetadata)(nil), // 2: gvisor.MetricMetadata 699 (*MetricRegistration)(nil), // 3: gvisor.MetricRegistration 700 (*Samples)(nil), // 4: gvisor.Samples 701 (*MetricValue)(nil), // 5: gvisor.MetricValue 702 (*StageTiming)(nil), // 6: gvisor.StageTiming 703 (*MetricUpdate)(nil), // 7: gvisor.MetricUpdate 704 (*MetricMetadata_Field)(nil), // 8: gvisor.MetricMetadata.Field 705 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp 706 } 707 var file_pkg_metric_metric_proto_depIdxs = []int32{ 708 0, // 0: gvisor.MetricMetadata.type:type_name -> gvisor.MetricMetadata.Type 709 1, // 1: gvisor.MetricMetadata.units:type_name -> gvisor.MetricMetadata.Units 710 8, // 2: gvisor.MetricMetadata.fields:type_name -> gvisor.MetricMetadata.Field 711 2, // 3: gvisor.MetricRegistration.metrics:type_name -> gvisor.MetricMetadata 712 4, // 4: gvisor.MetricValue.distribution_value:type_name -> gvisor.Samples 713 9, // 5: gvisor.StageTiming.started:type_name -> google.protobuf.Timestamp 714 9, // 6: gvisor.StageTiming.ended:type_name -> google.protobuf.Timestamp 715 5, // 7: gvisor.MetricUpdate.metrics:type_name -> gvisor.MetricValue 716 6, // 8: gvisor.MetricUpdate.stage_timing:type_name -> gvisor.StageTiming 717 9, // [9:9] is the sub-list for method output_type 718 9, // [9:9] is the sub-list for method input_type 719 9, // [9:9] is the sub-list for extension type_name 720 9, // [9:9] is the sub-list for extension extendee 721 0, // [0:9] is the sub-list for field type_name 722 } 723 724 func init() { file_pkg_metric_metric_proto_init() } 725 func file_pkg_metric_metric_proto_init() { 726 if File_pkg_metric_metric_proto != nil { 727 return 728 } 729 if !protoimpl.UnsafeEnabled { 730 file_pkg_metric_metric_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 731 switch v := v.(*MetricMetadata); i { 732 case 0: 733 return &v.state 734 case 1: 735 return &v.sizeCache 736 case 2: 737 return &v.unknownFields 738 default: 739 return nil 740 } 741 } 742 file_pkg_metric_metric_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 743 switch v := v.(*MetricRegistration); i { 744 case 0: 745 return &v.state 746 case 1: 747 return &v.sizeCache 748 case 2: 749 return &v.unknownFields 750 default: 751 return nil 752 } 753 } 754 file_pkg_metric_metric_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 755 switch v := v.(*Samples); i { 756 case 0: 757 return &v.state 758 case 1: 759 return &v.sizeCache 760 case 2: 761 return &v.unknownFields 762 default: 763 return nil 764 } 765 } 766 file_pkg_metric_metric_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 767 switch v := v.(*MetricValue); i { 768 case 0: 769 return &v.state 770 case 1: 771 return &v.sizeCache 772 case 2: 773 return &v.unknownFields 774 default: 775 return nil 776 } 777 } 778 file_pkg_metric_metric_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 779 switch v := v.(*StageTiming); i { 780 case 0: 781 return &v.state 782 case 1: 783 return &v.sizeCache 784 case 2: 785 return &v.unknownFields 786 default: 787 return nil 788 } 789 } 790 file_pkg_metric_metric_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 791 switch v := v.(*MetricUpdate); i { 792 case 0: 793 return &v.state 794 case 1: 795 return &v.sizeCache 796 case 2: 797 return &v.unknownFields 798 default: 799 return nil 800 } 801 } 802 file_pkg_metric_metric_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 803 switch v := v.(*MetricMetadata_Field); i { 804 case 0: 805 return &v.state 806 case 1: 807 return &v.sizeCache 808 case 2: 809 return &v.unknownFields 810 default: 811 return nil 812 } 813 } 814 } 815 file_pkg_metric_metric_proto_msgTypes[3].OneofWrappers = []interface{}{ 816 (*MetricValue_Uint64Value)(nil), 817 (*MetricValue_DistributionValue)(nil), 818 } 819 type x struct{} 820 out := protoimpl.TypeBuilder{ 821 File: protoimpl.DescBuilder{ 822 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 823 RawDescriptor: file_pkg_metric_metric_proto_rawDesc, 824 NumEnums: 2, 825 NumMessages: 7, 826 NumExtensions: 0, 827 NumServices: 0, 828 }, 829 GoTypes: file_pkg_metric_metric_proto_goTypes, 830 DependencyIndexes: file_pkg_metric_metric_proto_depIdxs, 831 EnumInfos: file_pkg_metric_metric_proto_enumTypes, 832 MessageInfos: file_pkg_metric_metric_proto_msgTypes, 833 }.Build() 834 File_pkg_metric_metric_proto = out.File 835 file_pkg_metric_metric_proto_rawDesc = nil 836 file_pkg_metric_metric_proto_goTypes = nil 837 file_pkg_metric_metric_proto_depIdxs = nil 838 }