github.com/GuanceCloud/cliutils@v1.1.21/point/pb/point.pb.go (about) 1 // Unless explicitly stated otherwise all files in this repository are licensed 2 // under the MIT License. 3 // This product includes software developed at Guance Cloud (https://www.guance.com/). 4 // Copyright 2021-present Guance, Inc. 5 6 // Definition of point in protobuf 7 // Generate: see pb.sh 8 9 // Code generated by protoc-gen-go. DO NOT EDIT. 10 // versions: 11 // protoc-gen-go v1.28.1 12 // protoc v4.23.3 13 // source: point.proto 14 15 package pb 16 17 import ( 18 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 19 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 20 anypb "google.golang.org/protobuf/types/known/anypb" 21 reflect "reflect" 22 sync "sync" 23 ) 24 25 const ( 26 // Verify that this generated code is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 28 // Verify that runtime/protoimpl is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 30 ) 31 32 type KeyType int32 33 34 const ( 35 KeyType_X KeyType = 0 // unknown 36 KeyType_I KeyType = 1 37 KeyType_U KeyType = 2 38 KeyType_F KeyType = 3 39 KeyType_B KeyType = 4 40 KeyType_D KeyType = 5 41 KeyType_NIL KeyType = 6 42 KeyType_S KeyType = 7 43 KeyType_A KeyType = 8 44 ) 45 46 // Enum value maps for KeyType. 47 var ( 48 KeyType_name = map[int32]string{ 49 0: "X", 50 1: "I", 51 2: "U", 52 3: "F", 53 4: "B", 54 5: "D", 55 6: "NIL", 56 7: "S", 57 8: "A", 58 } 59 KeyType_value = map[string]int32{ 60 "X": 0, 61 "I": 1, 62 "U": 2, 63 "F": 3, 64 "B": 4, 65 "D": 5, 66 "NIL": 6, 67 "S": 7, 68 "A": 8, 69 } 70 ) 71 72 func (x KeyType) Enum() *KeyType { 73 p := new(KeyType) 74 *p = x 75 return p 76 } 77 78 func (x KeyType) String() string { 79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 80 } 81 82 func (KeyType) Descriptor() protoreflect.EnumDescriptor { 83 return file_point_proto_enumTypes[0].Descriptor() 84 } 85 86 func (KeyType) Type() protoreflect.EnumType { 87 return &file_point_proto_enumTypes[0] 88 } 89 90 func (x KeyType) Number() protoreflect.EnumNumber { 91 return protoreflect.EnumNumber(x) 92 } 93 94 // Deprecated: Use KeyType.Descriptor instead. 95 func (KeyType) EnumDescriptor() ([]byte, []int) { 96 return file_point_proto_rawDescGZIP(), []int{0} 97 } 98 99 type MetricType int32 100 101 const ( 102 MetricType_UNSPECIFIED MetricType = 0 103 MetricType_COUNT MetricType = 1 104 MetricType_RATE MetricType = 2 105 MetricType_GAUGE MetricType = 3 106 ) 107 108 // Enum value maps for MetricType. 109 var ( 110 MetricType_name = map[int32]string{ 111 0: "UNSPECIFIED", 112 1: "COUNT", 113 2: "RATE", 114 3: "GAUGE", 115 } 116 MetricType_value = map[string]int32{ 117 "UNSPECIFIED": 0, 118 "COUNT": 1, 119 "RATE": 2, 120 "GAUGE": 3, 121 } 122 ) 123 124 func (x MetricType) Enum() *MetricType { 125 p := new(MetricType) 126 *p = x 127 return p 128 } 129 130 func (x MetricType) String() string { 131 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 132 } 133 134 func (MetricType) Descriptor() protoreflect.EnumDescriptor { 135 return file_point_proto_enumTypes[1].Descriptor() 136 } 137 138 func (MetricType) Type() protoreflect.EnumType { 139 return &file_point_proto_enumTypes[1] 140 } 141 142 func (x MetricType) Number() protoreflect.EnumNumber { 143 return protoreflect.EnumNumber(x) 144 } 145 146 // Deprecated: Use MetricType.Descriptor instead. 147 func (MetricType) EnumDescriptor() ([]byte, []int) { 148 return file_point_proto_rawDescGZIP(), []int{1} 149 } 150 151 // Debug used to attached some debug info for the point, these debug info 152 // will encoded into payload, storage can take optional handle on these debug 153 // info. 154 type Debug struct { 155 state protoimpl.MessageState 156 sizeCache protoimpl.SizeCache 157 unknownFields protoimpl.UnknownFields 158 159 Info string `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` 160 } 161 162 func (x *Debug) Reset() { 163 *x = Debug{} 164 if protoimpl.UnsafeEnabled { 165 mi := &file_point_proto_msgTypes[0] 166 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 167 ms.StoreMessageInfo(mi) 168 } 169 } 170 171 func (x *Debug) String() string { 172 return protoimpl.X.MessageStringOf(x) 173 } 174 175 func (*Debug) ProtoMessage() {} 176 177 func (x *Debug) ProtoReflect() protoreflect.Message { 178 mi := &file_point_proto_msgTypes[0] 179 if protoimpl.UnsafeEnabled && x != nil { 180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 181 if ms.LoadMessageInfo() == nil { 182 ms.StoreMessageInfo(mi) 183 } 184 return ms 185 } 186 return mi.MessageOf(x) 187 } 188 189 // Deprecated: Use Debug.ProtoReflect.Descriptor instead. 190 func (*Debug) Descriptor() ([]byte, []int) { 191 return file_point_proto_rawDescGZIP(), []int{0} 192 } 193 194 func (x *Debug) GetInfo() string { 195 if x != nil { 196 return x.Info 197 } 198 return "" 199 } 200 201 // example of pb.Any 202 type AnyDemo struct { 203 state protoimpl.MessageState 204 sizeCache protoimpl.SizeCache 205 unknownFields protoimpl.UnknownFields 206 207 Demo string `protobuf:"bytes,1,opt,name=demo,proto3" json:"demo,omitempty"` 208 } 209 210 func (x *AnyDemo) Reset() { 211 *x = AnyDemo{} 212 if protoimpl.UnsafeEnabled { 213 mi := &file_point_proto_msgTypes[1] 214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 215 ms.StoreMessageInfo(mi) 216 } 217 } 218 219 func (x *AnyDemo) String() string { 220 return protoimpl.X.MessageStringOf(x) 221 } 222 223 func (*AnyDemo) ProtoMessage() {} 224 225 func (x *AnyDemo) ProtoReflect() protoreflect.Message { 226 mi := &file_point_proto_msgTypes[1] 227 if protoimpl.UnsafeEnabled && x != nil { 228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 229 if ms.LoadMessageInfo() == nil { 230 ms.StoreMessageInfo(mi) 231 } 232 return ms 233 } 234 return mi.MessageOf(x) 235 } 236 237 // Deprecated: Use AnyDemo.ProtoReflect.Descriptor instead. 238 func (*AnyDemo) Descriptor() ([]byte, []int) { 239 return file_point_proto_rawDescGZIP(), []int{1} 240 } 241 242 func (x *AnyDemo) GetDemo() string { 243 if x != nil { 244 return x.Demo 245 } 246 return "" 247 } 248 249 type BasicTypes struct { 250 state protoimpl.MessageState 251 sizeCache protoimpl.SizeCache 252 unknownFields protoimpl.UnknownFields 253 254 // Types that are assignable to X: 255 // *BasicTypes_I 256 // *BasicTypes_U 257 // *BasicTypes_F 258 // *BasicTypes_B 259 // *BasicTypes_D 260 // *BasicTypes_S 261 X isBasicTypes_X `protobuf_oneof:"x"` 262 } 263 264 func (x *BasicTypes) Reset() { 265 *x = BasicTypes{} 266 if protoimpl.UnsafeEnabled { 267 mi := &file_point_proto_msgTypes[2] 268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 269 ms.StoreMessageInfo(mi) 270 } 271 } 272 273 func (x *BasicTypes) String() string { 274 return protoimpl.X.MessageStringOf(x) 275 } 276 277 func (*BasicTypes) ProtoMessage() {} 278 279 func (x *BasicTypes) ProtoReflect() protoreflect.Message { 280 mi := &file_point_proto_msgTypes[2] 281 if protoimpl.UnsafeEnabled && x != nil { 282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 283 if ms.LoadMessageInfo() == nil { 284 ms.StoreMessageInfo(mi) 285 } 286 return ms 287 } 288 return mi.MessageOf(x) 289 } 290 291 // Deprecated: Use BasicTypes.ProtoReflect.Descriptor instead. 292 func (*BasicTypes) Descriptor() ([]byte, []int) { 293 return file_point_proto_rawDescGZIP(), []int{2} 294 } 295 296 func (m *BasicTypes) GetX() isBasicTypes_X { 297 if m != nil { 298 return m.X 299 } 300 return nil 301 } 302 303 func (x *BasicTypes) GetI() int64 { 304 if x, ok := x.GetX().(*BasicTypes_I); ok { 305 return x.I 306 } 307 return 0 308 } 309 310 func (x *BasicTypes) GetU() uint64 { 311 if x, ok := x.GetX().(*BasicTypes_U); ok { 312 return x.U 313 } 314 return 0 315 } 316 317 func (x *BasicTypes) GetF() float64 { 318 if x, ok := x.GetX().(*BasicTypes_F); ok { 319 return x.F 320 } 321 return 0 322 } 323 324 func (x *BasicTypes) GetB() bool { 325 if x, ok := x.GetX().(*BasicTypes_B); ok { 326 return x.B 327 } 328 return false 329 } 330 331 func (x *BasicTypes) GetD() []byte { 332 if x, ok := x.GetX().(*BasicTypes_D); ok { 333 return x.D 334 } 335 return nil 336 } 337 338 func (x *BasicTypes) GetS() string { 339 if x, ok := x.GetX().(*BasicTypes_S); ok { 340 return x.S 341 } 342 return "" 343 } 344 345 type isBasicTypes_X interface { 346 isBasicTypes_X() 347 } 348 349 type BasicTypes_I struct { 350 I int64 `protobuf:"varint,1,opt,name=i,proto3,oneof"` // signed int 351 } 352 353 type BasicTypes_U struct { 354 U uint64 `protobuf:"varint,2,opt,name=u,proto3,oneof"` // unsigned int 355 } 356 357 type BasicTypes_F struct { 358 F float64 `protobuf:"fixed64,3,opt,name=f,proto3,oneof"` // float64 359 } 360 361 type BasicTypes_B struct { 362 B bool `protobuf:"varint,4,opt,name=b,proto3,oneof"` // bool 363 } 364 365 type BasicTypes_D struct { 366 D []byte `protobuf:"bytes,5,opt,name=d,proto3,oneof"` // bytes, for binary data 367 } 368 369 type BasicTypes_S struct { 370 S string `protobuf:"bytes,6,opt,name=s,proto3,oneof"` // string, for string data 371 } 372 373 func (*BasicTypes_I) isBasicTypes_X() {} 374 375 func (*BasicTypes_U) isBasicTypes_X() {} 376 377 func (*BasicTypes_F) isBasicTypes_X() {} 378 379 func (*BasicTypes_B) isBasicTypes_X() {} 380 381 func (*BasicTypes_D) isBasicTypes_X() {} 382 383 func (*BasicTypes_S) isBasicTypes_X() {} 384 385 type Array struct { 386 state protoimpl.MessageState 387 sizeCache protoimpl.SizeCache 388 unknownFields protoimpl.UnknownFields 389 390 Arr []*BasicTypes `protobuf:"bytes,1,rep,name=arr,proto3" json:"arr,omitempty"` 391 } 392 393 func (x *Array) Reset() { 394 *x = Array{} 395 if protoimpl.UnsafeEnabled { 396 mi := &file_point_proto_msgTypes[3] 397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 398 ms.StoreMessageInfo(mi) 399 } 400 } 401 402 func (x *Array) String() string { 403 return protoimpl.X.MessageStringOf(x) 404 } 405 406 func (*Array) ProtoMessage() {} 407 408 func (x *Array) ProtoReflect() protoreflect.Message { 409 mi := &file_point_proto_msgTypes[3] 410 if protoimpl.UnsafeEnabled && x != nil { 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 if ms.LoadMessageInfo() == nil { 413 ms.StoreMessageInfo(mi) 414 } 415 return ms 416 } 417 return mi.MessageOf(x) 418 } 419 420 // Deprecated: Use Array.ProtoReflect.Descriptor instead. 421 func (*Array) Descriptor() ([]byte, []int) { 422 return file_point_proto_rawDescGZIP(), []int{3} 423 } 424 425 func (x *Array) GetArr() []*BasicTypes { 426 if x != nil { 427 return x.Arr 428 } 429 return nil 430 } 431 432 type Map struct { 433 state protoimpl.MessageState 434 sizeCache protoimpl.SizeCache 435 unknownFields protoimpl.UnknownFields 436 437 Map map[string]*BasicTypes `protobuf:"bytes,1,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 438 } 439 440 func (x *Map) Reset() { 441 *x = Map{} 442 if protoimpl.UnsafeEnabled { 443 mi := &file_point_proto_msgTypes[4] 444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 445 ms.StoreMessageInfo(mi) 446 } 447 } 448 449 func (x *Map) String() string { 450 return protoimpl.X.MessageStringOf(x) 451 } 452 453 func (*Map) ProtoMessage() {} 454 455 func (x *Map) ProtoReflect() protoreflect.Message { 456 mi := &file_point_proto_msgTypes[4] 457 if protoimpl.UnsafeEnabled && x != nil { 458 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 459 if ms.LoadMessageInfo() == nil { 460 ms.StoreMessageInfo(mi) 461 } 462 return ms 463 } 464 return mi.MessageOf(x) 465 } 466 467 // Deprecated: Use Map.ProtoReflect.Descriptor instead. 468 func (*Map) Descriptor() ([]byte, []int) { 469 return file_point_proto_rawDescGZIP(), []int{4} 470 } 471 472 func (x *Map) GetMap() map[string]*BasicTypes { 473 if x != nil { 474 return x.Map 475 } 476 return nil 477 } 478 479 type Field struct { 480 state protoimpl.MessageState 481 sizeCache protoimpl.SizeCache 482 unknownFields protoimpl.UnknownFields 483 484 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // field name 485 // See https://developers.google.com/protocol-buffers/docs/proto3#json 486 // 487 // Types that are assignable to Val: 488 // *Field_I 489 // *Field_U 490 // *Field_F 491 // *Field_B 492 // *Field_D 493 // *Field_S 494 // *Field_A 495 Val isField_Val `protobuf_oneof:"val"` 496 IsTag bool `protobuf:"varint,8,opt,name=is_tag,proto3" json:"is_tag,omitempty"` // set field as a tag or not 497 Type MetricType `protobuf:"varint,9,opt,name=type,proto3,enum=pb.MetricType" json:"type,omitempty"` 498 // field unit name 499 Unit string `protobuf:"bytes,10,opt,name=unit,proto3" json:"unit,omitempty"` // metric unit, such as bytes(B), duration(ms/us) and so on. 500 } 501 502 func (x *Field) Reset() { 503 *x = Field{} 504 if protoimpl.UnsafeEnabled { 505 mi := &file_point_proto_msgTypes[5] 506 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 507 ms.StoreMessageInfo(mi) 508 } 509 } 510 511 func (x *Field) String() string { 512 return protoimpl.X.MessageStringOf(x) 513 } 514 515 func (*Field) ProtoMessage() {} 516 517 func (x *Field) ProtoReflect() protoreflect.Message { 518 mi := &file_point_proto_msgTypes[5] 519 if protoimpl.UnsafeEnabled && x != nil { 520 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 521 if ms.LoadMessageInfo() == nil { 522 ms.StoreMessageInfo(mi) 523 } 524 return ms 525 } 526 return mi.MessageOf(x) 527 } 528 529 // Deprecated: Use Field.ProtoReflect.Descriptor instead. 530 func (*Field) Descriptor() ([]byte, []int) { 531 return file_point_proto_rawDescGZIP(), []int{5} 532 } 533 534 func (x *Field) GetKey() string { 535 if x != nil { 536 return x.Key 537 } 538 return "" 539 } 540 541 func (m *Field) GetVal() isField_Val { 542 if m != nil { 543 return m.Val 544 } 545 return nil 546 } 547 548 func (x *Field) GetI() int64 { 549 if x, ok := x.GetVal().(*Field_I); ok { 550 return x.I 551 } 552 return 0 553 } 554 555 func (x *Field) GetU() uint64 { 556 if x, ok := x.GetVal().(*Field_U); ok { 557 return x.U 558 } 559 return 0 560 } 561 562 func (x *Field) GetF() float64 { 563 if x, ok := x.GetVal().(*Field_F); ok { 564 return x.F 565 } 566 return 0 567 } 568 569 func (x *Field) GetB() bool { 570 if x, ok := x.GetVal().(*Field_B); ok { 571 return x.B 572 } 573 return false 574 } 575 576 func (x *Field) GetD() []byte { 577 if x, ok := x.GetVal().(*Field_D); ok { 578 return x.D 579 } 580 return nil 581 } 582 583 func (x *Field) GetS() string { 584 if x, ok := x.GetVal().(*Field_S); ok { 585 return x.S 586 } 587 return "" 588 } 589 590 func (x *Field) GetA() *anypb.Any { 591 if x, ok := x.GetVal().(*Field_A); ok { 592 return x.A 593 } 594 return nil 595 } 596 597 func (x *Field) GetIsTag() bool { 598 if x != nil { 599 return x.IsTag 600 } 601 return false 602 } 603 604 func (x *Field) GetType() MetricType { 605 if x != nil { 606 return x.Type 607 } 608 return MetricType_UNSPECIFIED 609 } 610 611 func (x *Field) GetUnit() string { 612 if x != nil { 613 return x.Unit 614 } 615 return "" 616 } 617 618 type isField_Val interface { 619 isField_Val() 620 } 621 622 type Field_I struct { 623 I int64 `protobuf:"varint,2,opt,name=i,proto3,oneof"` // signed int 624 } 625 626 type Field_U struct { 627 U uint64 `protobuf:"varint,3,opt,name=u,proto3,oneof"` // unsigned int 628 } 629 630 type Field_F struct { 631 F float64 `protobuf:"fixed64,4,opt,name=f,proto3,oneof"` // float64 632 } 633 634 type Field_B struct { 635 B bool `protobuf:"varint,5,opt,name=b,proto3,oneof"` // bool 636 } 637 638 type Field_D struct { 639 D []byte `protobuf:"bytes,6,opt,name=d,proto3,oneof"` // bytes, for binary data 640 } 641 642 type Field_S struct { 643 S string `protobuf:"bytes,11,opt,name=s,proto3,oneof"` // string, for string data 644 } 645 646 type Field_A struct { 647 // XXX: not used 648 A *anypb.Any `protobuf:"bytes,7,opt,name=a,proto3,oneof"` // any data 649 } 650 651 func (*Field_I) isField_Val() {} 652 653 func (*Field_U) isField_Val() {} 654 655 func (*Field_F) isField_Val() {} 656 657 func (*Field_B) isField_Val() {} 658 659 func (*Field_D) isField_Val() {} 660 661 func (*Field_S) isField_Val() {} 662 663 func (*Field_A) isField_Val() {} 664 665 // Warn used to attach some warning message during building the point. 666 type Warn struct { 667 state protoimpl.MessageState 668 sizeCache protoimpl.SizeCache 669 unknownFields protoimpl.UnknownFields 670 671 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 672 Msg string `protobuf:"bytes,2,opt,name=msg,json=message,proto3" json:"msg,omitempty"` 673 } 674 675 func (x *Warn) Reset() { 676 *x = Warn{} 677 if protoimpl.UnsafeEnabled { 678 mi := &file_point_proto_msgTypes[6] 679 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 680 ms.StoreMessageInfo(mi) 681 } 682 } 683 684 func (x *Warn) String() string { 685 return protoimpl.X.MessageStringOf(x) 686 } 687 688 func (*Warn) ProtoMessage() {} 689 690 func (x *Warn) ProtoReflect() protoreflect.Message { 691 mi := &file_point_proto_msgTypes[6] 692 if protoimpl.UnsafeEnabled && x != nil { 693 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 694 if ms.LoadMessageInfo() == nil { 695 ms.StoreMessageInfo(mi) 696 } 697 return ms 698 } 699 return mi.MessageOf(x) 700 } 701 702 // Deprecated: Use Warn.ProtoReflect.Descriptor instead. 703 func (*Warn) Descriptor() ([]byte, []int) { 704 return file_point_proto_rawDescGZIP(), []int{6} 705 } 706 707 func (x *Warn) GetType() string { 708 if x != nil { 709 return x.Type 710 } 711 return "" 712 } 713 714 func (x *Warn) GetMsg() string { 715 if x != nil { 716 return x.Msg 717 } 718 return "" 719 } 720 721 type PBPoint struct { 722 state protoimpl.MessageState 723 sizeCache protoimpl.SizeCache 724 unknownFields protoimpl.UnknownFields 725 726 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 727 Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` 728 Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` 729 // Auxiliary fields for the point, they should not 730 // write to the final storage on production. 731 Warns []*Warn `protobuf:"bytes,4,rep,name=warns,proto3" json:"warns,omitempty"` 732 Debugs []*Debug `protobuf:"bytes,5,rep,name=debugs,proto3" json:"debugs,omitempty"` 733 } 734 735 func (x *PBPoint) Reset() { 736 *x = PBPoint{} 737 if protoimpl.UnsafeEnabled { 738 mi := &file_point_proto_msgTypes[7] 739 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 740 ms.StoreMessageInfo(mi) 741 } 742 } 743 744 func (x *PBPoint) String() string { 745 return protoimpl.X.MessageStringOf(x) 746 } 747 748 func (*PBPoint) ProtoMessage() {} 749 750 func (x *PBPoint) ProtoReflect() protoreflect.Message { 751 mi := &file_point_proto_msgTypes[7] 752 if protoimpl.UnsafeEnabled && x != nil { 753 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 754 if ms.LoadMessageInfo() == nil { 755 ms.StoreMessageInfo(mi) 756 } 757 return ms 758 } 759 return mi.MessageOf(x) 760 } 761 762 // Deprecated: Use PBPoint.ProtoReflect.Descriptor instead. 763 func (*PBPoint) Descriptor() ([]byte, []int) { 764 return file_point_proto_rawDescGZIP(), []int{7} 765 } 766 767 func (x *PBPoint) GetName() string { 768 if x != nil { 769 return x.Name 770 } 771 return "" 772 } 773 774 func (x *PBPoint) GetFields() []*Field { 775 if x != nil { 776 return x.Fields 777 } 778 return nil 779 } 780 781 func (x *PBPoint) GetTime() int64 { 782 if x != nil { 783 return x.Time 784 } 785 return 0 786 } 787 788 func (x *PBPoint) GetWarns() []*Warn { 789 if x != nil { 790 return x.Warns 791 } 792 return nil 793 } 794 795 func (x *PBPoint) GetDebugs() []*Debug { 796 if x != nil { 797 return x.Debugs 798 } 799 return nil 800 } 801 802 // batch of pbpoint. 803 type PBPoints struct { 804 state protoimpl.MessageState 805 sizeCache protoimpl.SizeCache 806 unknownFields protoimpl.UnknownFields 807 808 Arr []*PBPoint `protobuf:"bytes,1,rep,name=arr,proto3" json:"arr,omitempty"` 809 } 810 811 func (x *PBPoints) Reset() { 812 *x = PBPoints{} 813 if protoimpl.UnsafeEnabled { 814 mi := &file_point_proto_msgTypes[8] 815 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 816 ms.StoreMessageInfo(mi) 817 } 818 } 819 820 func (x *PBPoints) String() string { 821 return protoimpl.X.MessageStringOf(x) 822 } 823 824 func (*PBPoints) ProtoMessage() {} 825 826 func (x *PBPoints) ProtoReflect() protoreflect.Message { 827 mi := &file_point_proto_msgTypes[8] 828 if protoimpl.UnsafeEnabled && x != nil { 829 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 830 if ms.LoadMessageInfo() == nil { 831 ms.StoreMessageInfo(mi) 832 } 833 return ms 834 } 835 return mi.MessageOf(x) 836 } 837 838 // Deprecated: Use PBPoints.ProtoReflect.Descriptor instead. 839 func (*PBPoints) Descriptor() ([]byte, []int) { 840 return file_point_proto_rawDescGZIP(), []int{8} 841 } 842 843 func (x *PBPoints) GetArr() []*PBPoint { 844 if x != nil { 845 return x.Arr 846 } 847 return nil 848 } 849 850 var File_point_proto protoreflect.FileDescriptor 851 852 var file_point_proto_rawDesc = []byte{ 853 0x0a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 854 0x62, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 855 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x05, 856 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 857 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x1d, 0x0a, 0x07, 0x41, 0x6e, 0x79, 858 0x44, 0x65, 0x6d, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x6d, 0x6f, 0x18, 0x01, 0x20, 0x01, 859 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x6d, 0x6f, 0x22, 0x71, 0x0a, 0x0a, 0x42, 0x61, 0x73, 0x69, 860 0x63, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x01, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 861 0x03, 0x48, 0x00, 0x52, 0x01, 0x69, 0x12, 0x0e, 0x0a, 0x01, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 862 0x04, 0x48, 0x00, 0x52, 0x01, 0x75, 0x12, 0x0e, 0x0a, 0x01, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 863 0x01, 0x48, 0x00, 0x52, 0x01, 0x66, 0x12, 0x0e, 0x0a, 0x01, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 864 0x08, 0x48, 0x00, 0x52, 0x01, 0x62, 0x12, 0x0e, 0x0a, 0x01, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 865 0x0c, 0x48, 0x00, 0x52, 0x01, 0x64, 0x12, 0x0e, 0x0a, 0x01, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 866 0x09, 0x48, 0x00, 0x52, 0x01, 0x73, 0x42, 0x03, 0x0a, 0x01, 0x78, 0x22, 0x29, 0x0a, 0x05, 0x41, 867 0x72, 0x72, 0x61, 0x79, 0x12, 0x20, 0x0a, 0x03, 0x61, 0x72, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 868 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 869 0x73, 0x52, 0x03, 0x61, 0x72, 0x72, 0x22, 0x71, 0x0a, 0x03, 0x4d, 0x61, 0x70, 0x12, 0x22, 0x0a, 870 0x03, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 871 0x4d, 0x61, 0x70, 0x2e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x6d, 0x61, 872 0x70, 0x1a, 0x46, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 873 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 874 0x24, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 875 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x05, 876 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf6, 0x01, 0x0a, 0x05, 0x46, 0x69, 877 0x65, 0x6c, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 878 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x01, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 879 0x48, 0x00, 0x52, 0x01, 0x69, 0x12, 0x0e, 0x0a, 0x01, 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 880 0x48, 0x00, 0x52, 0x01, 0x75, 0x12, 0x0e, 0x0a, 0x01, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 881 0x48, 0x00, 0x52, 0x01, 0x66, 0x12, 0x0e, 0x0a, 0x01, 0x62, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 882 0x48, 0x00, 0x52, 0x01, 0x62, 0x12, 0x0e, 0x0a, 0x01, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 883 0x48, 0x00, 0x52, 0x01, 0x64, 0x12, 0x0e, 0x0a, 0x01, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 884 0x48, 0x00, 0x52, 0x01, 0x73, 0x12, 0x24, 0x0a, 0x01, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 885 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 886 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x01, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x69, 887 0x73, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x5f, 888 0x74, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 889 0x0e, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 890 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 891 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x42, 0x05, 0x0a, 0x03, 0x76, 892 0x61, 0x6c, 0x22, 0x30, 0x0a, 0x04, 0x57, 0x61, 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 893 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 894 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 895 0x73, 0x61, 0x67, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x07, 0x50, 0x42, 0x50, 0x6f, 0x69, 0x6e, 0x74, 896 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 897 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 898 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 899 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 900 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x77, 901 0x61, 0x72, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 902 0x57, 0x61, 0x72, 0x6e, 0x52, 0x05, 0x77, 0x61, 0x72, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x06, 0x64, 903 0x65, 0x62, 0x75, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 904 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x06, 0x64, 0x65, 0x62, 0x75, 0x67, 0x73, 0x22, 0x29, 905 0x0a, 0x08, 0x50, 0x42, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x03, 0x61, 0x72, 906 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x42, 0x50, 907 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x03, 0x61, 0x72, 0x72, 0x2a, 0x4a, 0x0a, 0x07, 0x4b, 0x65, 0x79, 908 0x54, 0x79, 0x70, 0x65, 0x12, 0x05, 0x0a, 0x01, 0x58, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x49, 909 0x10, 0x01, 0x12, 0x05, 0x0a, 0x01, 0x55, 0x10, 0x02, 0x12, 0x05, 0x0a, 0x01, 0x46, 0x10, 0x03, 910 0x12, 0x05, 0x0a, 0x01, 0x42, 0x10, 0x04, 0x12, 0x05, 0x0a, 0x01, 0x44, 0x10, 0x05, 0x12, 0x07, 911 0x0a, 0x03, 0x4e, 0x49, 0x4c, 0x10, 0x06, 0x12, 0x05, 0x0a, 0x01, 0x53, 0x10, 0x07, 0x12, 0x05, 912 0x0a, 0x01, 0x41, 0x10, 0x08, 0x2a, 0x3d, 0x0a, 0x0a, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 913 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 914 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x01, 0x12, 915 0x08, 0x0a, 0x04, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 916 0x47, 0x45, 0x10, 0x03, 0x42, 0x0f, 0x42, 0x05, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x01, 0x5a, 917 0x04, 0x2f, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 918 } 919 920 var ( 921 file_point_proto_rawDescOnce sync.Once 922 file_point_proto_rawDescData = file_point_proto_rawDesc 923 ) 924 925 func file_point_proto_rawDescGZIP() []byte { 926 file_point_proto_rawDescOnce.Do(func() { 927 file_point_proto_rawDescData = protoimpl.X.CompressGZIP(file_point_proto_rawDescData) 928 }) 929 return file_point_proto_rawDescData 930 } 931 932 var file_point_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 933 var file_point_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 934 var file_point_proto_goTypes = []interface{}{ 935 (KeyType)(0), // 0: pb.KeyType 936 (MetricType)(0), // 1: pb.MetricType 937 (*Debug)(nil), // 2: pb.Debug 938 (*AnyDemo)(nil), // 3: pb.AnyDemo 939 (*BasicTypes)(nil), // 4: pb.BasicTypes 940 (*Array)(nil), // 5: pb.Array 941 (*Map)(nil), // 6: pb.Map 942 (*Field)(nil), // 7: pb.Field 943 (*Warn)(nil), // 8: pb.Warn 944 (*PBPoint)(nil), // 9: pb.PBPoint 945 (*PBPoints)(nil), // 10: pb.PBPoints 946 nil, // 11: pb.Map.MapEntry 947 (*anypb.Any)(nil), // 12: google.protobuf.Any 948 } 949 var file_point_proto_depIdxs = []int32{ 950 4, // 0: pb.Array.arr:type_name -> pb.BasicTypes 951 11, // 1: pb.Map.map:type_name -> pb.Map.MapEntry 952 12, // 2: pb.Field.a:type_name -> google.protobuf.Any 953 1, // 3: pb.Field.type:type_name -> pb.MetricType 954 7, // 4: pb.PBPoint.fields:type_name -> pb.Field 955 8, // 5: pb.PBPoint.warns:type_name -> pb.Warn 956 2, // 6: pb.PBPoint.debugs:type_name -> pb.Debug 957 9, // 7: pb.PBPoints.arr:type_name -> pb.PBPoint 958 4, // 8: pb.Map.MapEntry.value:type_name -> pb.BasicTypes 959 9, // [9:9] is the sub-list for method output_type 960 9, // [9:9] is the sub-list for method input_type 961 9, // [9:9] is the sub-list for extension type_name 962 9, // [9:9] is the sub-list for extension extendee 963 0, // [0:9] is the sub-list for field type_name 964 } 965 966 func init() { file_point_proto_init() } 967 func file_point_proto_init() { 968 if File_point_proto != nil { 969 return 970 } 971 if !protoimpl.UnsafeEnabled { 972 file_point_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 973 switch v := v.(*Debug); i { 974 case 0: 975 return &v.state 976 case 1: 977 return &v.sizeCache 978 case 2: 979 return &v.unknownFields 980 default: 981 return nil 982 } 983 } 984 file_point_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 985 switch v := v.(*AnyDemo); i { 986 case 0: 987 return &v.state 988 case 1: 989 return &v.sizeCache 990 case 2: 991 return &v.unknownFields 992 default: 993 return nil 994 } 995 } 996 file_point_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 997 switch v := v.(*BasicTypes); i { 998 case 0: 999 return &v.state 1000 case 1: 1001 return &v.sizeCache 1002 case 2: 1003 return &v.unknownFields 1004 default: 1005 return nil 1006 } 1007 } 1008 file_point_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1009 switch v := v.(*Array); i { 1010 case 0: 1011 return &v.state 1012 case 1: 1013 return &v.sizeCache 1014 case 2: 1015 return &v.unknownFields 1016 default: 1017 return nil 1018 } 1019 } 1020 file_point_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1021 switch v := v.(*Map); i { 1022 case 0: 1023 return &v.state 1024 case 1: 1025 return &v.sizeCache 1026 case 2: 1027 return &v.unknownFields 1028 default: 1029 return nil 1030 } 1031 } 1032 file_point_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1033 switch v := v.(*Field); i { 1034 case 0: 1035 return &v.state 1036 case 1: 1037 return &v.sizeCache 1038 case 2: 1039 return &v.unknownFields 1040 default: 1041 return nil 1042 } 1043 } 1044 file_point_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1045 switch v := v.(*Warn); i { 1046 case 0: 1047 return &v.state 1048 case 1: 1049 return &v.sizeCache 1050 case 2: 1051 return &v.unknownFields 1052 default: 1053 return nil 1054 } 1055 } 1056 file_point_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1057 switch v := v.(*PBPoint); i { 1058 case 0: 1059 return &v.state 1060 case 1: 1061 return &v.sizeCache 1062 case 2: 1063 return &v.unknownFields 1064 default: 1065 return nil 1066 } 1067 } 1068 file_point_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1069 switch v := v.(*PBPoints); i { 1070 case 0: 1071 return &v.state 1072 case 1: 1073 return &v.sizeCache 1074 case 2: 1075 return &v.unknownFields 1076 default: 1077 return nil 1078 } 1079 } 1080 } 1081 file_point_proto_msgTypes[2].OneofWrappers = []interface{}{ 1082 (*BasicTypes_I)(nil), 1083 (*BasicTypes_U)(nil), 1084 (*BasicTypes_F)(nil), 1085 (*BasicTypes_B)(nil), 1086 (*BasicTypes_D)(nil), 1087 (*BasicTypes_S)(nil), 1088 } 1089 file_point_proto_msgTypes[5].OneofWrappers = []interface{}{ 1090 (*Field_I)(nil), 1091 (*Field_U)(nil), 1092 (*Field_F)(nil), 1093 (*Field_B)(nil), 1094 (*Field_D)(nil), 1095 (*Field_S)(nil), 1096 (*Field_A)(nil), 1097 } 1098 type x struct{} 1099 out := protoimpl.TypeBuilder{ 1100 File: protoimpl.DescBuilder{ 1101 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1102 RawDescriptor: file_point_proto_rawDesc, 1103 NumEnums: 2, 1104 NumMessages: 10, 1105 NumExtensions: 0, 1106 NumServices: 0, 1107 }, 1108 GoTypes: file_point_proto_goTypes, 1109 DependencyIndexes: file_point_proto_depIdxs, 1110 EnumInfos: file_point_proto_enumTypes, 1111 MessageInfos: file_point_proto_msgTypes, 1112 }.Build() 1113 File_point_proto = out.File 1114 file_point_proto_rawDesc = nil 1115 file_point_proto_goTypes = nil 1116 file_point_proto_depIdxs = nil 1117 }