github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/pkg/ingester/client/ingester.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: ingester.proto 3 4 // TODO: Rename to ingesterpb 5 6 package client 7 8 import ( 9 bytes "bytes" 10 context "context" 11 encoding_binary "encoding/binary" 12 fmt "fmt" 13 cortexpb "github.com/cortexproject/cortex/pkg/cortexpb" 14 github_com_cortexproject_cortex_pkg_cortexpb "github.com/cortexproject/cortex/pkg/cortexpb" 15 _ "github.com/gogo/protobuf/gogoproto" 16 proto "github.com/gogo/protobuf/proto" 17 grpc "google.golang.org/grpc" 18 codes "google.golang.org/grpc/codes" 19 status "google.golang.org/grpc/status" 20 io "io" 21 math "math" 22 math_bits "math/bits" 23 reflect "reflect" 24 strconv "strconv" 25 strings "strings" 26 ) 27 28 // Reference imports to suppress errors if they are not otherwise used. 29 var _ = proto.Marshal 30 var _ = fmt.Errorf 31 var _ = math.Inf 32 33 // This is a compile-time assertion to ensure that this generated file 34 // is compatible with the proto package it is being compiled against. 35 // A compilation error at this line likely means your copy of the 36 // proto package needs to be updated. 37 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 38 39 type MatchType int32 40 41 const ( 42 EQUAL MatchType = 0 43 NOT_EQUAL MatchType = 1 44 REGEX_MATCH MatchType = 2 45 REGEX_NO_MATCH MatchType = 3 46 ) 47 48 var MatchType_name = map[int32]string{ 49 0: "EQUAL", 50 1: "NOT_EQUAL", 51 2: "REGEX_MATCH", 52 3: "REGEX_NO_MATCH", 53 } 54 55 var MatchType_value = map[string]int32{ 56 "EQUAL": 0, 57 "NOT_EQUAL": 1, 58 "REGEX_MATCH": 2, 59 "REGEX_NO_MATCH": 3, 60 } 61 62 func (MatchType) EnumDescriptor() ([]byte, []int) { 63 return fileDescriptor_60f6df4f3586b478, []int{0} 64 } 65 66 type ReadRequest struct { 67 Queries []*QueryRequest `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` 68 } 69 70 func (m *ReadRequest) Reset() { *m = ReadRequest{} } 71 func (*ReadRequest) ProtoMessage() {} 72 func (*ReadRequest) Descriptor() ([]byte, []int) { 73 return fileDescriptor_60f6df4f3586b478, []int{0} 74 } 75 func (m *ReadRequest) XXX_Unmarshal(b []byte) error { 76 return m.Unmarshal(b) 77 } 78 func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 79 if deterministic { 80 return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic) 81 } else { 82 b = b[:cap(b)] 83 n, err := m.MarshalToSizedBuffer(b) 84 if err != nil { 85 return nil, err 86 } 87 return b[:n], nil 88 } 89 } 90 func (m *ReadRequest) XXX_Merge(src proto.Message) { 91 xxx_messageInfo_ReadRequest.Merge(m, src) 92 } 93 func (m *ReadRequest) XXX_Size() int { 94 return m.Size() 95 } 96 func (m *ReadRequest) XXX_DiscardUnknown() { 97 xxx_messageInfo_ReadRequest.DiscardUnknown(m) 98 } 99 100 var xxx_messageInfo_ReadRequest proto.InternalMessageInfo 101 102 func (m *ReadRequest) GetQueries() []*QueryRequest { 103 if m != nil { 104 return m.Queries 105 } 106 return nil 107 } 108 109 type ReadResponse struct { 110 Results []*QueryResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 111 } 112 113 func (m *ReadResponse) Reset() { *m = ReadResponse{} } 114 func (*ReadResponse) ProtoMessage() {} 115 func (*ReadResponse) Descriptor() ([]byte, []int) { 116 return fileDescriptor_60f6df4f3586b478, []int{1} 117 } 118 func (m *ReadResponse) XXX_Unmarshal(b []byte) error { 119 return m.Unmarshal(b) 120 } 121 func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 122 if deterministic { 123 return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic) 124 } else { 125 b = b[:cap(b)] 126 n, err := m.MarshalToSizedBuffer(b) 127 if err != nil { 128 return nil, err 129 } 130 return b[:n], nil 131 } 132 } 133 func (m *ReadResponse) XXX_Merge(src proto.Message) { 134 xxx_messageInfo_ReadResponse.Merge(m, src) 135 } 136 func (m *ReadResponse) XXX_Size() int { 137 return m.Size() 138 } 139 func (m *ReadResponse) XXX_DiscardUnknown() { 140 xxx_messageInfo_ReadResponse.DiscardUnknown(m) 141 } 142 143 var xxx_messageInfo_ReadResponse proto.InternalMessageInfo 144 145 func (m *ReadResponse) GetResults() []*QueryResponse { 146 if m != nil { 147 return m.Results 148 } 149 return nil 150 } 151 152 type QueryRequest struct { 153 StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` 154 EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` 155 Matchers []*LabelMatcher `protobuf:"bytes,3,rep,name=matchers,proto3" json:"matchers,omitempty"` 156 } 157 158 func (m *QueryRequest) Reset() { *m = QueryRequest{} } 159 func (*QueryRequest) ProtoMessage() {} 160 func (*QueryRequest) Descriptor() ([]byte, []int) { 161 return fileDescriptor_60f6df4f3586b478, []int{2} 162 } 163 func (m *QueryRequest) XXX_Unmarshal(b []byte) error { 164 return m.Unmarshal(b) 165 } 166 func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 167 if deterministic { 168 return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic) 169 } else { 170 b = b[:cap(b)] 171 n, err := m.MarshalToSizedBuffer(b) 172 if err != nil { 173 return nil, err 174 } 175 return b[:n], nil 176 } 177 } 178 func (m *QueryRequest) XXX_Merge(src proto.Message) { 179 xxx_messageInfo_QueryRequest.Merge(m, src) 180 } 181 func (m *QueryRequest) XXX_Size() int { 182 return m.Size() 183 } 184 func (m *QueryRequest) XXX_DiscardUnknown() { 185 xxx_messageInfo_QueryRequest.DiscardUnknown(m) 186 } 187 188 var xxx_messageInfo_QueryRequest proto.InternalMessageInfo 189 190 func (m *QueryRequest) GetStartTimestampMs() int64 { 191 if m != nil { 192 return m.StartTimestampMs 193 } 194 return 0 195 } 196 197 func (m *QueryRequest) GetEndTimestampMs() int64 { 198 if m != nil { 199 return m.EndTimestampMs 200 } 201 return 0 202 } 203 204 func (m *QueryRequest) GetMatchers() []*LabelMatcher { 205 if m != nil { 206 return m.Matchers 207 } 208 return nil 209 } 210 211 type ExemplarQueryRequest struct { 212 StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` 213 EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` 214 Matchers []*LabelMatchers `protobuf:"bytes,3,rep,name=matchers,proto3" json:"matchers,omitempty"` 215 } 216 217 func (m *ExemplarQueryRequest) Reset() { *m = ExemplarQueryRequest{} } 218 func (*ExemplarQueryRequest) ProtoMessage() {} 219 func (*ExemplarQueryRequest) Descriptor() ([]byte, []int) { 220 return fileDescriptor_60f6df4f3586b478, []int{3} 221 } 222 func (m *ExemplarQueryRequest) XXX_Unmarshal(b []byte) error { 223 return m.Unmarshal(b) 224 } 225 func (m *ExemplarQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 226 if deterministic { 227 return xxx_messageInfo_ExemplarQueryRequest.Marshal(b, m, deterministic) 228 } else { 229 b = b[:cap(b)] 230 n, err := m.MarshalToSizedBuffer(b) 231 if err != nil { 232 return nil, err 233 } 234 return b[:n], nil 235 } 236 } 237 func (m *ExemplarQueryRequest) XXX_Merge(src proto.Message) { 238 xxx_messageInfo_ExemplarQueryRequest.Merge(m, src) 239 } 240 func (m *ExemplarQueryRequest) XXX_Size() int { 241 return m.Size() 242 } 243 func (m *ExemplarQueryRequest) XXX_DiscardUnknown() { 244 xxx_messageInfo_ExemplarQueryRequest.DiscardUnknown(m) 245 } 246 247 var xxx_messageInfo_ExemplarQueryRequest proto.InternalMessageInfo 248 249 func (m *ExemplarQueryRequest) GetStartTimestampMs() int64 { 250 if m != nil { 251 return m.StartTimestampMs 252 } 253 return 0 254 } 255 256 func (m *ExemplarQueryRequest) GetEndTimestampMs() int64 { 257 if m != nil { 258 return m.EndTimestampMs 259 } 260 return 0 261 } 262 263 func (m *ExemplarQueryRequest) GetMatchers() []*LabelMatchers { 264 if m != nil { 265 return m.Matchers 266 } 267 return nil 268 } 269 270 type QueryResponse struct { 271 Timeseries []cortexpb.TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries"` 272 } 273 274 func (m *QueryResponse) Reset() { *m = QueryResponse{} } 275 func (*QueryResponse) ProtoMessage() {} 276 func (*QueryResponse) Descriptor() ([]byte, []int) { 277 return fileDescriptor_60f6df4f3586b478, []int{4} 278 } 279 func (m *QueryResponse) XXX_Unmarshal(b []byte) error { 280 return m.Unmarshal(b) 281 } 282 func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 283 if deterministic { 284 return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic) 285 } else { 286 b = b[:cap(b)] 287 n, err := m.MarshalToSizedBuffer(b) 288 if err != nil { 289 return nil, err 290 } 291 return b[:n], nil 292 } 293 } 294 func (m *QueryResponse) XXX_Merge(src proto.Message) { 295 xxx_messageInfo_QueryResponse.Merge(m, src) 296 } 297 func (m *QueryResponse) XXX_Size() int { 298 return m.Size() 299 } 300 func (m *QueryResponse) XXX_DiscardUnknown() { 301 xxx_messageInfo_QueryResponse.DiscardUnknown(m) 302 } 303 304 var xxx_messageInfo_QueryResponse proto.InternalMessageInfo 305 306 func (m *QueryResponse) GetTimeseries() []cortexpb.TimeSeries { 307 if m != nil { 308 return m.Timeseries 309 } 310 return nil 311 } 312 313 // QueryStreamResponse contains a batch of timeseries chunks or timeseries. Only one of these series will be populated. 314 type QueryStreamResponse struct { 315 Chunkseries []TimeSeriesChunk `protobuf:"bytes,1,rep,name=chunkseries,proto3" json:"chunkseries"` 316 Timeseries []cortexpb.TimeSeries `protobuf:"bytes,2,rep,name=timeseries,proto3" json:"timeseries"` 317 } 318 319 func (m *QueryStreamResponse) Reset() { *m = QueryStreamResponse{} } 320 func (*QueryStreamResponse) ProtoMessage() {} 321 func (*QueryStreamResponse) Descriptor() ([]byte, []int) { 322 return fileDescriptor_60f6df4f3586b478, []int{5} 323 } 324 func (m *QueryStreamResponse) XXX_Unmarshal(b []byte) error { 325 return m.Unmarshal(b) 326 } 327 func (m *QueryStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 328 if deterministic { 329 return xxx_messageInfo_QueryStreamResponse.Marshal(b, m, deterministic) 330 } else { 331 b = b[:cap(b)] 332 n, err := m.MarshalToSizedBuffer(b) 333 if err != nil { 334 return nil, err 335 } 336 return b[:n], nil 337 } 338 } 339 func (m *QueryStreamResponse) XXX_Merge(src proto.Message) { 340 xxx_messageInfo_QueryStreamResponse.Merge(m, src) 341 } 342 func (m *QueryStreamResponse) XXX_Size() int { 343 return m.Size() 344 } 345 func (m *QueryStreamResponse) XXX_DiscardUnknown() { 346 xxx_messageInfo_QueryStreamResponse.DiscardUnknown(m) 347 } 348 349 var xxx_messageInfo_QueryStreamResponse proto.InternalMessageInfo 350 351 func (m *QueryStreamResponse) GetChunkseries() []TimeSeriesChunk { 352 if m != nil { 353 return m.Chunkseries 354 } 355 return nil 356 } 357 358 func (m *QueryStreamResponse) GetTimeseries() []cortexpb.TimeSeries { 359 if m != nil { 360 return m.Timeseries 361 } 362 return nil 363 } 364 365 type ExemplarQueryResponse struct { 366 Timeseries []cortexpb.TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries"` 367 } 368 369 func (m *ExemplarQueryResponse) Reset() { *m = ExemplarQueryResponse{} } 370 func (*ExemplarQueryResponse) ProtoMessage() {} 371 func (*ExemplarQueryResponse) Descriptor() ([]byte, []int) { 372 return fileDescriptor_60f6df4f3586b478, []int{6} 373 } 374 func (m *ExemplarQueryResponse) XXX_Unmarshal(b []byte) error { 375 return m.Unmarshal(b) 376 } 377 func (m *ExemplarQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 378 if deterministic { 379 return xxx_messageInfo_ExemplarQueryResponse.Marshal(b, m, deterministic) 380 } else { 381 b = b[:cap(b)] 382 n, err := m.MarshalToSizedBuffer(b) 383 if err != nil { 384 return nil, err 385 } 386 return b[:n], nil 387 } 388 } 389 func (m *ExemplarQueryResponse) XXX_Merge(src proto.Message) { 390 xxx_messageInfo_ExemplarQueryResponse.Merge(m, src) 391 } 392 func (m *ExemplarQueryResponse) XXX_Size() int { 393 return m.Size() 394 } 395 func (m *ExemplarQueryResponse) XXX_DiscardUnknown() { 396 xxx_messageInfo_ExemplarQueryResponse.DiscardUnknown(m) 397 } 398 399 var xxx_messageInfo_ExemplarQueryResponse proto.InternalMessageInfo 400 401 func (m *ExemplarQueryResponse) GetTimeseries() []cortexpb.TimeSeries { 402 if m != nil { 403 return m.Timeseries 404 } 405 return nil 406 } 407 408 type LabelValuesRequest struct { 409 LabelName string `protobuf:"bytes,1,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"` 410 StartTimestampMs int64 `protobuf:"varint,2,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` 411 EndTimestampMs int64 `protobuf:"varint,3,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` 412 Matchers *LabelMatchers `protobuf:"bytes,4,opt,name=matchers,proto3" json:"matchers,omitempty"` 413 } 414 415 func (m *LabelValuesRequest) Reset() { *m = LabelValuesRequest{} } 416 func (*LabelValuesRequest) ProtoMessage() {} 417 func (*LabelValuesRequest) Descriptor() ([]byte, []int) { 418 return fileDescriptor_60f6df4f3586b478, []int{7} 419 } 420 func (m *LabelValuesRequest) XXX_Unmarshal(b []byte) error { 421 return m.Unmarshal(b) 422 } 423 func (m *LabelValuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 424 if deterministic { 425 return xxx_messageInfo_LabelValuesRequest.Marshal(b, m, deterministic) 426 } else { 427 b = b[:cap(b)] 428 n, err := m.MarshalToSizedBuffer(b) 429 if err != nil { 430 return nil, err 431 } 432 return b[:n], nil 433 } 434 } 435 func (m *LabelValuesRequest) XXX_Merge(src proto.Message) { 436 xxx_messageInfo_LabelValuesRequest.Merge(m, src) 437 } 438 func (m *LabelValuesRequest) XXX_Size() int { 439 return m.Size() 440 } 441 func (m *LabelValuesRequest) XXX_DiscardUnknown() { 442 xxx_messageInfo_LabelValuesRequest.DiscardUnknown(m) 443 } 444 445 var xxx_messageInfo_LabelValuesRequest proto.InternalMessageInfo 446 447 func (m *LabelValuesRequest) GetLabelName() string { 448 if m != nil { 449 return m.LabelName 450 } 451 return "" 452 } 453 454 func (m *LabelValuesRequest) GetStartTimestampMs() int64 { 455 if m != nil { 456 return m.StartTimestampMs 457 } 458 return 0 459 } 460 461 func (m *LabelValuesRequest) GetEndTimestampMs() int64 { 462 if m != nil { 463 return m.EndTimestampMs 464 } 465 return 0 466 } 467 468 func (m *LabelValuesRequest) GetMatchers() *LabelMatchers { 469 if m != nil { 470 return m.Matchers 471 } 472 return nil 473 } 474 475 type LabelValuesResponse struct { 476 LabelValues []string `protobuf:"bytes,1,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"` 477 } 478 479 func (m *LabelValuesResponse) Reset() { *m = LabelValuesResponse{} } 480 func (*LabelValuesResponse) ProtoMessage() {} 481 func (*LabelValuesResponse) Descriptor() ([]byte, []int) { 482 return fileDescriptor_60f6df4f3586b478, []int{8} 483 } 484 func (m *LabelValuesResponse) XXX_Unmarshal(b []byte) error { 485 return m.Unmarshal(b) 486 } 487 func (m *LabelValuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 488 if deterministic { 489 return xxx_messageInfo_LabelValuesResponse.Marshal(b, m, deterministic) 490 } else { 491 b = b[:cap(b)] 492 n, err := m.MarshalToSizedBuffer(b) 493 if err != nil { 494 return nil, err 495 } 496 return b[:n], nil 497 } 498 } 499 func (m *LabelValuesResponse) XXX_Merge(src proto.Message) { 500 xxx_messageInfo_LabelValuesResponse.Merge(m, src) 501 } 502 func (m *LabelValuesResponse) XXX_Size() int { 503 return m.Size() 504 } 505 func (m *LabelValuesResponse) XXX_DiscardUnknown() { 506 xxx_messageInfo_LabelValuesResponse.DiscardUnknown(m) 507 } 508 509 var xxx_messageInfo_LabelValuesResponse proto.InternalMessageInfo 510 511 func (m *LabelValuesResponse) GetLabelValues() []string { 512 if m != nil { 513 return m.LabelValues 514 } 515 return nil 516 } 517 518 type LabelNamesRequest struct { 519 StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` 520 EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` 521 } 522 523 func (m *LabelNamesRequest) Reset() { *m = LabelNamesRequest{} } 524 func (*LabelNamesRequest) ProtoMessage() {} 525 func (*LabelNamesRequest) Descriptor() ([]byte, []int) { 526 return fileDescriptor_60f6df4f3586b478, []int{9} 527 } 528 func (m *LabelNamesRequest) XXX_Unmarshal(b []byte) error { 529 return m.Unmarshal(b) 530 } 531 func (m *LabelNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 532 if deterministic { 533 return xxx_messageInfo_LabelNamesRequest.Marshal(b, m, deterministic) 534 } else { 535 b = b[:cap(b)] 536 n, err := m.MarshalToSizedBuffer(b) 537 if err != nil { 538 return nil, err 539 } 540 return b[:n], nil 541 } 542 } 543 func (m *LabelNamesRequest) XXX_Merge(src proto.Message) { 544 xxx_messageInfo_LabelNamesRequest.Merge(m, src) 545 } 546 func (m *LabelNamesRequest) XXX_Size() int { 547 return m.Size() 548 } 549 func (m *LabelNamesRequest) XXX_DiscardUnknown() { 550 xxx_messageInfo_LabelNamesRequest.DiscardUnknown(m) 551 } 552 553 var xxx_messageInfo_LabelNamesRequest proto.InternalMessageInfo 554 555 func (m *LabelNamesRequest) GetStartTimestampMs() int64 { 556 if m != nil { 557 return m.StartTimestampMs 558 } 559 return 0 560 } 561 562 func (m *LabelNamesRequest) GetEndTimestampMs() int64 { 563 if m != nil { 564 return m.EndTimestampMs 565 } 566 return 0 567 } 568 569 type LabelNamesResponse struct { 570 LabelNames []string `protobuf:"bytes,1,rep,name=label_names,json=labelNames,proto3" json:"label_names,omitempty"` 571 } 572 573 func (m *LabelNamesResponse) Reset() { *m = LabelNamesResponse{} } 574 func (*LabelNamesResponse) ProtoMessage() {} 575 func (*LabelNamesResponse) Descriptor() ([]byte, []int) { 576 return fileDescriptor_60f6df4f3586b478, []int{10} 577 } 578 func (m *LabelNamesResponse) XXX_Unmarshal(b []byte) error { 579 return m.Unmarshal(b) 580 } 581 func (m *LabelNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 582 if deterministic { 583 return xxx_messageInfo_LabelNamesResponse.Marshal(b, m, deterministic) 584 } else { 585 b = b[:cap(b)] 586 n, err := m.MarshalToSizedBuffer(b) 587 if err != nil { 588 return nil, err 589 } 590 return b[:n], nil 591 } 592 } 593 func (m *LabelNamesResponse) XXX_Merge(src proto.Message) { 594 xxx_messageInfo_LabelNamesResponse.Merge(m, src) 595 } 596 func (m *LabelNamesResponse) XXX_Size() int { 597 return m.Size() 598 } 599 func (m *LabelNamesResponse) XXX_DiscardUnknown() { 600 xxx_messageInfo_LabelNamesResponse.DiscardUnknown(m) 601 } 602 603 var xxx_messageInfo_LabelNamesResponse proto.InternalMessageInfo 604 605 func (m *LabelNamesResponse) GetLabelNames() []string { 606 if m != nil { 607 return m.LabelNames 608 } 609 return nil 610 } 611 612 type UserStatsRequest struct { 613 } 614 615 func (m *UserStatsRequest) Reset() { *m = UserStatsRequest{} } 616 func (*UserStatsRequest) ProtoMessage() {} 617 func (*UserStatsRequest) Descriptor() ([]byte, []int) { 618 return fileDescriptor_60f6df4f3586b478, []int{11} 619 } 620 func (m *UserStatsRequest) XXX_Unmarshal(b []byte) error { 621 return m.Unmarshal(b) 622 } 623 func (m *UserStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 624 if deterministic { 625 return xxx_messageInfo_UserStatsRequest.Marshal(b, m, deterministic) 626 } else { 627 b = b[:cap(b)] 628 n, err := m.MarshalToSizedBuffer(b) 629 if err != nil { 630 return nil, err 631 } 632 return b[:n], nil 633 } 634 } 635 func (m *UserStatsRequest) XXX_Merge(src proto.Message) { 636 xxx_messageInfo_UserStatsRequest.Merge(m, src) 637 } 638 func (m *UserStatsRequest) XXX_Size() int { 639 return m.Size() 640 } 641 func (m *UserStatsRequest) XXX_DiscardUnknown() { 642 xxx_messageInfo_UserStatsRequest.DiscardUnknown(m) 643 } 644 645 var xxx_messageInfo_UserStatsRequest proto.InternalMessageInfo 646 647 type UserStatsResponse struct { 648 IngestionRate float64 `protobuf:"fixed64,1,opt,name=ingestion_rate,json=ingestionRate,proto3" json:"ingestion_rate,omitempty"` 649 NumSeries uint64 `protobuf:"varint,2,opt,name=num_series,json=numSeries,proto3" json:"num_series,omitempty"` 650 ApiIngestionRate float64 `protobuf:"fixed64,3,opt,name=api_ingestion_rate,json=apiIngestionRate,proto3" json:"api_ingestion_rate,omitempty"` 651 RuleIngestionRate float64 `protobuf:"fixed64,4,opt,name=rule_ingestion_rate,json=ruleIngestionRate,proto3" json:"rule_ingestion_rate,omitempty"` 652 } 653 654 func (m *UserStatsResponse) Reset() { *m = UserStatsResponse{} } 655 func (*UserStatsResponse) ProtoMessage() {} 656 func (*UserStatsResponse) Descriptor() ([]byte, []int) { 657 return fileDescriptor_60f6df4f3586b478, []int{12} 658 } 659 func (m *UserStatsResponse) XXX_Unmarshal(b []byte) error { 660 return m.Unmarshal(b) 661 } 662 func (m *UserStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 663 if deterministic { 664 return xxx_messageInfo_UserStatsResponse.Marshal(b, m, deterministic) 665 } else { 666 b = b[:cap(b)] 667 n, err := m.MarshalToSizedBuffer(b) 668 if err != nil { 669 return nil, err 670 } 671 return b[:n], nil 672 } 673 } 674 func (m *UserStatsResponse) XXX_Merge(src proto.Message) { 675 xxx_messageInfo_UserStatsResponse.Merge(m, src) 676 } 677 func (m *UserStatsResponse) XXX_Size() int { 678 return m.Size() 679 } 680 func (m *UserStatsResponse) XXX_DiscardUnknown() { 681 xxx_messageInfo_UserStatsResponse.DiscardUnknown(m) 682 } 683 684 var xxx_messageInfo_UserStatsResponse proto.InternalMessageInfo 685 686 func (m *UserStatsResponse) GetIngestionRate() float64 { 687 if m != nil { 688 return m.IngestionRate 689 } 690 return 0 691 } 692 693 func (m *UserStatsResponse) GetNumSeries() uint64 { 694 if m != nil { 695 return m.NumSeries 696 } 697 return 0 698 } 699 700 func (m *UserStatsResponse) GetApiIngestionRate() float64 { 701 if m != nil { 702 return m.ApiIngestionRate 703 } 704 return 0 705 } 706 707 func (m *UserStatsResponse) GetRuleIngestionRate() float64 { 708 if m != nil { 709 return m.RuleIngestionRate 710 } 711 return 0 712 } 713 714 type UserIDStatsResponse struct { 715 UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` 716 Data *UserStatsResponse `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 717 } 718 719 func (m *UserIDStatsResponse) Reset() { *m = UserIDStatsResponse{} } 720 func (*UserIDStatsResponse) ProtoMessage() {} 721 func (*UserIDStatsResponse) Descriptor() ([]byte, []int) { 722 return fileDescriptor_60f6df4f3586b478, []int{13} 723 } 724 func (m *UserIDStatsResponse) XXX_Unmarshal(b []byte) error { 725 return m.Unmarshal(b) 726 } 727 func (m *UserIDStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 728 if deterministic { 729 return xxx_messageInfo_UserIDStatsResponse.Marshal(b, m, deterministic) 730 } else { 731 b = b[:cap(b)] 732 n, err := m.MarshalToSizedBuffer(b) 733 if err != nil { 734 return nil, err 735 } 736 return b[:n], nil 737 } 738 } 739 func (m *UserIDStatsResponse) XXX_Merge(src proto.Message) { 740 xxx_messageInfo_UserIDStatsResponse.Merge(m, src) 741 } 742 func (m *UserIDStatsResponse) XXX_Size() int { 743 return m.Size() 744 } 745 func (m *UserIDStatsResponse) XXX_DiscardUnknown() { 746 xxx_messageInfo_UserIDStatsResponse.DiscardUnknown(m) 747 } 748 749 var xxx_messageInfo_UserIDStatsResponse proto.InternalMessageInfo 750 751 func (m *UserIDStatsResponse) GetUserId() string { 752 if m != nil { 753 return m.UserId 754 } 755 return "" 756 } 757 758 func (m *UserIDStatsResponse) GetData() *UserStatsResponse { 759 if m != nil { 760 return m.Data 761 } 762 return nil 763 } 764 765 type UsersStatsResponse struct { 766 Stats []*UserIDStatsResponse `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` 767 } 768 769 func (m *UsersStatsResponse) Reset() { *m = UsersStatsResponse{} } 770 func (*UsersStatsResponse) ProtoMessage() {} 771 func (*UsersStatsResponse) Descriptor() ([]byte, []int) { 772 return fileDescriptor_60f6df4f3586b478, []int{14} 773 } 774 func (m *UsersStatsResponse) XXX_Unmarshal(b []byte) error { 775 return m.Unmarshal(b) 776 } 777 func (m *UsersStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 778 if deterministic { 779 return xxx_messageInfo_UsersStatsResponse.Marshal(b, m, deterministic) 780 } else { 781 b = b[:cap(b)] 782 n, err := m.MarshalToSizedBuffer(b) 783 if err != nil { 784 return nil, err 785 } 786 return b[:n], nil 787 } 788 } 789 func (m *UsersStatsResponse) XXX_Merge(src proto.Message) { 790 xxx_messageInfo_UsersStatsResponse.Merge(m, src) 791 } 792 func (m *UsersStatsResponse) XXX_Size() int { 793 return m.Size() 794 } 795 func (m *UsersStatsResponse) XXX_DiscardUnknown() { 796 xxx_messageInfo_UsersStatsResponse.DiscardUnknown(m) 797 } 798 799 var xxx_messageInfo_UsersStatsResponse proto.InternalMessageInfo 800 801 func (m *UsersStatsResponse) GetStats() []*UserIDStatsResponse { 802 if m != nil { 803 return m.Stats 804 } 805 return nil 806 } 807 808 type MetricsForLabelMatchersRequest struct { 809 StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` 810 EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` 811 MatchersSet []*LabelMatchers `protobuf:"bytes,3,rep,name=matchers_set,json=matchersSet,proto3" json:"matchers_set,omitempty"` 812 } 813 814 func (m *MetricsForLabelMatchersRequest) Reset() { *m = MetricsForLabelMatchersRequest{} } 815 func (*MetricsForLabelMatchersRequest) ProtoMessage() {} 816 func (*MetricsForLabelMatchersRequest) Descriptor() ([]byte, []int) { 817 return fileDescriptor_60f6df4f3586b478, []int{15} 818 } 819 func (m *MetricsForLabelMatchersRequest) XXX_Unmarshal(b []byte) error { 820 return m.Unmarshal(b) 821 } 822 func (m *MetricsForLabelMatchersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 823 if deterministic { 824 return xxx_messageInfo_MetricsForLabelMatchersRequest.Marshal(b, m, deterministic) 825 } else { 826 b = b[:cap(b)] 827 n, err := m.MarshalToSizedBuffer(b) 828 if err != nil { 829 return nil, err 830 } 831 return b[:n], nil 832 } 833 } 834 func (m *MetricsForLabelMatchersRequest) XXX_Merge(src proto.Message) { 835 xxx_messageInfo_MetricsForLabelMatchersRequest.Merge(m, src) 836 } 837 func (m *MetricsForLabelMatchersRequest) XXX_Size() int { 838 return m.Size() 839 } 840 func (m *MetricsForLabelMatchersRequest) XXX_DiscardUnknown() { 841 xxx_messageInfo_MetricsForLabelMatchersRequest.DiscardUnknown(m) 842 } 843 844 var xxx_messageInfo_MetricsForLabelMatchersRequest proto.InternalMessageInfo 845 846 func (m *MetricsForLabelMatchersRequest) GetStartTimestampMs() int64 { 847 if m != nil { 848 return m.StartTimestampMs 849 } 850 return 0 851 } 852 853 func (m *MetricsForLabelMatchersRequest) GetEndTimestampMs() int64 { 854 if m != nil { 855 return m.EndTimestampMs 856 } 857 return 0 858 } 859 860 func (m *MetricsForLabelMatchersRequest) GetMatchersSet() []*LabelMatchers { 861 if m != nil { 862 return m.MatchersSet 863 } 864 return nil 865 } 866 867 type MetricsForLabelMatchersResponse struct { 868 Metric []*cortexpb.Metric `protobuf:"bytes,1,rep,name=metric,proto3" json:"metric,omitempty"` 869 } 870 871 func (m *MetricsForLabelMatchersResponse) Reset() { *m = MetricsForLabelMatchersResponse{} } 872 func (*MetricsForLabelMatchersResponse) ProtoMessage() {} 873 func (*MetricsForLabelMatchersResponse) Descriptor() ([]byte, []int) { 874 return fileDescriptor_60f6df4f3586b478, []int{16} 875 } 876 func (m *MetricsForLabelMatchersResponse) XXX_Unmarshal(b []byte) error { 877 return m.Unmarshal(b) 878 } 879 func (m *MetricsForLabelMatchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 880 if deterministic { 881 return xxx_messageInfo_MetricsForLabelMatchersResponse.Marshal(b, m, deterministic) 882 } else { 883 b = b[:cap(b)] 884 n, err := m.MarshalToSizedBuffer(b) 885 if err != nil { 886 return nil, err 887 } 888 return b[:n], nil 889 } 890 } 891 func (m *MetricsForLabelMatchersResponse) XXX_Merge(src proto.Message) { 892 xxx_messageInfo_MetricsForLabelMatchersResponse.Merge(m, src) 893 } 894 func (m *MetricsForLabelMatchersResponse) XXX_Size() int { 895 return m.Size() 896 } 897 func (m *MetricsForLabelMatchersResponse) XXX_DiscardUnknown() { 898 xxx_messageInfo_MetricsForLabelMatchersResponse.DiscardUnknown(m) 899 } 900 901 var xxx_messageInfo_MetricsForLabelMatchersResponse proto.InternalMessageInfo 902 903 func (m *MetricsForLabelMatchersResponse) GetMetric() []*cortexpb.Metric { 904 if m != nil { 905 return m.Metric 906 } 907 return nil 908 } 909 910 type MetricsMetadataRequest struct { 911 } 912 913 func (m *MetricsMetadataRequest) Reset() { *m = MetricsMetadataRequest{} } 914 func (*MetricsMetadataRequest) ProtoMessage() {} 915 func (*MetricsMetadataRequest) Descriptor() ([]byte, []int) { 916 return fileDescriptor_60f6df4f3586b478, []int{17} 917 } 918 func (m *MetricsMetadataRequest) XXX_Unmarshal(b []byte) error { 919 return m.Unmarshal(b) 920 } 921 func (m *MetricsMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 922 if deterministic { 923 return xxx_messageInfo_MetricsMetadataRequest.Marshal(b, m, deterministic) 924 } else { 925 b = b[:cap(b)] 926 n, err := m.MarshalToSizedBuffer(b) 927 if err != nil { 928 return nil, err 929 } 930 return b[:n], nil 931 } 932 } 933 func (m *MetricsMetadataRequest) XXX_Merge(src proto.Message) { 934 xxx_messageInfo_MetricsMetadataRequest.Merge(m, src) 935 } 936 func (m *MetricsMetadataRequest) XXX_Size() int { 937 return m.Size() 938 } 939 func (m *MetricsMetadataRequest) XXX_DiscardUnknown() { 940 xxx_messageInfo_MetricsMetadataRequest.DiscardUnknown(m) 941 } 942 943 var xxx_messageInfo_MetricsMetadataRequest proto.InternalMessageInfo 944 945 type MetricsMetadataResponse struct { 946 Metadata []*cortexpb.MetricMetadata `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` 947 } 948 949 func (m *MetricsMetadataResponse) Reset() { *m = MetricsMetadataResponse{} } 950 func (*MetricsMetadataResponse) ProtoMessage() {} 951 func (*MetricsMetadataResponse) Descriptor() ([]byte, []int) { 952 return fileDescriptor_60f6df4f3586b478, []int{18} 953 } 954 func (m *MetricsMetadataResponse) XXX_Unmarshal(b []byte) error { 955 return m.Unmarshal(b) 956 } 957 func (m *MetricsMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 958 if deterministic { 959 return xxx_messageInfo_MetricsMetadataResponse.Marshal(b, m, deterministic) 960 } else { 961 b = b[:cap(b)] 962 n, err := m.MarshalToSizedBuffer(b) 963 if err != nil { 964 return nil, err 965 } 966 return b[:n], nil 967 } 968 } 969 func (m *MetricsMetadataResponse) XXX_Merge(src proto.Message) { 970 xxx_messageInfo_MetricsMetadataResponse.Merge(m, src) 971 } 972 func (m *MetricsMetadataResponse) XXX_Size() int { 973 return m.Size() 974 } 975 func (m *MetricsMetadataResponse) XXX_DiscardUnknown() { 976 xxx_messageInfo_MetricsMetadataResponse.DiscardUnknown(m) 977 } 978 979 var xxx_messageInfo_MetricsMetadataResponse proto.InternalMessageInfo 980 981 func (m *MetricsMetadataResponse) GetMetadata() []*cortexpb.MetricMetadata { 982 if m != nil { 983 return m.Metadata 984 } 985 return nil 986 } 987 988 type TimeSeriesChunk struct { 989 FromIngesterId string `protobuf:"bytes,1,opt,name=from_ingester_id,json=fromIngesterId,proto3" json:"from_ingester_id,omitempty"` 990 UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` 991 Labels []github_com_cortexproject_cortex_pkg_cortexpb.LabelAdapter `protobuf:"bytes,3,rep,name=labels,proto3,customtype=github.com/cortexproject/cortex/pkg/cortexpb.LabelAdapter" json:"labels"` 992 Chunks []Chunk `protobuf:"bytes,4,rep,name=chunks,proto3" json:"chunks"` 993 } 994 995 func (m *TimeSeriesChunk) Reset() { *m = TimeSeriesChunk{} } 996 func (*TimeSeriesChunk) ProtoMessage() {} 997 func (*TimeSeriesChunk) Descriptor() ([]byte, []int) { 998 return fileDescriptor_60f6df4f3586b478, []int{19} 999 } 1000 func (m *TimeSeriesChunk) XXX_Unmarshal(b []byte) error { 1001 return m.Unmarshal(b) 1002 } 1003 func (m *TimeSeriesChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1004 if deterministic { 1005 return xxx_messageInfo_TimeSeriesChunk.Marshal(b, m, deterministic) 1006 } else { 1007 b = b[:cap(b)] 1008 n, err := m.MarshalToSizedBuffer(b) 1009 if err != nil { 1010 return nil, err 1011 } 1012 return b[:n], nil 1013 } 1014 } 1015 func (m *TimeSeriesChunk) XXX_Merge(src proto.Message) { 1016 xxx_messageInfo_TimeSeriesChunk.Merge(m, src) 1017 } 1018 func (m *TimeSeriesChunk) XXX_Size() int { 1019 return m.Size() 1020 } 1021 func (m *TimeSeriesChunk) XXX_DiscardUnknown() { 1022 xxx_messageInfo_TimeSeriesChunk.DiscardUnknown(m) 1023 } 1024 1025 var xxx_messageInfo_TimeSeriesChunk proto.InternalMessageInfo 1026 1027 func (m *TimeSeriesChunk) GetFromIngesterId() string { 1028 if m != nil { 1029 return m.FromIngesterId 1030 } 1031 return "" 1032 } 1033 1034 func (m *TimeSeriesChunk) GetUserId() string { 1035 if m != nil { 1036 return m.UserId 1037 } 1038 return "" 1039 } 1040 1041 func (m *TimeSeriesChunk) GetChunks() []Chunk { 1042 if m != nil { 1043 return m.Chunks 1044 } 1045 return nil 1046 } 1047 1048 type Chunk struct { 1049 StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` 1050 EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` 1051 Encoding int32 `protobuf:"varint,3,opt,name=encoding,proto3" json:"encoding,omitempty"` 1052 Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` 1053 } 1054 1055 func (m *Chunk) Reset() { *m = Chunk{} } 1056 func (*Chunk) ProtoMessage() {} 1057 func (*Chunk) Descriptor() ([]byte, []int) { 1058 return fileDescriptor_60f6df4f3586b478, []int{20} 1059 } 1060 func (m *Chunk) XXX_Unmarshal(b []byte) error { 1061 return m.Unmarshal(b) 1062 } 1063 func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1064 if deterministic { 1065 return xxx_messageInfo_Chunk.Marshal(b, m, deterministic) 1066 } else { 1067 b = b[:cap(b)] 1068 n, err := m.MarshalToSizedBuffer(b) 1069 if err != nil { 1070 return nil, err 1071 } 1072 return b[:n], nil 1073 } 1074 } 1075 func (m *Chunk) XXX_Merge(src proto.Message) { 1076 xxx_messageInfo_Chunk.Merge(m, src) 1077 } 1078 func (m *Chunk) XXX_Size() int { 1079 return m.Size() 1080 } 1081 func (m *Chunk) XXX_DiscardUnknown() { 1082 xxx_messageInfo_Chunk.DiscardUnknown(m) 1083 } 1084 1085 var xxx_messageInfo_Chunk proto.InternalMessageInfo 1086 1087 func (m *Chunk) GetStartTimestampMs() int64 { 1088 if m != nil { 1089 return m.StartTimestampMs 1090 } 1091 return 0 1092 } 1093 1094 func (m *Chunk) GetEndTimestampMs() int64 { 1095 if m != nil { 1096 return m.EndTimestampMs 1097 } 1098 return 0 1099 } 1100 1101 func (m *Chunk) GetEncoding() int32 { 1102 if m != nil { 1103 return m.Encoding 1104 } 1105 return 0 1106 } 1107 1108 func (m *Chunk) GetData() []byte { 1109 if m != nil { 1110 return m.Data 1111 } 1112 return nil 1113 } 1114 1115 type TransferChunksResponse struct { 1116 } 1117 1118 func (m *TransferChunksResponse) Reset() { *m = TransferChunksResponse{} } 1119 func (*TransferChunksResponse) ProtoMessage() {} 1120 func (*TransferChunksResponse) Descriptor() ([]byte, []int) { 1121 return fileDescriptor_60f6df4f3586b478, []int{21} 1122 } 1123 func (m *TransferChunksResponse) XXX_Unmarshal(b []byte) error { 1124 return m.Unmarshal(b) 1125 } 1126 func (m *TransferChunksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1127 if deterministic { 1128 return xxx_messageInfo_TransferChunksResponse.Marshal(b, m, deterministic) 1129 } else { 1130 b = b[:cap(b)] 1131 n, err := m.MarshalToSizedBuffer(b) 1132 if err != nil { 1133 return nil, err 1134 } 1135 return b[:n], nil 1136 } 1137 } 1138 func (m *TransferChunksResponse) XXX_Merge(src proto.Message) { 1139 xxx_messageInfo_TransferChunksResponse.Merge(m, src) 1140 } 1141 func (m *TransferChunksResponse) XXX_Size() int { 1142 return m.Size() 1143 } 1144 func (m *TransferChunksResponse) XXX_DiscardUnknown() { 1145 xxx_messageInfo_TransferChunksResponse.DiscardUnknown(m) 1146 } 1147 1148 var xxx_messageInfo_TransferChunksResponse proto.InternalMessageInfo 1149 1150 type LabelMatchers struct { 1151 Matchers []*LabelMatcher `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"` 1152 } 1153 1154 func (m *LabelMatchers) Reset() { *m = LabelMatchers{} } 1155 func (*LabelMatchers) ProtoMessage() {} 1156 func (*LabelMatchers) Descriptor() ([]byte, []int) { 1157 return fileDescriptor_60f6df4f3586b478, []int{22} 1158 } 1159 func (m *LabelMatchers) XXX_Unmarshal(b []byte) error { 1160 return m.Unmarshal(b) 1161 } 1162 func (m *LabelMatchers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1163 if deterministic { 1164 return xxx_messageInfo_LabelMatchers.Marshal(b, m, deterministic) 1165 } else { 1166 b = b[:cap(b)] 1167 n, err := m.MarshalToSizedBuffer(b) 1168 if err != nil { 1169 return nil, err 1170 } 1171 return b[:n], nil 1172 } 1173 } 1174 func (m *LabelMatchers) XXX_Merge(src proto.Message) { 1175 xxx_messageInfo_LabelMatchers.Merge(m, src) 1176 } 1177 func (m *LabelMatchers) XXX_Size() int { 1178 return m.Size() 1179 } 1180 func (m *LabelMatchers) XXX_DiscardUnknown() { 1181 xxx_messageInfo_LabelMatchers.DiscardUnknown(m) 1182 } 1183 1184 var xxx_messageInfo_LabelMatchers proto.InternalMessageInfo 1185 1186 func (m *LabelMatchers) GetMatchers() []*LabelMatcher { 1187 if m != nil { 1188 return m.Matchers 1189 } 1190 return nil 1191 } 1192 1193 type LabelMatcher struct { 1194 Type MatchType `protobuf:"varint,1,opt,name=type,proto3,enum=cortex.MatchType" json:"type,omitempty"` 1195 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 1196 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 1197 } 1198 1199 func (m *LabelMatcher) Reset() { *m = LabelMatcher{} } 1200 func (*LabelMatcher) ProtoMessage() {} 1201 func (*LabelMatcher) Descriptor() ([]byte, []int) { 1202 return fileDescriptor_60f6df4f3586b478, []int{23} 1203 } 1204 func (m *LabelMatcher) XXX_Unmarshal(b []byte) error { 1205 return m.Unmarshal(b) 1206 } 1207 func (m *LabelMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1208 if deterministic { 1209 return xxx_messageInfo_LabelMatcher.Marshal(b, m, deterministic) 1210 } else { 1211 b = b[:cap(b)] 1212 n, err := m.MarshalToSizedBuffer(b) 1213 if err != nil { 1214 return nil, err 1215 } 1216 return b[:n], nil 1217 } 1218 } 1219 func (m *LabelMatcher) XXX_Merge(src proto.Message) { 1220 xxx_messageInfo_LabelMatcher.Merge(m, src) 1221 } 1222 func (m *LabelMatcher) XXX_Size() int { 1223 return m.Size() 1224 } 1225 func (m *LabelMatcher) XXX_DiscardUnknown() { 1226 xxx_messageInfo_LabelMatcher.DiscardUnknown(m) 1227 } 1228 1229 var xxx_messageInfo_LabelMatcher proto.InternalMessageInfo 1230 1231 func (m *LabelMatcher) GetType() MatchType { 1232 if m != nil { 1233 return m.Type 1234 } 1235 return EQUAL 1236 } 1237 1238 func (m *LabelMatcher) GetName() string { 1239 if m != nil { 1240 return m.Name 1241 } 1242 return "" 1243 } 1244 1245 func (m *LabelMatcher) GetValue() string { 1246 if m != nil { 1247 return m.Value 1248 } 1249 return "" 1250 } 1251 1252 type TimeSeriesFile struct { 1253 FromIngesterId string `protobuf:"bytes,1,opt,name=from_ingester_id,json=fromIngesterId,proto3" json:"from_ingester_id,omitempty"` 1254 UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` 1255 Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` 1256 Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` 1257 } 1258 1259 func (m *TimeSeriesFile) Reset() { *m = TimeSeriesFile{} } 1260 func (*TimeSeriesFile) ProtoMessage() {} 1261 func (*TimeSeriesFile) Descriptor() ([]byte, []int) { 1262 return fileDescriptor_60f6df4f3586b478, []int{24} 1263 } 1264 func (m *TimeSeriesFile) XXX_Unmarshal(b []byte) error { 1265 return m.Unmarshal(b) 1266 } 1267 func (m *TimeSeriesFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1268 if deterministic { 1269 return xxx_messageInfo_TimeSeriesFile.Marshal(b, m, deterministic) 1270 } else { 1271 b = b[:cap(b)] 1272 n, err := m.MarshalToSizedBuffer(b) 1273 if err != nil { 1274 return nil, err 1275 } 1276 return b[:n], nil 1277 } 1278 } 1279 func (m *TimeSeriesFile) XXX_Merge(src proto.Message) { 1280 xxx_messageInfo_TimeSeriesFile.Merge(m, src) 1281 } 1282 func (m *TimeSeriesFile) XXX_Size() int { 1283 return m.Size() 1284 } 1285 func (m *TimeSeriesFile) XXX_DiscardUnknown() { 1286 xxx_messageInfo_TimeSeriesFile.DiscardUnknown(m) 1287 } 1288 1289 var xxx_messageInfo_TimeSeriesFile proto.InternalMessageInfo 1290 1291 func (m *TimeSeriesFile) GetFromIngesterId() string { 1292 if m != nil { 1293 return m.FromIngesterId 1294 } 1295 return "" 1296 } 1297 1298 func (m *TimeSeriesFile) GetUserId() string { 1299 if m != nil { 1300 return m.UserId 1301 } 1302 return "" 1303 } 1304 1305 func (m *TimeSeriesFile) GetFilename() string { 1306 if m != nil { 1307 return m.Filename 1308 } 1309 return "" 1310 } 1311 1312 func (m *TimeSeriesFile) GetData() []byte { 1313 if m != nil { 1314 return m.Data 1315 } 1316 return nil 1317 } 1318 1319 func init() { 1320 proto.RegisterEnum("cortex.MatchType", MatchType_name, MatchType_value) 1321 proto.RegisterType((*ReadRequest)(nil), "cortex.ReadRequest") 1322 proto.RegisterType((*ReadResponse)(nil), "cortex.ReadResponse") 1323 proto.RegisterType((*QueryRequest)(nil), "cortex.QueryRequest") 1324 proto.RegisterType((*ExemplarQueryRequest)(nil), "cortex.ExemplarQueryRequest") 1325 proto.RegisterType((*QueryResponse)(nil), "cortex.QueryResponse") 1326 proto.RegisterType((*QueryStreamResponse)(nil), "cortex.QueryStreamResponse") 1327 proto.RegisterType((*ExemplarQueryResponse)(nil), "cortex.ExemplarQueryResponse") 1328 proto.RegisterType((*LabelValuesRequest)(nil), "cortex.LabelValuesRequest") 1329 proto.RegisterType((*LabelValuesResponse)(nil), "cortex.LabelValuesResponse") 1330 proto.RegisterType((*LabelNamesRequest)(nil), "cortex.LabelNamesRequest") 1331 proto.RegisterType((*LabelNamesResponse)(nil), "cortex.LabelNamesResponse") 1332 proto.RegisterType((*UserStatsRequest)(nil), "cortex.UserStatsRequest") 1333 proto.RegisterType((*UserStatsResponse)(nil), "cortex.UserStatsResponse") 1334 proto.RegisterType((*UserIDStatsResponse)(nil), "cortex.UserIDStatsResponse") 1335 proto.RegisterType((*UsersStatsResponse)(nil), "cortex.UsersStatsResponse") 1336 proto.RegisterType((*MetricsForLabelMatchersRequest)(nil), "cortex.MetricsForLabelMatchersRequest") 1337 proto.RegisterType((*MetricsForLabelMatchersResponse)(nil), "cortex.MetricsForLabelMatchersResponse") 1338 proto.RegisterType((*MetricsMetadataRequest)(nil), "cortex.MetricsMetadataRequest") 1339 proto.RegisterType((*MetricsMetadataResponse)(nil), "cortex.MetricsMetadataResponse") 1340 proto.RegisterType((*TimeSeriesChunk)(nil), "cortex.TimeSeriesChunk") 1341 proto.RegisterType((*Chunk)(nil), "cortex.Chunk") 1342 proto.RegisterType((*TransferChunksResponse)(nil), "cortex.TransferChunksResponse") 1343 proto.RegisterType((*LabelMatchers)(nil), "cortex.LabelMatchers") 1344 proto.RegisterType((*LabelMatcher)(nil), "cortex.LabelMatcher") 1345 proto.RegisterType((*TimeSeriesFile)(nil), "cortex.TimeSeriesFile") 1346 } 1347 1348 func init() { proto.RegisterFile("ingester.proto", fileDescriptor_60f6df4f3586b478) } 1349 1350 var fileDescriptor_60f6df4f3586b478 = []byte{ 1351 // 1253 bytes of a gzipped FileDescriptorProto 1352 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6f, 0x13, 0x57, 1353 0x10, 0xdf, 0x17, 0x7f, 0x10, 0x8f, 0x1d, 0xe3, 0xbc, 0x00, 0x31, 0x4b, 0xd9, 0xd0, 0x95, 0x68, 1354 0xad, 0xb6, 0x38, 0x90, 0x7e, 0x08, 0xaa, 0x56, 0xc8, 0x81, 0x00, 0x29, 0x98, 0xc0, 0xc6, 0xb4, 1355 0x55, 0xa5, 0x6a, 0xb5, 0xb6, 0x5f, 0x9c, 0x2d, 0xfb, 0xc5, 0xbe, 0xb7, 0x15, 0xdc, 0x2a, 0xf5, 1356 0x0f, 0x68, 0xd5, 0x53, 0xaf, 0xbd, 0xf5, 0xdc, 0x4b, 0x6f, 0x3d, 0xf5, 0xc0, 0x91, 0x23, 0xea, 1357 0x01, 0x15, 0x73, 0xe9, 0x91, 0xfe, 0x07, 0xd5, 0xbe, 0x7d, 0xbb, 0xde, 0xdd, 0xd8, 0x40, 0x24, 1358 0xd2, 0x9b, 0x77, 0xe6, 0x37, 0xf3, 0x7e, 0x6f, 0x66, 0xde, 0xcc, 0x18, 0xea, 0xa6, 0x33, 0x22, 1359 0x94, 0x11, 0xbf, 0xed, 0xf9, 0x2e, 0x73, 0x71, 0x79, 0xe0, 0xfa, 0x8c, 0xdc, 0x97, 0xcf, 0x8c, 1360 0x4c, 0xb6, 0x1b, 0xf4, 0xdb, 0x03, 0xd7, 0x5e, 0x1d, 0xb9, 0x23, 0x77, 0x95, 0xab, 0xfb, 0xc1, 1361 0x0e, 0xff, 0xe2, 0x1f, 0xfc, 0x57, 0x64, 0x26, 0x5f, 0x48, 0xc1, 0x23, 0x0f, 0x9e, 0xef, 0x7e, 1362 0x43, 0x06, 0x4c, 0x7c, 0xad, 0x7a, 0x77, 0x47, 0xb1, 0xa2, 0x2f, 0x7e, 0x44, 0xa6, 0xea, 0xa7, 1363 0x50, 0xd5, 0x88, 0x31, 0xd4, 0xc8, 0xbd, 0x80, 0x50, 0x86, 0xdb, 0x70, 0xe8, 0x5e, 0x40, 0x7c, 1364 0x93, 0xd0, 0x26, 0x3a, 0x55, 0x68, 0x55, 0xd7, 0x8e, 0xb4, 0x05, 0xfc, 0x76, 0x40, 0xfc, 0x07, 1365 0x02, 0xa6, 0xc5, 0x20, 0xf5, 0x22, 0xd4, 0x22, 0x73, 0xea, 0xb9, 0x0e, 0x25, 0x78, 0x15, 0x0e, 1366 0xf9, 0x84, 0x06, 0x16, 0x8b, 0xed, 0x8f, 0xe6, 0xec, 0x23, 0x9c, 0x16, 0xa3, 0xd4, 0x9f, 0x11, 1367 0xd4, 0xd2, 0xae, 0xf1, 0x7b, 0x80, 0x29, 0x33, 0x7c, 0xa6, 0x33, 0xd3, 0x26, 0x94, 0x19, 0xb6, 1368 0xa7, 0xdb, 0xa1, 0x33, 0xd4, 0x2a, 0x68, 0x0d, 0xae, 0xe9, 0xc5, 0x8a, 0x2e, 0xc5, 0x2d, 0x68, 1369 0x10, 0x67, 0x98, 0xc5, 0xce, 0x71, 0x6c, 0x9d, 0x38, 0xc3, 0x34, 0xf2, 0x2c, 0xcc, 0xdb, 0x06, 1370 0x1b, 0xec, 0x12, 0x9f, 0x36, 0x0b, 0xd9, 0xab, 0xdd, 0x30, 0xfa, 0xc4, 0xea, 0x46, 0x4a, 0x2d, 1371 0x41, 0xa9, 0xbf, 0x20, 0x38, 0xb2, 0x71, 0x9f, 0xd8, 0x9e, 0x65, 0xf8, 0xff, 0x0b, 0xc5, 0x73, 1372 0x7b, 0x28, 0x1e, 0x9d, 0x46, 0x91, 0xa6, 0x38, 0x5e, 0x87, 0x85, 0x4c, 0x60, 0xf1, 0xc7, 0x00, 1373 0xfc, 0xa4, 0x69, 0x39, 0xf4, 0xfa, 0xed, 0xf0, 0xb8, 0x6d, 0xae, 0x5b, 0x2f, 0x3e, 0x7c, 0xb2, 1374 0x22, 0x69, 0x29, 0xb4, 0xfa, 0x13, 0x82, 0x25, 0xee, 0x6d, 0x9b, 0xf9, 0xc4, 0xb0, 0x13, 0x9f, 1375 0x17, 0xa1, 0x3a, 0xd8, 0x0d, 0x9c, 0xbb, 0x19, 0xa7, 0xcb, 0x31, 0xb5, 0x89, 0xcb, 0x4b, 0x21, 1376 0x48, 0xf8, 0x4d, 0x5b, 0xe4, 0x48, 0xcd, 0xed, 0x8b, 0xd4, 0x36, 0x1c, 0xcd, 0x25, 0xe1, 0x35, 1377 0xdc, 0xf4, 0x0f, 0x04, 0x98, 0x87, 0xf4, 0x73, 0xc3, 0x0a, 0x08, 0x8d, 0x13, 0x7b, 0x12, 0xc0, 1378 0x0a, 0xa5, 0xba, 0x63, 0xd8, 0x84, 0x27, 0xb4, 0xa2, 0x55, 0xb8, 0xe4, 0xa6, 0x61, 0x93, 0x19, 1379 0x79, 0x9f, 0xdb, 0x47, 0xde, 0x0b, 0x2f, 0xcd, 0x7b, 0xf1, 0x14, 0x7a, 0x95, 0xbc, 0x9f, 0x87, 1380 0xa5, 0x0c, 0x7f, 0x11, 0x93, 0x37, 0xa1, 0x16, 0x5d, 0xe0, 0x5b, 0x2e, 0xe7, 0x51, 0xa9, 0x68, 1381 0x55, 0x6b, 0x02, 0x55, 0xef, 0xc2, 0xe2, 0x8d, 0xf8, 0x46, 0xf4, 0x80, 0x2b, 0x5a, 0xfd, 0x50, 1382 0x84, 0x59, 0x1c, 0x26, 0x58, 0xae, 0x40, 0x75, 0x12, 0xe6, 0x98, 0x24, 0x24, 0x71, 0xa6, 0x2a, 1383 0x86, 0xc6, 0x1d, 0x4a, 0xfc, 0x6d, 0x66, 0xb0, 0x98, 0xa2, 0xfa, 0x3b, 0x82, 0xc5, 0x94, 0x50, 1384 0xb8, 0x3a, 0x1d, 0xb7, 0x50, 0xd3, 0x75, 0x74, 0xdf, 0x60, 0x51, 0xd6, 0x90, 0xb6, 0x90, 0x48, 1385 0x35, 0x83, 0x91, 0x30, 0xb1, 0x4e, 0x60, 0xeb, 0x49, 0x01, 0xa2, 0x56, 0x51, 0xab, 0x38, 0x81, 1386 0x1d, 0x15, 0x48, 0x78, 0x7d, 0xc3, 0x33, 0xf5, 0x9c, 0xa7, 0x02, 0xf7, 0xd4, 0x30, 0x3c, 0x73, 1387 0x33, 0xe3, 0xac, 0x0d, 0x4b, 0x7e, 0x60, 0x91, 0x3c, 0xbc, 0xc8, 0xe1, 0x8b, 0xa1, 0x2a, 0x83, 1388 0x57, 0xbf, 0x86, 0xa5, 0x90, 0xf8, 0xe6, 0xe5, 0x2c, 0xf5, 0x65, 0x38, 0x14, 0x50, 0xe2, 0xeb, 1389 0xe6, 0x50, 0x54, 0x5a, 0x39, 0xfc, 0xdc, 0x1c, 0xe2, 0x33, 0x50, 0x1c, 0x1a, 0xcc, 0xe0, 0x34, 1390 0xab, 0x6b, 0xc7, 0xe3, 0x52, 0xd8, 0x73, 0x79, 0x8d, 0xc3, 0xd4, 0xab, 0x80, 0x43, 0x15, 0xcd, 1391 0x7a, 0x3f, 0x07, 0x25, 0x1a, 0x0a, 0xc4, 0xc3, 0x38, 0x91, 0xf6, 0x92, 0x63, 0xa2, 0x45, 0x48, 1392 0xf5, 0x37, 0x04, 0x4a, 0x97, 0x30, 0xdf, 0x1c, 0xd0, 0x2b, 0xae, 0x9f, 0xad, 0xbc, 0x03, 0xee, 1393 0x7c, 0xe7, 0xa1, 0x16, 0x97, 0xb6, 0x4e, 0x09, 0x7b, 0x71, 0xf7, 0xab, 0xc6, 0xd0, 0x6d, 0xc2, 1394 0xd4, 0xeb, 0xb0, 0x32, 0x93, 0xb3, 0x08, 0x45, 0x0b, 0xca, 0x36, 0x87, 0x88, 0x58, 0x34, 0x26, 1395 0x4d, 0x22, 0x32, 0xd5, 0x84, 0x5e, 0x6d, 0xc2, 0x31, 0xe1, 0xac, 0x4b, 0x98, 0x11, 0x46, 0x37, 1396 0xae, 0xbe, 0x2d, 0x58, 0xde, 0xa3, 0x11, 0xee, 0x3f, 0x80, 0x79, 0x5b, 0xc8, 0xc4, 0x01, 0xcd, 1397 0xfc, 0x01, 0x89, 0x4d, 0x82, 0x54, 0xff, 0x45, 0x70, 0x38, 0xd7, 0x39, 0xc3, 0x78, 0xed, 0xf8, 1398 0xae, 0xad, 0xc7, 0x4b, 0xc1, 0xa4, 0x34, 0xea, 0xa1, 0x7c, 0x53, 0x88, 0x37, 0x87, 0xe9, 0xda, 1399 0x99, 0xcb, 0xd4, 0x8e, 0x03, 0x65, 0xfe, 0x8e, 0xe2, 0x01, 0xb2, 0x34, 0xa1, 0xc2, 0x83, 0x73, 1400 0xcb, 0x30, 0xfd, 0xf5, 0x4e, 0xd8, 0x0f, 0xff, 0x7a, 0xb2, 0xb2, 0xaf, 0xb5, 0x21, 0xb2, 0xef, 1401 0x0c, 0x0d, 0x8f, 0x11, 0x5f, 0x13, 0xa7, 0xe0, 0x77, 0xa1, 0x1c, 0x35, 0xfa, 0x66, 0x91, 0x9f, 1402 0xb7, 0x10, 0xa7, 0x2c, 0x3d, 0x0b, 0x04, 0x44, 0xfd, 0x01, 0x41, 0x29, 0xba, 0xe9, 0x41, 0xd5, 1403 0x91, 0x0c, 0xf3, 0xc4, 0x19, 0xb8, 0x43, 0xd3, 0x19, 0xf1, 0xe7, 0x5b, 0xd2, 0x92, 0x6f, 0x8c, 1404 0xc5, 0xb3, 0x0a, 0xdf, 0x69, 0x4d, 0xbc, 0x9d, 0x26, 0x1c, 0xeb, 0xf9, 0x86, 0x43, 0x77, 0x88, 1405 0xcf, 0x89, 0x25, 0x45, 0xa3, 0x76, 0x60, 0x21, 0x53, 0x4d, 0x99, 0xfd, 0x01, 0xbd, 0xd2, 0xfe, 1406 0xa0, 0x43, 0x2d, 0xad, 0xc1, 0xa7, 0xa1, 0xc8, 0x1e, 0x78, 0x51, 0x87, 0xaa, 0xaf, 0x2d, 0xc6, 1407 0xd6, 0x5c, 0xdd, 0x7b, 0xe0, 0x11, 0x8d, 0xab, 0x43, 0x9e, 0x7c, 0xfc, 0x44, 0x89, 0xe5, 0xbf, 1408 0xf1, 0x11, 0x28, 0xf1, 0x8e, 0xce, 0x2f, 0x55, 0xd1, 0xa2, 0x0f, 0xf5, 0x7b, 0x04, 0xf5, 0x49, 1409 0x0d, 0x5d, 0x31, 0x2d, 0xf2, 0x3a, 0x4a, 0x48, 0x86, 0xf9, 0x1d, 0xd3, 0x22, 0x9c, 0x43, 0x74, 1410 0x5c, 0xf2, 0x3d, 0x2d, 0x86, 0xef, 0x7c, 0x06, 0x95, 0xe4, 0x0a, 0xb8, 0x02, 0xa5, 0x8d, 0xdb, 1411 0x77, 0x3a, 0x37, 0x1a, 0x12, 0x5e, 0x80, 0xca, 0xcd, 0xad, 0x9e, 0x1e, 0x7d, 0x22, 0x7c, 0x18, 1412 0xaa, 0xda, 0xc6, 0xd5, 0x8d, 0x2f, 0xf5, 0x6e, 0xa7, 0x77, 0xe9, 0x5a, 0x63, 0x0e, 0x63, 0xa8, 1413 0x47, 0x82, 0x9b, 0x5b, 0x42, 0x56, 0x58, 0xfb, 0xb3, 0x0c, 0xf3, 0x31, 0x47, 0x7c, 0x01, 0x8a, 1414 0xb7, 0x02, 0xba, 0x8b, 0x8f, 0x4d, 0x6a, 0xf8, 0x0b, 0xdf, 0x64, 0x44, 0xbc, 0x49, 0x79, 0x79, 1415 0x8f, 0x5c, 0xe4, 0x4e, 0xc2, 0x1f, 0x41, 0x89, 0x2f, 0x0b, 0x78, 0xea, 0xfa, 0x2a, 0x4f, 0x5f, 1416 0x4a, 0x55, 0x09, 0x5f, 0x86, 0x6a, 0x6a, 0x01, 0x9a, 0x61, 0x7d, 0x22, 0x23, 0xcd, 0xee, 0x4a, 1417 0xaa, 0x74, 0x16, 0xe1, 0x2d, 0xa8, 0x73, 0x55, 0xbc, 0xb7, 0x50, 0xfc, 0x46, 0x6c, 0x32, 0x6d, 1418 0x9f, 0x94, 0x4f, 0xce, 0xd0, 0x26, 0xb4, 0xae, 0x41, 0x35, 0x35, 0xed, 0xb1, 0x9c, 0x29, 0xbc, 1419 0xcc, 0x0a, 0x33, 0x21, 0x37, 0x65, 0x3d, 0x50, 0x25, 0xbc, 0x01, 0x30, 0x19, 0xc8, 0xf8, 0x78, 1420 0x06, 0x9c, 0xde, 0x08, 0x64, 0x79, 0x9a, 0x2a, 0x71, 0xb3, 0x0e, 0x95, 0x64, 0x1c, 0xe1, 0xe6, 1421 0x94, 0x09, 0x15, 0x39, 0x99, 0x3d, 0xbb, 0x54, 0x09, 0x5f, 0x81, 0x5a, 0xc7, 0xb2, 0x5e, 0xc5, 1422 0x8d, 0x9c, 0xd6, 0xd0, 0xbc, 0x1f, 0x2b, 0x69, 0xcd, 0xf9, 0x09, 0x80, 0xdf, 0x4a, 0xde, 0xd8, 1423 0x0b, 0xc7, 0x9a, 0xfc, 0xf6, 0x4b, 0x71, 0xc9, 0x69, 0x3d, 0x38, 0x9c, 0x1b, 0x04, 0x58, 0xc9, 1424 0x59, 0xe7, 0x66, 0x87, 0xbc, 0x32, 0x53, 0x9f, 0x78, 0xed, 0x42, 0x3d, 0xdb, 0x87, 0xf0, 0xac, 1425 0xf5, 0x5a, 0x4e, 0x4e, 0x9b, 0xd1, 0xb8, 0xa4, 0x16, 0x5a, 0xff, 0xe4, 0xd1, 0x53, 0x45, 0x7a, 1426 0xfc, 0x54, 0x91, 0x9e, 0x3f, 0x55, 0xd0, 0x77, 0x63, 0x05, 0xfd, 0x3a, 0x56, 0xd0, 0xc3, 0xb1, 1427 0x82, 0x1e, 0x8d, 0x15, 0xf4, 0xf7, 0x58, 0x41, 0xff, 0x8c, 0x15, 0xe9, 0xf9, 0x58, 0x41, 0x3f, 1428 0x3e, 0x53, 0xa4, 0x47, 0xcf, 0x14, 0xe9, 0xf1, 0x33, 0x45, 0xfa, 0xaa, 0x3c, 0xb0, 0x4c, 0xe2, 1429 0xb0, 0x7e, 0x99, 0xff, 0x33, 0x7c, 0xff, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x4f, 0x5c, 1430 0xe0, 0x9d, 0x0e, 0x00, 0x00, 1431 } 1432 1433 func (x MatchType) String() string { 1434 s, ok := MatchType_name[int32(x)] 1435 if ok { 1436 return s 1437 } 1438 return strconv.Itoa(int(x)) 1439 } 1440 func (this *ReadRequest) Equal(that interface{}) bool { 1441 if that == nil { 1442 return this == nil 1443 } 1444 1445 that1, ok := that.(*ReadRequest) 1446 if !ok { 1447 that2, ok := that.(ReadRequest) 1448 if ok { 1449 that1 = &that2 1450 } else { 1451 return false 1452 } 1453 } 1454 if that1 == nil { 1455 return this == nil 1456 } else if this == nil { 1457 return false 1458 } 1459 if len(this.Queries) != len(that1.Queries) { 1460 return false 1461 } 1462 for i := range this.Queries { 1463 if !this.Queries[i].Equal(that1.Queries[i]) { 1464 return false 1465 } 1466 } 1467 return true 1468 } 1469 func (this *ReadResponse) Equal(that interface{}) bool { 1470 if that == nil { 1471 return this == nil 1472 } 1473 1474 that1, ok := that.(*ReadResponse) 1475 if !ok { 1476 that2, ok := that.(ReadResponse) 1477 if ok { 1478 that1 = &that2 1479 } else { 1480 return false 1481 } 1482 } 1483 if that1 == nil { 1484 return this == nil 1485 } else if this == nil { 1486 return false 1487 } 1488 if len(this.Results) != len(that1.Results) { 1489 return false 1490 } 1491 for i := range this.Results { 1492 if !this.Results[i].Equal(that1.Results[i]) { 1493 return false 1494 } 1495 } 1496 return true 1497 } 1498 func (this *QueryRequest) Equal(that interface{}) bool { 1499 if that == nil { 1500 return this == nil 1501 } 1502 1503 that1, ok := that.(*QueryRequest) 1504 if !ok { 1505 that2, ok := that.(QueryRequest) 1506 if ok { 1507 that1 = &that2 1508 } else { 1509 return false 1510 } 1511 } 1512 if that1 == nil { 1513 return this == nil 1514 } else if this == nil { 1515 return false 1516 } 1517 if this.StartTimestampMs != that1.StartTimestampMs { 1518 return false 1519 } 1520 if this.EndTimestampMs != that1.EndTimestampMs { 1521 return false 1522 } 1523 if len(this.Matchers) != len(that1.Matchers) { 1524 return false 1525 } 1526 for i := range this.Matchers { 1527 if !this.Matchers[i].Equal(that1.Matchers[i]) { 1528 return false 1529 } 1530 } 1531 return true 1532 } 1533 func (this *ExemplarQueryRequest) Equal(that interface{}) bool { 1534 if that == nil { 1535 return this == nil 1536 } 1537 1538 that1, ok := that.(*ExemplarQueryRequest) 1539 if !ok { 1540 that2, ok := that.(ExemplarQueryRequest) 1541 if ok { 1542 that1 = &that2 1543 } else { 1544 return false 1545 } 1546 } 1547 if that1 == nil { 1548 return this == nil 1549 } else if this == nil { 1550 return false 1551 } 1552 if this.StartTimestampMs != that1.StartTimestampMs { 1553 return false 1554 } 1555 if this.EndTimestampMs != that1.EndTimestampMs { 1556 return false 1557 } 1558 if len(this.Matchers) != len(that1.Matchers) { 1559 return false 1560 } 1561 for i := range this.Matchers { 1562 if !this.Matchers[i].Equal(that1.Matchers[i]) { 1563 return false 1564 } 1565 } 1566 return true 1567 } 1568 func (this *QueryResponse) Equal(that interface{}) bool { 1569 if that == nil { 1570 return this == nil 1571 } 1572 1573 that1, ok := that.(*QueryResponse) 1574 if !ok { 1575 that2, ok := that.(QueryResponse) 1576 if ok { 1577 that1 = &that2 1578 } else { 1579 return false 1580 } 1581 } 1582 if that1 == nil { 1583 return this == nil 1584 } else if this == nil { 1585 return false 1586 } 1587 if len(this.Timeseries) != len(that1.Timeseries) { 1588 return false 1589 } 1590 for i := range this.Timeseries { 1591 if !this.Timeseries[i].Equal(&that1.Timeseries[i]) { 1592 return false 1593 } 1594 } 1595 return true 1596 } 1597 func (this *QueryStreamResponse) Equal(that interface{}) bool { 1598 if that == nil { 1599 return this == nil 1600 } 1601 1602 that1, ok := that.(*QueryStreamResponse) 1603 if !ok { 1604 that2, ok := that.(QueryStreamResponse) 1605 if ok { 1606 that1 = &that2 1607 } else { 1608 return false 1609 } 1610 } 1611 if that1 == nil { 1612 return this == nil 1613 } else if this == nil { 1614 return false 1615 } 1616 if len(this.Chunkseries) != len(that1.Chunkseries) { 1617 return false 1618 } 1619 for i := range this.Chunkseries { 1620 if !this.Chunkseries[i].Equal(&that1.Chunkseries[i]) { 1621 return false 1622 } 1623 } 1624 if len(this.Timeseries) != len(that1.Timeseries) { 1625 return false 1626 } 1627 for i := range this.Timeseries { 1628 if !this.Timeseries[i].Equal(&that1.Timeseries[i]) { 1629 return false 1630 } 1631 } 1632 return true 1633 } 1634 func (this *ExemplarQueryResponse) Equal(that interface{}) bool { 1635 if that == nil { 1636 return this == nil 1637 } 1638 1639 that1, ok := that.(*ExemplarQueryResponse) 1640 if !ok { 1641 that2, ok := that.(ExemplarQueryResponse) 1642 if ok { 1643 that1 = &that2 1644 } else { 1645 return false 1646 } 1647 } 1648 if that1 == nil { 1649 return this == nil 1650 } else if this == nil { 1651 return false 1652 } 1653 if len(this.Timeseries) != len(that1.Timeseries) { 1654 return false 1655 } 1656 for i := range this.Timeseries { 1657 if !this.Timeseries[i].Equal(&that1.Timeseries[i]) { 1658 return false 1659 } 1660 } 1661 return true 1662 } 1663 func (this *LabelValuesRequest) Equal(that interface{}) bool { 1664 if that == nil { 1665 return this == nil 1666 } 1667 1668 that1, ok := that.(*LabelValuesRequest) 1669 if !ok { 1670 that2, ok := that.(LabelValuesRequest) 1671 if ok { 1672 that1 = &that2 1673 } else { 1674 return false 1675 } 1676 } 1677 if that1 == nil { 1678 return this == nil 1679 } else if this == nil { 1680 return false 1681 } 1682 if this.LabelName != that1.LabelName { 1683 return false 1684 } 1685 if this.StartTimestampMs != that1.StartTimestampMs { 1686 return false 1687 } 1688 if this.EndTimestampMs != that1.EndTimestampMs { 1689 return false 1690 } 1691 if !this.Matchers.Equal(that1.Matchers) { 1692 return false 1693 } 1694 return true 1695 } 1696 func (this *LabelValuesResponse) Equal(that interface{}) bool { 1697 if that == nil { 1698 return this == nil 1699 } 1700 1701 that1, ok := that.(*LabelValuesResponse) 1702 if !ok { 1703 that2, ok := that.(LabelValuesResponse) 1704 if ok { 1705 that1 = &that2 1706 } else { 1707 return false 1708 } 1709 } 1710 if that1 == nil { 1711 return this == nil 1712 } else if this == nil { 1713 return false 1714 } 1715 if len(this.LabelValues) != len(that1.LabelValues) { 1716 return false 1717 } 1718 for i := range this.LabelValues { 1719 if this.LabelValues[i] != that1.LabelValues[i] { 1720 return false 1721 } 1722 } 1723 return true 1724 } 1725 func (this *LabelNamesRequest) Equal(that interface{}) bool { 1726 if that == nil { 1727 return this == nil 1728 } 1729 1730 that1, ok := that.(*LabelNamesRequest) 1731 if !ok { 1732 that2, ok := that.(LabelNamesRequest) 1733 if ok { 1734 that1 = &that2 1735 } else { 1736 return false 1737 } 1738 } 1739 if that1 == nil { 1740 return this == nil 1741 } else if this == nil { 1742 return false 1743 } 1744 if this.StartTimestampMs != that1.StartTimestampMs { 1745 return false 1746 } 1747 if this.EndTimestampMs != that1.EndTimestampMs { 1748 return false 1749 } 1750 return true 1751 } 1752 func (this *LabelNamesResponse) Equal(that interface{}) bool { 1753 if that == nil { 1754 return this == nil 1755 } 1756 1757 that1, ok := that.(*LabelNamesResponse) 1758 if !ok { 1759 that2, ok := that.(LabelNamesResponse) 1760 if ok { 1761 that1 = &that2 1762 } else { 1763 return false 1764 } 1765 } 1766 if that1 == nil { 1767 return this == nil 1768 } else if this == nil { 1769 return false 1770 } 1771 if len(this.LabelNames) != len(that1.LabelNames) { 1772 return false 1773 } 1774 for i := range this.LabelNames { 1775 if this.LabelNames[i] != that1.LabelNames[i] { 1776 return false 1777 } 1778 } 1779 return true 1780 } 1781 func (this *UserStatsRequest) Equal(that interface{}) bool { 1782 if that == nil { 1783 return this == nil 1784 } 1785 1786 that1, ok := that.(*UserStatsRequest) 1787 if !ok { 1788 that2, ok := that.(UserStatsRequest) 1789 if ok { 1790 that1 = &that2 1791 } else { 1792 return false 1793 } 1794 } 1795 if that1 == nil { 1796 return this == nil 1797 } else if this == nil { 1798 return false 1799 } 1800 return true 1801 } 1802 func (this *UserStatsResponse) Equal(that interface{}) bool { 1803 if that == nil { 1804 return this == nil 1805 } 1806 1807 that1, ok := that.(*UserStatsResponse) 1808 if !ok { 1809 that2, ok := that.(UserStatsResponse) 1810 if ok { 1811 that1 = &that2 1812 } else { 1813 return false 1814 } 1815 } 1816 if that1 == nil { 1817 return this == nil 1818 } else if this == nil { 1819 return false 1820 } 1821 if this.IngestionRate != that1.IngestionRate { 1822 return false 1823 } 1824 if this.NumSeries != that1.NumSeries { 1825 return false 1826 } 1827 if this.ApiIngestionRate != that1.ApiIngestionRate { 1828 return false 1829 } 1830 if this.RuleIngestionRate != that1.RuleIngestionRate { 1831 return false 1832 } 1833 return true 1834 } 1835 func (this *UserIDStatsResponse) Equal(that interface{}) bool { 1836 if that == nil { 1837 return this == nil 1838 } 1839 1840 that1, ok := that.(*UserIDStatsResponse) 1841 if !ok { 1842 that2, ok := that.(UserIDStatsResponse) 1843 if ok { 1844 that1 = &that2 1845 } else { 1846 return false 1847 } 1848 } 1849 if that1 == nil { 1850 return this == nil 1851 } else if this == nil { 1852 return false 1853 } 1854 if this.UserId != that1.UserId { 1855 return false 1856 } 1857 if !this.Data.Equal(that1.Data) { 1858 return false 1859 } 1860 return true 1861 } 1862 func (this *UsersStatsResponse) Equal(that interface{}) bool { 1863 if that == nil { 1864 return this == nil 1865 } 1866 1867 that1, ok := that.(*UsersStatsResponse) 1868 if !ok { 1869 that2, ok := that.(UsersStatsResponse) 1870 if ok { 1871 that1 = &that2 1872 } else { 1873 return false 1874 } 1875 } 1876 if that1 == nil { 1877 return this == nil 1878 } else if this == nil { 1879 return false 1880 } 1881 if len(this.Stats) != len(that1.Stats) { 1882 return false 1883 } 1884 for i := range this.Stats { 1885 if !this.Stats[i].Equal(that1.Stats[i]) { 1886 return false 1887 } 1888 } 1889 return true 1890 } 1891 func (this *MetricsForLabelMatchersRequest) Equal(that interface{}) bool { 1892 if that == nil { 1893 return this == nil 1894 } 1895 1896 that1, ok := that.(*MetricsForLabelMatchersRequest) 1897 if !ok { 1898 that2, ok := that.(MetricsForLabelMatchersRequest) 1899 if ok { 1900 that1 = &that2 1901 } else { 1902 return false 1903 } 1904 } 1905 if that1 == nil { 1906 return this == nil 1907 } else if this == nil { 1908 return false 1909 } 1910 if this.StartTimestampMs != that1.StartTimestampMs { 1911 return false 1912 } 1913 if this.EndTimestampMs != that1.EndTimestampMs { 1914 return false 1915 } 1916 if len(this.MatchersSet) != len(that1.MatchersSet) { 1917 return false 1918 } 1919 for i := range this.MatchersSet { 1920 if !this.MatchersSet[i].Equal(that1.MatchersSet[i]) { 1921 return false 1922 } 1923 } 1924 return true 1925 } 1926 func (this *MetricsForLabelMatchersResponse) Equal(that interface{}) bool { 1927 if that == nil { 1928 return this == nil 1929 } 1930 1931 that1, ok := that.(*MetricsForLabelMatchersResponse) 1932 if !ok { 1933 that2, ok := that.(MetricsForLabelMatchersResponse) 1934 if ok { 1935 that1 = &that2 1936 } else { 1937 return false 1938 } 1939 } 1940 if that1 == nil { 1941 return this == nil 1942 } else if this == nil { 1943 return false 1944 } 1945 if len(this.Metric) != len(that1.Metric) { 1946 return false 1947 } 1948 for i := range this.Metric { 1949 if !this.Metric[i].Equal(that1.Metric[i]) { 1950 return false 1951 } 1952 } 1953 return true 1954 } 1955 func (this *MetricsMetadataRequest) Equal(that interface{}) bool { 1956 if that == nil { 1957 return this == nil 1958 } 1959 1960 that1, ok := that.(*MetricsMetadataRequest) 1961 if !ok { 1962 that2, ok := that.(MetricsMetadataRequest) 1963 if ok { 1964 that1 = &that2 1965 } else { 1966 return false 1967 } 1968 } 1969 if that1 == nil { 1970 return this == nil 1971 } else if this == nil { 1972 return false 1973 } 1974 return true 1975 } 1976 func (this *MetricsMetadataResponse) Equal(that interface{}) bool { 1977 if that == nil { 1978 return this == nil 1979 } 1980 1981 that1, ok := that.(*MetricsMetadataResponse) 1982 if !ok { 1983 that2, ok := that.(MetricsMetadataResponse) 1984 if ok { 1985 that1 = &that2 1986 } else { 1987 return false 1988 } 1989 } 1990 if that1 == nil { 1991 return this == nil 1992 } else if this == nil { 1993 return false 1994 } 1995 if len(this.Metadata) != len(that1.Metadata) { 1996 return false 1997 } 1998 for i := range this.Metadata { 1999 if !this.Metadata[i].Equal(that1.Metadata[i]) { 2000 return false 2001 } 2002 } 2003 return true 2004 } 2005 func (this *TimeSeriesChunk) Equal(that interface{}) bool { 2006 if that == nil { 2007 return this == nil 2008 } 2009 2010 that1, ok := that.(*TimeSeriesChunk) 2011 if !ok { 2012 that2, ok := that.(TimeSeriesChunk) 2013 if ok { 2014 that1 = &that2 2015 } else { 2016 return false 2017 } 2018 } 2019 if that1 == nil { 2020 return this == nil 2021 } else if this == nil { 2022 return false 2023 } 2024 if this.FromIngesterId != that1.FromIngesterId { 2025 return false 2026 } 2027 if this.UserId != that1.UserId { 2028 return false 2029 } 2030 if len(this.Labels) != len(that1.Labels) { 2031 return false 2032 } 2033 for i := range this.Labels { 2034 if !this.Labels[i].Equal(that1.Labels[i]) { 2035 return false 2036 } 2037 } 2038 if len(this.Chunks) != len(that1.Chunks) { 2039 return false 2040 } 2041 for i := range this.Chunks { 2042 if !this.Chunks[i].Equal(&that1.Chunks[i]) { 2043 return false 2044 } 2045 } 2046 return true 2047 } 2048 func (this *Chunk) Equal(that interface{}) bool { 2049 if that == nil { 2050 return this == nil 2051 } 2052 2053 that1, ok := that.(*Chunk) 2054 if !ok { 2055 that2, ok := that.(Chunk) 2056 if ok { 2057 that1 = &that2 2058 } else { 2059 return false 2060 } 2061 } 2062 if that1 == nil { 2063 return this == nil 2064 } else if this == nil { 2065 return false 2066 } 2067 if this.StartTimestampMs != that1.StartTimestampMs { 2068 return false 2069 } 2070 if this.EndTimestampMs != that1.EndTimestampMs { 2071 return false 2072 } 2073 if this.Encoding != that1.Encoding { 2074 return false 2075 } 2076 if !bytes.Equal(this.Data, that1.Data) { 2077 return false 2078 } 2079 return true 2080 } 2081 func (this *TransferChunksResponse) Equal(that interface{}) bool { 2082 if that == nil { 2083 return this == nil 2084 } 2085 2086 that1, ok := that.(*TransferChunksResponse) 2087 if !ok { 2088 that2, ok := that.(TransferChunksResponse) 2089 if ok { 2090 that1 = &that2 2091 } else { 2092 return false 2093 } 2094 } 2095 if that1 == nil { 2096 return this == nil 2097 } else if this == nil { 2098 return false 2099 } 2100 return true 2101 } 2102 func (this *LabelMatchers) Equal(that interface{}) bool { 2103 if that == nil { 2104 return this == nil 2105 } 2106 2107 that1, ok := that.(*LabelMatchers) 2108 if !ok { 2109 that2, ok := that.(LabelMatchers) 2110 if ok { 2111 that1 = &that2 2112 } else { 2113 return false 2114 } 2115 } 2116 if that1 == nil { 2117 return this == nil 2118 } else if this == nil { 2119 return false 2120 } 2121 if len(this.Matchers) != len(that1.Matchers) { 2122 return false 2123 } 2124 for i := range this.Matchers { 2125 if !this.Matchers[i].Equal(that1.Matchers[i]) { 2126 return false 2127 } 2128 } 2129 return true 2130 } 2131 func (this *LabelMatcher) Equal(that interface{}) bool { 2132 if that == nil { 2133 return this == nil 2134 } 2135 2136 that1, ok := that.(*LabelMatcher) 2137 if !ok { 2138 that2, ok := that.(LabelMatcher) 2139 if ok { 2140 that1 = &that2 2141 } else { 2142 return false 2143 } 2144 } 2145 if that1 == nil { 2146 return this == nil 2147 } else if this == nil { 2148 return false 2149 } 2150 if this.Type != that1.Type { 2151 return false 2152 } 2153 if this.Name != that1.Name { 2154 return false 2155 } 2156 if this.Value != that1.Value { 2157 return false 2158 } 2159 return true 2160 } 2161 func (this *TimeSeriesFile) Equal(that interface{}) bool { 2162 if that == nil { 2163 return this == nil 2164 } 2165 2166 that1, ok := that.(*TimeSeriesFile) 2167 if !ok { 2168 that2, ok := that.(TimeSeriesFile) 2169 if ok { 2170 that1 = &that2 2171 } else { 2172 return false 2173 } 2174 } 2175 if that1 == nil { 2176 return this == nil 2177 } else if this == nil { 2178 return false 2179 } 2180 if this.FromIngesterId != that1.FromIngesterId { 2181 return false 2182 } 2183 if this.UserId != that1.UserId { 2184 return false 2185 } 2186 if this.Filename != that1.Filename { 2187 return false 2188 } 2189 if !bytes.Equal(this.Data, that1.Data) { 2190 return false 2191 } 2192 return true 2193 } 2194 func (this *ReadRequest) GoString() string { 2195 if this == nil { 2196 return "nil" 2197 } 2198 s := make([]string, 0, 5) 2199 s = append(s, "&client.ReadRequest{") 2200 if this.Queries != nil { 2201 s = append(s, "Queries: "+fmt.Sprintf("%#v", this.Queries)+",\n") 2202 } 2203 s = append(s, "}") 2204 return strings.Join(s, "") 2205 } 2206 func (this *ReadResponse) GoString() string { 2207 if this == nil { 2208 return "nil" 2209 } 2210 s := make([]string, 0, 5) 2211 s = append(s, "&client.ReadResponse{") 2212 if this.Results != nil { 2213 s = append(s, "Results: "+fmt.Sprintf("%#v", this.Results)+",\n") 2214 } 2215 s = append(s, "}") 2216 return strings.Join(s, "") 2217 } 2218 func (this *QueryRequest) GoString() string { 2219 if this == nil { 2220 return "nil" 2221 } 2222 s := make([]string, 0, 7) 2223 s = append(s, "&client.QueryRequest{") 2224 s = append(s, "StartTimestampMs: "+fmt.Sprintf("%#v", this.StartTimestampMs)+",\n") 2225 s = append(s, "EndTimestampMs: "+fmt.Sprintf("%#v", this.EndTimestampMs)+",\n") 2226 if this.Matchers != nil { 2227 s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n") 2228 } 2229 s = append(s, "}") 2230 return strings.Join(s, "") 2231 } 2232 func (this *ExemplarQueryRequest) GoString() string { 2233 if this == nil { 2234 return "nil" 2235 } 2236 s := make([]string, 0, 7) 2237 s = append(s, "&client.ExemplarQueryRequest{") 2238 s = append(s, "StartTimestampMs: "+fmt.Sprintf("%#v", this.StartTimestampMs)+",\n") 2239 s = append(s, "EndTimestampMs: "+fmt.Sprintf("%#v", this.EndTimestampMs)+",\n") 2240 if this.Matchers != nil { 2241 s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n") 2242 } 2243 s = append(s, "}") 2244 return strings.Join(s, "") 2245 } 2246 func (this *QueryResponse) GoString() string { 2247 if this == nil { 2248 return "nil" 2249 } 2250 s := make([]string, 0, 5) 2251 s = append(s, "&client.QueryResponse{") 2252 if this.Timeseries != nil { 2253 vs := make([]*cortexpb.TimeSeries, len(this.Timeseries)) 2254 for i := range vs { 2255 vs[i] = &this.Timeseries[i] 2256 } 2257 s = append(s, "Timeseries: "+fmt.Sprintf("%#v", vs)+",\n") 2258 } 2259 s = append(s, "}") 2260 return strings.Join(s, "") 2261 } 2262 func (this *QueryStreamResponse) GoString() string { 2263 if this == nil { 2264 return "nil" 2265 } 2266 s := make([]string, 0, 6) 2267 s = append(s, "&client.QueryStreamResponse{") 2268 if this.Chunkseries != nil { 2269 vs := make([]*TimeSeriesChunk, len(this.Chunkseries)) 2270 for i := range vs { 2271 vs[i] = &this.Chunkseries[i] 2272 } 2273 s = append(s, "Chunkseries: "+fmt.Sprintf("%#v", vs)+",\n") 2274 } 2275 if this.Timeseries != nil { 2276 vs := make([]*cortexpb.TimeSeries, len(this.Timeseries)) 2277 for i := range vs { 2278 vs[i] = &this.Timeseries[i] 2279 } 2280 s = append(s, "Timeseries: "+fmt.Sprintf("%#v", vs)+",\n") 2281 } 2282 s = append(s, "}") 2283 return strings.Join(s, "") 2284 } 2285 func (this *ExemplarQueryResponse) GoString() string { 2286 if this == nil { 2287 return "nil" 2288 } 2289 s := make([]string, 0, 5) 2290 s = append(s, "&client.ExemplarQueryResponse{") 2291 if this.Timeseries != nil { 2292 vs := make([]*cortexpb.TimeSeries, len(this.Timeseries)) 2293 for i := range vs { 2294 vs[i] = &this.Timeseries[i] 2295 } 2296 s = append(s, "Timeseries: "+fmt.Sprintf("%#v", vs)+",\n") 2297 } 2298 s = append(s, "}") 2299 return strings.Join(s, "") 2300 } 2301 func (this *LabelValuesRequest) GoString() string { 2302 if this == nil { 2303 return "nil" 2304 } 2305 s := make([]string, 0, 8) 2306 s = append(s, "&client.LabelValuesRequest{") 2307 s = append(s, "LabelName: "+fmt.Sprintf("%#v", this.LabelName)+",\n") 2308 s = append(s, "StartTimestampMs: "+fmt.Sprintf("%#v", this.StartTimestampMs)+",\n") 2309 s = append(s, "EndTimestampMs: "+fmt.Sprintf("%#v", this.EndTimestampMs)+",\n") 2310 if this.Matchers != nil { 2311 s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n") 2312 } 2313 s = append(s, "}") 2314 return strings.Join(s, "") 2315 } 2316 func (this *LabelValuesResponse) GoString() string { 2317 if this == nil { 2318 return "nil" 2319 } 2320 s := make([]string, 0, 5) 2321 s = append(s, "&client.LabelValuesResponse{") 2322 s = append(s, "LabelValues: "+fmt.Sprintf("%#v", this.LabelValues)+",\n") 2323 s = append(s, "}") 2324 return strings.Join(s, "") 2325 } 2326 func (this *LabelNamesRequest) GoString() string { 2327 if this == nil { 2328 return "nil" 2329 } 2330 s := make([]string, 0, 6) 2331 s = append(s, "&client.LabelNamesRequest{") 2332 s = append(s, "StartTimestampMs: "+fmt.Sprintf("%#v", this.StartTimestampMs)+",\n") 2333 s = append(s, "EndTimestampMs: "+fmt.Sprintf("%#v", this.EndTimestampMs)+",\n") 2334 s = append(s, "}") 2335 return strings.Join(s, "") 2336 } 2337 func (this *LabelNamesResponse) GoString() string { 2338 if this == nil { 2339 return "nil" 2340 } 2341 s := make([]string, 0, 5) 2342 s = append(s, "&client.LabelNamesResponse{") 2343 s = append(s, "LabelNames: "+fmt.Sprintf("%#v", this.LabelNames)+",\n") 2344 s = append(s, "}") 2345 return strings.Join(s, "") 2346 } 2347 func (this *UserStatsRequest) GoString() string { 2348 if this == nil { 2349 return "nil" 2350 } 2351 s := make([]string, 0, 4) 2352 s = append(s, "&client.UserStatsRequest{") 2353 s = append(s, "}") 2354 return strings.Join(s, "") 2355 } 2356 func (this *UserStatsResponse) GoString() string { 2357 if this == nil { 2358 return "nil" 2359 } 2360 s := make([]string, 0, 8) 2361 s = append(s, "&client.UserStatsResponse{") 2362 s = append(s, "IngestionRate: "+fmt.Sprintf("%#v", this.IngestionRate)+",\n") 2363 s = append(s, "NumSeries: "+fmt.Sprintf("%#v", this.NumSeries)+",\n") 2364 s = append(s, "ApiIngestionRate: "+fmt.Sprintf("%#v", this.ApiIngestionRate)+",\n") 2365 s = append(s, "RuleIngestionRate: "+fmt.Sprintf("%#v", this.RuleIngestionRate)+",\n") 2366 s = append(s, "}") 2367 return strings.Join(s, "") 2368 } 2369 func (this *UserIDStatsResponse) GoString() string { 2370 if this == nil { 2371 return "nil" 2372 } 2373 s := make([]string, 0, 6) 2374 s = append(s, "&client.UserIDStatsResponse{") 2375 s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") 2376 if this.Data != nil { 2377 s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") 2378 } 2379 s = append(s, "}") 2380 return strings.Join(s, "") 2381 } 2382 func (this *UsersStatsResponse) GoString() string { 2383 if this == nil { 2384 return "nil" 2385 } 2386 s := make([]string, 0, 5) 2387 s = append(s, "&client.UsersStatsResponse{") 2388 if this.Stats != nil { 2389 s = append(s, "Stats: "+fmt.Sprintf("%#v", this.Stats)+",\n") 2390 } 2391 s = append(s, "}") 2392 return strings.Join(s, "") 2393 } 2394 func (this *MetricsForLabelMatchersRequest) GoString() string { 2395 if this == nil { 2396 return "nil" 2397 } 2398 s := make([]string, 0, 7) 2399 s = append(s, "&client.MetricsForLabelMatchersRequest{") 2400 s = append(s, "StartTimestampMs: "+fmt.Sprintf("%#v", this.StartTimestampMs)+",\n") 2401 s = append(s, "EndTimestampMs: "+fmt.Sprintf("%#v", this.EndTimestampMs)+",\n") 2402 if this.MatchersSet != nil { 2403 s = append(s, "MatchersSet: "+fmt.Sprintf("%#v", this.MatchersSet)+",\n") 2404 } 2405 s = append(s, "}") 2406 return strings.Join(s, "") 2407 } 2408 func (this *MetricsForLabelMatchersResponse) GoString() string { 2409 if this == nil { 2410 return "nil" 2411 } 2412 s := make([]string, 0, 5) 2413 s = append(s, "&client.MetricsForLabelMatchersResponse{") 2414 if this.Metric != nil { 2415 s = append(s, "Metric: "+fmt.Sprintf("%#v", this.Metric)+",\n") 2416 } 2417 s = append(s, "}") 2418 return strings.Join(s, "") 2419 } 2420 func (this *MetricsMetadataRequest) GoString() string { 2421 if this == nil { 2422 return "nil" 2423 } 2424 s := make([]string, 0, 4) 2425 s = append(s, "&client.MetricsMetadataRequest{") 2426 s = append(s, "}") 2427 return strings.Join(s, "") 2428 } 2429 func (this *MetricsMetadataResponse) GoString() string { 2430 if this == nil { 2431 return "nil" 2432 } 2433 s := make([]string, 0, 5) 2434 s = append(s, "&client.MetricsMetadataResponse{") 2435 if this.Metadata != nil { 2436 s = append(s, "Metadata: "+fmt.Sprintf("%#v", this.Metadata)+",\n") 2437 } 2438 s = append(s, "}") 2439 return strings.Join(s, "") 2440 } 2441 func (this *TimeSeriesChunk) GoString() string { 2442 if this == nil { 2443 return "nil" 2444 } 2445 s := make([]string, 0, 8) 2446 s = append(s, "&client.TimeSeriesChunk{") 2447 s = append(s, "FromIngesterId: "+fmt.Sprintf("%#v", this.FromIngesterId)+",\n") 2448 s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") 2449 s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") 2450 if this.Chunks != nil { 2451 vs := make([]*Chunk, len(this.Chunks)) 2452 for i := range vs { 2453 vs[i] = &this.Chunks[i] 2454 } 2455 s = append(s, "Chunks: "+fmt.Sprintf("%#v", vs)+",\n") 2456 } 2457 s = append(s, "}") 2458 return strings.Join(s, "") 2459 } 2460 func (this *Chunk) GoString() string { 2461 if this == nil { 2462 return "nil" 2463 } 2464 s := make([]string, 0, 8) 2465 s = append(s, "&client.Chunk{") 2466 s = append(s, "StartTimestampMs: "+fmt.Sprintf("%#v", this.StartTimestampMs)+",\n") 2467 s = append(s, "EndTimestampMs: "+fmt.Sprintf("%#v", this.EndTimestampMs)+",\n") 2468 s = append(s, "Encoding: "+fmt.Sprintf("%#v", this.Encoding)+",\n") 2469 s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") 2470 s = append(s, "}") 2471 return strings.Join(s, "") 2472 } 2473 func (this *TransferChunksResponse) GoString() string { 2474 if this == nil { 2475 return "nil" 2476 } 2477 s := make([]string, 0, 4) 2478 s = append(s, "&client.TransferChunksResponse{") 2479 s = append(s, "}") 2480 return strings.Join(s, "") 2481 } 2482 func (this *LabelMatchers) GoString() string { 2483 if this == nil { 2484 return "nil" 2485 } 2486 s := make([]string, 0, 5) 2487 s = append(s, "&client.LabelMatchers{") 2488 if this.Matchers != nil { 2489 s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n") 2490 } 2491 s = append(s, "}") 2492 return strings.Join(s, "") 2493 } 2494 func (this *LabelMatcher) GoString() string { 2495 if this == nil { 2496 return "nil" 2497 } 2498 s := make([]string, 0, 7) 2499 s = append(s, "&client.LabelMatcher{") 2500 s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") 2501 s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") 2502 s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") 2503 s = append(s, "}") 2504 return strings.Join(s, "") 2505 } 2506 func (this *TimeSeriesFile) GoString() string { 2507 if this == nil { 2508 return "nil" 2509 } 2510 s := make([]string, 0, 8) 2511 s = append(s, "&client.TimeSeriesFile{") 2512 s = append(s, "FromIngesterId: "+fmt.Sprintf("%#v", this.FromIngesterId)+",\n") 2513 s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") 2514 s = append(s, "Filename: "+fmt.Sprintf("%#v", this.Filename)+",\n") 2515 s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") 2516 s = append(s, "}") 2517 return strings.Join(s, "") 2518 } 2519 func valueToGoStringIngester(v interface{}, typ string) string { 2520 rv := reflect.ValueOf(v) 2521 if rv.IsNil() { 2522 return "nil" 2523 } 2524 pv := reflect.Indirect(rv).Interface() 2525 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) 2526 } 2527 2528 // Reference imports to suppress errors if they are not otherwise used. 2529 var _ context.Context 2530 var _ grpc.ClientConn 2531 2532 // This is a compile-time assertion to ensure that this generated file 2533 // is compatible with the grpc package it is being compiled against. 2534 const _ = grpc.SupportPackageIsVersion4 2535 2536 // IngesterClient is the client API for Ingester service. 2537 // 2538 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2539 type IngesterClient interface { 2540 Push(ctx context.Context, in *cortexpb.WriteRequest, opts ...grpc.CallOption) (*cortexpb.WriteResponse, error) 2541 Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) 2542 QueryStream(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Ingester_QueryStreamClient, error) 2543 QueryExemplars(ctx context.Context, in *ExemplarQueryRequest, opts ...grpc.CallOption) (*ExemplarQueryResponse, error) 2544 LabelValues(ctx context.Context, in *LabelValuesRequest, opts ...grpc.CallOption) (*LabelValuesResponse, error) 2545 LabelNames(ctx context.Context, in *LabelNamesRequest, opts ...grpc.CallOption) (*LabelNamesResponse, error) 2546 UserStats(ctx context.Context, in *UserStatsRequest, opts ...grpc.CallOption) (*UserStatsResponse, error) 2547 AllUserStats(ctx context.Context, in *UserStatsRequest, opts ...grpc.CallOption) (*UsersStatsResponse, error) 2548 MetricsForLabelMatchers(ctx context.Context, in *MetricsForLabelMatchersRequest, opts ...grpc.CallOption) (*MetricsForLabelMatchersResponse, error) 2549 MetricsMetadata(ctx context.Context, in *MetricsMetadataRequest, opts ...grpc.CallOption) (*MetricsMetadataResponse, error) 2550 // TransferChunks allows leaving ingester (client) to stream chunks directly to joining ingesters (server). 2551 TransferChunks(ctx context.Context, opts ...grpc.CallOption) (Ingester_TransferChunksClient, error) 2552 } 2553 2554 type ingesterClient struct { 2555 cc *grpc.ClientConn 2556 } 2557 2558 func NewIngesterClient(cc *grpc.ClientConn) IngesterClient { 2559 return &ingesterClient{cc} 2560 } 2561 2562 func (c *ingesterClient) Push(ctx context.Context, in *cortexpb.WriteRequest, opts ...grpc.CallOption) (*cortexpb.WriteResponse, error) { 2563 out := new(cortexpb.WriteResponse) 2564 err := c.cc.Invoke(ctx, "/cortex.Ingester/Push", in, out, opts...) 2565 if err != nil { 2566 return nil, err 2567 } 2568 return out, nil 2569 } 2570 2571 func (c *ingesterClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) { 2572 out := new(QueryResponse) 2573 err := c.cc.Invoke(ctx, "/cortex.Ingester/Query", in, out, opts...) 2574 if err != nil { 2575 return nil, err 2576 } 2577 return out, nil 2578 } 2579 2580 func (c *ingesterClient) QueryStream(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Ingester_QueryStreamClient, error) { 2581 stream, err := c.cc.NewStream(ctx, &_Ingester_serviceDesc.Streams[0], "/cortex.Ingester/QueryStream", opts...) 2582 if err != nil { 2583 return nil, err 2584 } 2585 x := &ingesterQueryStreamClient{stream} 2586 if err := x.ClientStream.SendMsg(in); err != nil { 2587 return nil, err 2588 } 2589 if err := x.ClientStream.CloseSend(); err != nil { 2590 return nil, err 2591 } 2592 return x, nil 2593 } 2594 2595 type Ingester_QueryStreamClient interface { 2596 Recv() (*QueryStreamResponse, error) 2597 grpc.ClientStream 2598 } 2599 2600 type ingesterQueryStreamClient struct { 2601 grpc.ClientStream 2602 } 2603 2604 func (x *ingesterQueryStreamClient) Recv() (*QueryStreamResponse, error) { 2605 m := new(QueryStreamResponse) 2606 if err := x.ClientStream.RecvMsg(m); err != nil { 2607 return nil, err 2608 } 2609 return m, nil 2610 } 2611 2612 func (c *ingesterClient) QueryExemplars(ctx context.Context, in *ExemplarQueryRequest, opts ...grpc.CallOption) (*ExemplarQueryResponse, error) { 2613 out := new(ExemplarQueryResponse) 2614 err := c.cc.Invoke(ctx, "/cortex.Ingester/QueryExemplars", in, out, opts...) 2615 if err != nil { 2616 return nil, err 2617 } 2618 return out, nil 2619 } 2620 2621 func (c *ingesterClient) LabelValues(ctx context.Context, in *LabelValuesRequest, opts ...grpc.CallOption) (*LabelValuesResponse, error) { 2622 out := new(LabelValuesResponse) 2623 err := c.cc.Invoke(ctx, "/cortex.Ingester/LabelValues", in, out, opts...) 2624 if err != nil { 2625 return nil, err 2626 } 2627 return out, nil 2628 } 2629 2630 func (c *ingesterClient) LabelNames(ctx context.Context, in *LabelNamesRequest, opts ...grpc.CallOption) (*LabelNamesResponse, error) { 2631 out := new(LabelNamesResponse) 2632 err := c.cc.Invoke(ctx, "/cortex.Ingester/LabelNames", in, out, opts...) 2633 if err != nil { 2634 return nil, err 2635 } 2636 return out, nil 2637 } 2638 2639 func (c *ingesterClient) UserStats(ctx context.Context, in *UserStatsRequest, opts ...grpc.CallOption) (*UserStatsResponse, error) { 2640 out := new(UserStatsResponse) 2641 err := c.cc.Invoke(ctx, "/cortex.Ingester/UserStats", in, out, opts...) 2642 if err != nil { 2643 return nil, err 2644 } 2645 return out, nil 2646 } 2647 2648 func (c *ingesterClient) AllUserStats(ctx context.Context, in *UserStatsRequest, opts ...grpc.CallOption) (*UsersStatsResponse, error) { 2649 out := new(UsersStatsResponse) 2650 err := c.cc.Invoke(ctx, "/cortex.Ingester/AllUserStats", in, out, opts...) 2651 if err != nil { 2652 return nil, err 2653 } 2654 return out, nil 2655 } 2656 2657 func (c *ingesterClient) MetricsForLabelMatchers(ctx context.Context, in *MetricsForLabelMatchersRequest, opts ...grpc.CallOption) (*MetricsForLabelMatchersResponse, error) { 2658 out := new(MetricsForLabelMatchersResponse) 2659 err := c.cc.Invoke(ctx, "/cortex.Ingester/MetricsForLabelMatchers", in, out, opts...) 2660 if err != nil { 2661 return nil, err 2662 } 2663 return out, nil 2664 } 2665 2666 func (c *ingesterClient) MetricsMetadata(ctx context.Context, in *MetricsMetadataRequest, opts ...grpc.CallOption) (*MetricsMetadataResponse, error) { 2667 out := new(MetricsMetadataResponse) 2668 err := c.cc.Invoke(ctx, "/cortex.Ingester/MetricsMetadata", in, out, opts...) 2669 if err != nil { 2670 return nil, err 2671 } 2672 return out, nil 2673 } 2674 2675 func (c *ingesterClient) TransferChunks(ctx context.Context, opts ...grpc.CallOption) (Ingester_TransferChunksClient, error) { 2676 stream, err := c.cc.NewStream(ctx, &_Ingester_serviceDesc.Streams[1], "/cortex.Ingester/TransferChunks", opts...) 2677 if err != nil { 2678 return nil, err 2679 } 2680 x := &ingesterTransferChunksClient{stream} 2681 return x, nil 2682 } 2683 2684 type Ingester_TransferChunksClient interface { 2685 Send(*TimeSeriesChunk) error 2686 CloseAndRecv() (*TransferChunksResponse, error) 2687 grpc.ClientStream 2688 } 2689 2690 type ingesterTransferChunksClient struct { 2691 grpc.ClientStream 2692 } 2693 2694 func (x *ingesterTransferChunksClient) Send(m *TimeSeriesChunk) error { 2695 return x.ClientStream.SendMsg(m) 2696 } 2697 2698 func (x *ingesterTransferChunksClient) CloseAndRecv() (*TransferChunksResponse, error) { 2699 if err := x.ClientStream.CloseSend(); err != nil { 2700 return nil, err 2701 } 2702 m := new(TransferChunksResponse) 2703 if err := x.ClientStream.RecvMsg(m); err != nil { 2704 return nil, err 2705 } 2706 return m, nil 2707 } 2708 2709 // IngesterServer is the server API for Ingester service. 2710 type IngesterServer interface { 2711 Push(context.Context, *cortexpb.WriteRequest) (*cortexpb.WriteResponse, error) 2712 Query(context.Context, *QueryRequest) (*QueryResponse, error) 2713 QueryStream(*QueryRequest, Ingester_QueryStreamServer) error 2714 QueryExemplars(context.Context, *ExemplarQueryRequest) (*ExemplarQueryResponse, error) 2715 LabelValues(context.Context, *LabelValuesRequest) (*LabelValuesResponse, error) 2716 LabelNames(context.Context, *LabelNamesRequest) (*LabelNamesResponse, error) 2717 UserStats(context.Context, *UserStatsRequest) (*UserStatsResponse, error) 2718 AllUserStats(context.Context, *UserStatsRequest) (*UsersStatsResponse, error) 2719 MetricsForLabelMatchers(context.Context, *MetricsForLabelMatchersRequest) (*MetricsForLabelMatchersResponse, error) 2720 MetricsMetadata(context.Context, *MetricsMetadataRequest) (*MetricsMetadataResponse, error) 2721 // TransferChunks allows leaving ingester (client) to stream chunks directly to joining ingesters (server). 2722 TransferChunks(Ingester_TransferChunksServer) error 2723 } 2724 2725 // UnimplementedIngesterServer can be embedded to have forward compatible implementations. 2726 type UnimplementedIngesterServer struct { 2727 } 2728 2729 func (*UnimplementedIngesterServer) Push(ctx context.Context, req *cortexpb.WriteRequest) (*cortexpb.WriteResponse, error) { 2730 return nil, status.Errorf(codes.Unimplemented, "method Push not implemented") 2731 } 2732 func (*UnimplementedIngesterServer) Query(ctx context.Context, req *QueryRequest) (*QueryResponse, error) { 2733 return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") 2734 } 2735 func (*UnimplementedIngesterServer) QueryStream(req *QueryRequest, srv Ingester_QueryStreamServer) error { 2736 return status.Errorf(codes.Unimplemented, "method QueryStream not implemented") 2737 } 2738 func (*UnimplementedIngesterServer) QueryExemplars(ctx context.Context, req *ExemplarQueryRequest) (*ExemplarQueryResponse, error) { 2739 return nil, status.Errorf(codes.Unimplemented, "method QueryExemplars not implemented") 2740 } 2741 func (*UnimplementedIngesterServer) LabelValues(ctx context.Context, req *LabelValuesRequest) (*LabelValuesResponse, error) { 2742 return nil, status.Errorf(codes.Unimplemented, "method LabelValues not implemented") 2743 } 2744 func (*UnimplementedIngesterServer) LabelNames(ctx context.Context, req *LabelNamesRequest) (*LabelNamesResponse, error) { 2745 return nil, status.Errorf(codes.Unimplemented, "method LabelNames not implemented") 2746 } 2747 func (*UnimplementedIngesterServer) UserStats(ctx context.Context, req *UserStatsRequest) (*UserStatsResponse, error) { 2748 return nil, status.Errorf(codes.Unimplemented, "method UserStats not implemented") 2749 } 2750 func (*UnimplementedIngesterServer) AllUserStats(ctx context.Context, req *UserStatsRequest) (*UsersStatsResponse, error) { 2751 return nil, status.Errorf(codes.Unimplemented, "method AllUserStats not implemented") 2752 } 2753 func (*UnimplementedIngesterServer) MetricsForLabelMatchers(ctx context.Context, req *MetricsForLabelMatchersRequest) (*MetricsForLabelMatchersResponse, error) { 2754 return nil, status.Errorf(codes.Unimplemented, "method MetricsForLabelMatchers not implemented") 2755 } 2756 func (*UnimplementedIngesterServer) MetricsMetadata(ctx context.Context, req *MetricsMetadataRequest) (*MetricsMetadataResponse, error) { 2757 return nil, status.Errorf(codes.Unimplemented, "method MetricsMetadata not implemented") 2758 } 2759 func (*UnimplementedIngesterServer) TransferChunks(srv Ingester_TransferChunksServer) error { 2760 return status.Errorf(codes.Unimplemented, "method TransferChunks not implemented") 2761 } 2762 2763 func RegisterIngesterServer(s *grpc.Server, srv IngesterServer) { 2764 s.RegisterService(&_Ingester_serviceDesc, srv) 2765 } 2766 2767 func _Ingester_Push_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2768 in := new(cortexpb.WriteRequest) 2769 if err := dec(in); err != nil { 2770 return nil, err 2771 } 2772 if interceptor == nil { 2773 return srv.(IngesterServer).Push(ctx, in) 2774 } 2775 info := &grpc.UnaryServerInfo{ 2776 Server: srv, 2777 FullMethod: "/cortex.Ingester/Push", 2778 } 2779 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2780 return srv.(IngesterServer).Push(ctx, req.(*cortexpb.WriteRequest)) 2781 } 2782 return interceptor(ctx, in, info, handler) 2783 } 2784 2785 func _Ingester_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2786 in := new(QueryRequest) 2787 if err := dec(in); err != nil { 2788 return nil, err 2789 } 2790 if interceptor == nil { 2791 return srv.(IngesterServer).Query(ctx, in) 2792 } 2793 info := &grpc.UnaryServerInfo{ 2794 Server: srv, 2795 FullMethod: "/cortex.Ingester/Query", 2796 } 2797 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2798 return srv.(IngesterServer).Query(ctx, req.(*QueryRequest)) 2799 } 2800 return interceptor(ctx, in, info, handler) 2801 } 2802 2803 func _Ingester_QueryStream_Handler(srv interface{}, stream grpc.ServerStream) error { 2804 m := new(QueryRequest) 2805 if err := stream.RecvMsg(m); err != nil { 2806 return err 2807 } 2808 return srv.(IngesterServer).QueryStream(m, &ingesterQueryStreamServer{stream}) 2809 } 2810 2811 type Ingester_QueryStreamServer interface { 2812 Send(*QueryStreamResponse) error 2813 grpc.ServerStream 2814 } 2815 2816 type ingesterQueryStreamServer struct { 2817 grpc.ServerStream 2818 } 2819 2820 func (x *ingesterQueryStreamServer) Send(m *QueryStreamResponse) error { 2821 return x.ServerStream.SendMsg(m) 2822 } 2823 2824 func _Ingester_QueryExemplars_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2825 in := new(ExemplarQueryRequest) 2826 if err := dec(in); err != nil { 2827 return nil, err 2828 } 2829 if interceptor == nil { 2830 return srv.(IngesterServer).QueryExemplars(ctx, in) 2831 } 2832 info := &grpc.UnaryServerInfo{ 2833 Server: srv, 2834 FullMethod: "/cortex.Ingester/QueryExemplars", 2835 } 2836 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2837 return srv.(IngesterServer).QueryExemplars(ctx, req.(*ExemplarQueryRequest)) 2838 } 2839 return interceptor(ctx, in, info, handler) 2840 } 2841 2842 func _Ingester_LabelValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2843 in := new(LabelValuesRequest) 2844 if err := dec(in); err != nil { 2845 return nil, err 2846 } 2847 if interceptor == nil { 2848 return srv.(IngesterServer).LabelValues(ctx, in) 2849 } 2850 info := &grpc.UnaryServerInfo{ 2851 Server: srv, 2852 FullMethod: "/cortex.Ingester/LabelValues", 2853 } 2854 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2855 return srv.(IngesterServer).LabelValues(ctx, req.(*LabelValuesRequest)) 2856 } 2857 return interceptor(ctx, in, info, handler) 2858 } 2859 2860 func _Ingester_LabelNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2861 in := new(LabelNamesRequest) 2862 if err := dec(in); err != nil { 2863 return nil, err 2864 } 2865 if interceptor == nil { 2866 return srv.(IngesterServer).LabelNames(ctx, in) 2867 } 2868 info := &grpc.UnaryServerInfo{ 2869 Server: srv, 2870 FullMethod: "/cortex.Ingester/LabelNames", 2871 } 2872 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2873 return srv.(IngesterServer).LabelNames(ctx, req.(*LabelNamesRequest)) 2874 } 2875 return interceptor(ctx, in, info, handler) 2876 } 2877 2878 func _Ingester_UserStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2879 in := new(UserStatsRequest) 2880 if err := dec(in); err != nil { 2881 return nil, err 2882 } 2883 if interceptor == nil { 2884 return srv.(IngesterServer).UserStats(ctx, in) 2885 } 2886 info := &grpc.UnaryServerInfo{ 2887 Server: srv, 2888 FullMethod: "/cortex.Ingester/UserStats", 2889 } 2890 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2891 return srv.(IngesterServer).UserStats(ctx, req.(*UserStatsRequest)) 2892 } 2893 return interceptor(ctx, in, info, handler) 2894 } 2895 2896 func _Ingester_AllUserStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2897 in := new(UserStatsRequest) 2898 if err := dec(in); err != nil { 2899 return nil, err 2900 } 2901 if interceptor == nil { 2902 return srv.(IngesterServer).AllUserStats(ctx, in) 2903 } 2904 info := &grpc.UnaryServerInfo{ 2905 Server: srv, 2906 FullMethod: "/cortex.Ingester/AllUserStats", 2907 } 2908 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2909 return srv.(IngesterServer).AllUserStats(ctx, req.(*UserStatsRequest)) 2910 } 2911 return interceptor(ctx, in, info, handler) 2912 } 2913 2914 func _Ingester_MetricsForLabelMatchers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2915 in := new(MetricsForLabelMatchersRequest) 2916 if err := dec(in); err != nil { 2917 return nil, err 2918 } 2919 if interceptor == nil { 2920 return srv.(IngesterServer).MetricsForLabelMatchers(ctx, in) 2921 } 2922 info := &grpc.UnaryServerInfo{ 2923 Server: srv, 2924 FullMethod: "/cortex.Ingester/MetricsForLabelMatchers", 2925 } 2926 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2927 return srv.(IngesterServer).MetricsForLabelMatchers(ctx, req.(*MetricsForLabelMatchersRequest)) 2928 } 2929 return interceptor(ctx, in, info, handler) 2930 } 2931 2932 func _Ingester_MetricsMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2933 in := new(MetricsMetadataRequest) 2934 if err := dec(in); err != nil { 2935 return nil, err 2936 } 2937 if interceptor == nil { 2938 return srv.(IngesterServer).MetricsMetadata(ctx, in) 2939 } 2940 info := &grpc.UnaryServerInfo{ 2941 Server: srv, 2942 FullMethod: "/cortex.Ingester/MetricsMetadata", 2943 } 2944 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2945 return srv.(IngesterServer).MetricsMetadata(ctx, req.(*MetricsMetadataRequest)) 2946 } 2947 return interceptor(ctx, in, info, handler) 2948 } 2949 2950 func _Ingester_TransferChunks_Handler(srv interface{}, stream grpc.ServerStream) error { 2951 return srv.(IngesterServer).TransferChunks(&ingesterTransferChunksServer{stream}) 2952 } 2953 2954 type Ingester_TransferChunksServer interface { 2955 SendAndClose(*TransferChunksResponse) error 2956 Recv() (*TimeSeriesChunk, error) 2957 grpc.ServerStream 2958 } 2959 2960 type ingesterTransferChunksServer struct { 2961 grpc.ServerStream 2962 } 2963 2964 func (x *ingesterTransferChunksServer) SendAndClose(m *TransferChunksResponse) error { 2965 return x.ServerStream.SendMsg(m) 2966 } 2967 2968 func (x *ingesterTransferChunksServer) Recv() (*TimeSeriesChunk, error) { 2969 m := new(TimeSeriesChunk) 2970 if err := x.ServerStream.RecvMsg(m); err != nil { 2971 return nil, err 2972 } 2973 return m, nil 2974 } 2975 2976 var _Ingester_serviceDesc = grpc.ServiceDesc{ 2977 ServiceName: "cortex.Ingester", 2978 HandlerType: (*IngesterServer)(nil), 2979 Methods: []grpc.MethodDesc{ 2980 { 2981 MethodName: "Push", 2982 Handler: _Ingester_Push_Handler, 2983 }, 2984 { 2985 MethodName: "Query", 2986 Handler: _Ingester_Query_Handler, 2987 }, 2988 { 2989 MethodName: "QueryExemplars", 2990 Handler: _Ingester_QueryExemplars_Handler, 2991 }, 2992 { 2993 MethodName: "LabelValues", 2994 Handler: _Ingester_LabelValues_Handler, 2995 }, 2996 { 2997 MethodName: "LabelNames", 2998 Handler: _Ingester_LabelNames_Handler, 2999 }, 3000 { 3001 MethodName: "UserStats", 3002 Handler: _Ingester_UserStats_Handler, 3003 }, 3004 { 3005 MethodName: "AllUserStats", 3006 Handler: _Ingester_AllUserStats_Handler, 3007 }, 3008 { 3009 MethodName: "MetricsForLabelMatchers", 3010 Handler: _Ingester_MetricsForLabelMatchers_Handler, 3011 }, 3012 { 3013 MethodName: "MetricsMetadata", 3014 Handler: _Ingester_MetricsMetadata_Handler, 3015 }, 3016 }, 3017 Streams: []grpc.StreamDesc{ 3018 { 3019 StreamName: "QueryStream", 3020 Handler: _Ingester_QueryStream_Handler, 3021 ServerStreams: true, 3022 }, 3023 { 3024 StreamName: "TransferChunks", 3025 Handler: _Ingester_TransferChunks_Handler, 3026 ClientStreams: true, 3027 }, 3028 }, 3029 Metadata: "ingester.proto", 3030 } 3031 3032 func (m *ReadRequest) Marshal() (dAtA []byte, err error) { 3033 size := m.Size() 3034 dAtA = make([]byte, size) 3035 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3036 if err != nil { 3037 return nil, err 3038 } 3039 return dAtA[:n], nil 3040 } 3041 3042 func (m *ReadRequest) MarshalTo(dAtA []byte) (int, error) { 3043 size := m.Size() 3044 return m.MarshalToSizedBuffer(dAtA[:size]) 3045 } 3046 3047 func (m *ReadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3048 i := len(dAtA) 3049 _ = i 3050 var l int 3051 _ = l 3052 if len(m.Queries) > 0 { 3053 for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- { 3054 { 3055 size, err := m.Queries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3056 if err != nil { 3057 return 0, err 3058 } 3059 i -= size 3060 i = encodeVarintIngester(dAtA, i, uint64(size)) 3061 } 3062 i-- 3063 dAtA[i] = 0xa 3064 } 3065 } 3066 return len(dAtA) - i, nil 3067 } 3068 3069 func (m *ReadResponse) Marshal() (dAtA []byte, err error) { 3070 size := m.Size() 3071 dAtA = make([]byte, size) 3072 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3073 if err != nil { 3074 return nil, err 3075 } 3076 return dAtA[:n], nil 3077 } 3078 3079 func (m *ReadResponse) MarshalTo(dAtA []byte) (int, error) { 3080 size := m.Size() 3081 return m.MarshalToSizedBuffer(dAtA[:size]) 3082 } 3083 3084 func (m *ReadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3085 i := len(dAtA) 3086 _ = i 3087 var l int 3088 _ = l 3089 if len(m.Results) > 0 { 3090 for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { 3091 { 3092 size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3093 if err != nil { 3094 return 0, err 3095 } 3096 i -= size 3097 i = encodeVarintIngester(dAtA, i, uint64(size)) 3098 } 3099 i-- 3100 dAtA[i] = 0xa 3101 } 3102 } 3103 return len(dAtA) - i, nil 3104 } 3105 3106 func (m *QueryRequest) Marshal() (dAtA []byte, err error) { 3107 size := m.Size() 3108 dAtA = make([]byte, size) 3109 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3110 if err != nil { 3111 return nil, err 3112 } 3113 return dAtA[:n], nil 3114 } 3115 3116 func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) { 3117 size := m.Size() 3118 return m.MarshalToSizedBuffer(dAtA[:size]) 3119 } 3120 3121 func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3122 i := len(dAtA) 3123 _ = i 3124 var l int 3125 _ = l 3126 if len(m.Matchers) > 0 { 3127 for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { 3128 { 3129 size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3130 if err != nil { 3131 return 0, err 3132 } 3133 i -= size 3134 i = encodeVarintIngester(dAtA, i, uint64(size)) 3135 } 3136 i-- 3137 dAtA[i] = 0x1a 3138 } 3139 } 3140 if m.EndTimestampMs != 0 { 3141 i = encodeVarintIngester(dAtA, i, uint64(m.EndTimestampMs)) 3142 i-- 3143 dAtA[i] = 0x10 3144 } 3145 if m.StartTimestampMs != 0 { 3146 i = encodeVarintIngester(dAtA, i, uint64(m.StartTimestampMs)) 3147 i-- 3148 dAtA[i] = 0x8 3149 } 3150 return len(dAtA) - i, nil 3151 } 3152 3153 func (m *ExemplarQueryRequest) Marshal() (dAtA []byte, err error) { 3154 size := m.Size() 3155 dAtA = make([]byte, size) 3156 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3157 if err != nil { 3158 return nil, err 3159 } 3160 return dAtA[:n], nil 3161 } 3162 3163 func (m *ExemplarQueryRequest) MarshalTo(dAtA []byte) (int, error) { 3164 size := m.Size() 3165 return m.MarshalToSizedBuffer(dAtA[:size]) 3166 } 3167 3168 func (m *ExemplarQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3169 i := len(dAtA) 3170 _ = i 3171 var l int 3172 _ = l 3173 if len(m.Matchers) > 0 { 3174 for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { 3175 { 3176 size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3177 if err != nil { 3178 return 0, err 3179 } 3180 i -= size 3181 i = encodeVarintIngester(dAtA, i, uint64(size)) 3182 } 3183 i-- 3184 dAtA[i] = 0x1a 3185 } 3186 } 3187 if m.EndTimestampMs != 0 { 3188 i = encodeVarintIngester(dAtA, i, uint64(m.EndTimestampMs)) 3189 i-- 3190 dAtA[i] = 0x10 3191 } 3192 if m.StartTimestampMs != 0 { 3193 i = encodeVarintIngester(dAtA, i, uint64(m.StartTimestampMs)) 3194 i-- 3195 dAtA[i] = 0x8 3196 } 3197 return len(dAtA) - i, nil 3198 } 3199 3200 func (m *QueryResponse) Marshal() (dAtA []byte, err error) { 3201 size := m.Size() 3202 dAtA = make([]byte, size) 3203 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3204 if err != nil { 3205 return nil, err 3206 } 3207 return dAtA[:n], nil 3208 } 3209 3210 func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) { 3211 size := m.Size() 3212 return m.MarshalToSizedBuffer(dAtA[:size]) 3213 } 3214 3215 func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3216 i := len(dAtA) 3217 _ = i 3218 var l int 3219 _ = l 3220 if len(m.Timeseries) > 0 { 3221 for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { 3222 { 3223 size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3224 if err != nil { 3225 return 0, err 3226 } 3227 i -= size 3228 i = encodeVarintIngester(dAtA, i, uint64(size)) 3229 } 3230 i-- 3231 dAtA[i] = 0xa 3232 } 3233 } 3234 return len(dAtA) - i, nil 3235 } 3236 3237 func (m *QueryStreamResponse) Marshal() (dAtA []byte, err error) { 3238 size := m.Size() 3239 dAtA = make([]byte, size) 3240 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3241 if err != nil { 3242 return nil, err 3243 } 3244 return dAtA[:n], nil 3245 } 3246 3247 func (m *QueryStreamResponse) MarshalTo(dAtA []byte) (int, error) { 3248 size := m.Size() 3249 return m.MarshalToSizedBuffer(dAtA[:size]) 3250 } 3251 3252 func (m *QueryStreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3253 i := len(dAtA) 3254 _ = i 3255 var l int 3256 _ = l 3257 if len(m.Timeseries) > 0 { 3258 for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { 3259 { 3260 size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3261 if err != nil { 3262 return 0, err 3263 } 3264 i -= size 3265 i = encodeVarintIngester(dAtA, i, uint64(size)) 3266 } 3267 i-- 3268 dAtA[i] = 0x12 3269 } 3270 } 3271 if len(m.Chunkseries) > 0 { 3272 for iNdEx := len(m.Chunkseries) - 1; iNdEx >= 0; iNdEx-- { 3273 { 3274 size, err := m.Chunkseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3275 if err != nil { 3276 return 0, err 3277 } 3278 i -= size 3279 i = encodeVarintIngester(dAtA, i, uint64(size)) 3280 } 3281 i-- 3282 dAtA[i] = 0xa 3283 } 3284 } 3285 return len(dAtA) - i, nil 3286 } 3287 3288 func (m *ExemplarQueryResponse) Marshal() (dAtA []byte, err error) { 3289 size := m.Size() 3290 dAtA = make([]byte, size) 3291 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3292 if err != nil { 3293 return nil, err 3294 } 3295 return dAtA[:n], nil 3296 } 3297 3298 func (m *ExemplarQueryResponse) MarshalTo(dAtA []byte) (int, error) { 3299 size := m.Size() 3300 return m.MarshalToSizedBuffer(dAtA[:size]) 3301 } 3302 3303 func (m *ExemplarQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3304 i := len(dAtA) 3305 _ = i 3306 var l int 3307 _ = l 3308 if len(m.Timeseries) > 0 { 3309 for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { 3310 { 3311 size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3312 if err != nil { 3313 return 0, err 3314 } 3315 i -= size 3316 i = encodeVarintIngester(dAtA, i, uint64(size)) 3317 } 3318 i-- 3319 dAtA[i] = 0xa 3320 } 3321 } 3322 return len(dAtA) - i, nil 3323 } 3324 3325 func (m *LabelValuesRequest) Marshal() (dAtA []byte, err error) { 3326 size := m.Size() 3327 dAtA = make([]byte, size) 3328 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3329 if err != nil { 3330 return nil, err 3331 } 3332 return dAtA[:n], nil 3333 } 3334 3335 func (m *LabelValuesRequest) MarshalTo(dAtA []byte) (int, error) { 3336 size := m.Size() 3337 return m.MarshalToSizedBuffer(dAtA[:size]) 3338 } 3339 3340 func (m *LabelValuesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3341 i := len(dAtA) 3342 _ = i 3343 var l int 3344 _ = l 3345 if m.Matchers != nil { 3346 { 3347 size, err := m.Matchers.MarshalToSizedBuffer(dAtA[:i]) 3348 if err != nil { 3349 return 0, err 3350 } 3351 i -= size 3352 i = encodeVarintIngester(dAtA, i, uint64(size)) 3353 } 3354 i-- 3355 dAtA[i] = 0x22 3356 } 3357 if m.EndTimestampMs != 0 { 3358 i = encodeVarintIngester(dAtA, i, uint64(m.EndTimestampMs)) 3359 i-- 3360 dAtA[i] = 0x18 3361 } 3362 if m.StartTimestampMs != 0 { 3363 i = encodeVarintIngester(dAtA, i, uint64(m.StartTimestampMs)) 3364 i-- 3365 dAtA[i] = 0x10 3366 } 3367 if len(m.LabelName) > 0 { 3368 i -= len(m.LabelName) 3369 copy(dAtA[i:], m.LabelName) 3370 i = encodeVarintIngester(dAtA, i, uint64(len(m.LabelName))) 3371 i-- 3372 dAtA[i] = 0xa 3373 } 3374 return len(dAtA) - i, nil 3375 } 3376 3377 func (m *LabelValuesResponse) Marshal() (dAtA []byte, err error) { 3378 size := m.Size() 3379 dAtA = make([]byte, size) 3380 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3381 if err != nil { 3382 return nil, err 3383 } 3384 return dAtA[:n], nil 3385 } 3386 3387 func (m *LabelValuesResponse) MarshalTo(dAtA []byte) (int, error) { 3388 size := m.Size() 3389 return m.MarshalToSizedBuffer(dAtA[:size]) 3390 } 3391 3392 func (m *LabelValuesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3393 i := len(dAtA) 3394 _ = i 3395 var l int 3396 _ = l 3397 if len(m.LabelValues) > 0 { 3398 for iNdEx := len(m.LabelValues) - 1; iNdEx >= 0; iNdEx-- { 3399 i -= len(m.LabelValues[iNdEx]) 3400 copy(dAtA[i:], m.LabelValues[iNdEx]) 3401 i = encodeVarintIngester(dAtA, i, uint64(len(m.LabelValues[iNdEx]))) 3402 i-- 3403 dAtA[i] = 0xa 3404 } 3405 } 3406 return len(dAtA) - i, nil 3407 } 3408 3409 func (m *LabelNamesRequest) Marshal() (dAtA []byte, err error) { 3410 size := m.Size() 3411 dAtA = make([]byte, size) 3412 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3413 if err != nil { 3414 return nil, err 3415 } 3416 return dAtA[:n], nil 3417 } 3418 3419 func (m *LabelNamesRequest) MarshalTo(dAtA []byte) (int, error) { 3420 size := m.Size() 3421 return m.MarshalToSizedBuffer(dAtA[:size]) 3422 } 3423 3424 func (m *LabelNamesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3425 i := len(dAtA) 3426 _ = i 3427 var l int 3428 _ = l 3429 if m.EndTimestampMs != 0 { 3430 i = encodeVarintIngester(dAtA, i, uint64(m.EndTimestampMs)) 3431 i-- 3432 dAtA[i] = 0x10 3433 } 3434 if m.StartTimestampMs != 0 { 3435 i = encodeVarintIngester(dAtA, i, uint64(m.StartTimestampMs)) 3436 i-- 3437 dAtA[i] = 0x8 3438 } 3439 return len(dAtA) - i, nil 3440 } 3441 3442 func (m *LabelNamesResponse) Marshal() (dAtA []byte, err error) { 3443 size := m.Size() 3444 dAtA = make([]byte, size) 3445 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3446 if err != nil { 3447 return nil, err 3448 } 3449 return dAtA[:n], nil 3450 } 3451 3452 func (m *LabelNamesResponse) MarshalTo(dAtA []byte) (int, error) { 3453 size := m.Size() 3454 return m.MarshalToSizedBuffer(dAtA[:size]) 3455 } 3456 3457 func (m *LabelNamesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3458 i := len(dAtA) 3459 _ = i 3460 var l int 3461 _ = l 3462 if len(m.LabelNames) > 0 { 3463 for iNdEx := len(m.LabelNames) - 1; iNdEx >= 0; iNdEx-- { 3464 i -= len(m.LabelNames[iNdEx]) 3465 copy(dAtA[i:], m.LabelNames[iNdEx]) 3466 i = encodeVarintIngester(dAtA, i, uint64(len(m.LabelNames[iNdEx]))) 3467 i-- 3468 dAtA[i] = 0xa 3469 } 3470 } 3471 return len(dAtA) - i, nil 3472 } 3473 3474 func (m *UserStatsRequest) Marshal() (dAtA []byte, err error) { 3475 size := m.Size() 3476 dAtA = make([]byte, size) 3477 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3478 if err != nil { 3479 return nil, err 3480 } 3481 return dAtA[:n], nil 3482 } 3483 3484 func (m *UserStatsRequest) MarshalTo(dAtA []byte) (int, error) { 3485 size := m.Size() 3486 return m.MarshalToSizedBuffer(dAtA[:size]) 3487 } 3488 3489 func (m *UserStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3490 i := len(dAtA) 3491 _ = i 3492 var l int 3493 _ = l 3494 return len(dAtA) - i, nil 3495 } 3496 3497 func (m *UserStatsResponse) Marshal() (dAtA []byte, err error) { 3498 size := m.Size() 3499 dAtA = make([]byte, size) 3500 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3501 if err != nil { 3502 return nil, err 3503 } 3504 return dAtA[:n], nil 3505 } 3506 3507 func (m *UserStatsResponse) MarshalTo(dAtA []byte) (int, error) { 3508 size := m.Size() 3509 return m.MarshalToSizedBuffer(dAtA[:size]) 3510 } 3511 3512 func (m *UserStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3513 i := len(dAtA) 3514 _ = i 3515 var l int 3516 _ = l 3517 if m.RuleIngestionRate != 0 { 3518 i -= 8 3519 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RuleIngestionRate)))) 3520 i-- 3521 dAtA[i] = 0x21 3522 } 3523 if m.ApiIngestionRate != 0 { 3524 i -= 8 3525 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ApiIngestionRate)))) 3526 i-- 3527 dAtA[i] = 0x19 3528 } 3529 if m.NumSeries != 0 { 3530 i = encodeVarintIngester(dAtA, i, uint64(m.NumSeries)) 3531 i-- 3532 dAtA[i] = 0x10 3533 } 3534 if m.IngestionRate != 0 { 3535 i -= 8 3536 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.IngestionRate)))) 3537 i-- 3538 dAtA[i] = 0x9 3539 } 3540 return len(dAtA) - i, nil 3541 } 3542 3543 func (m *UserIDStatsResponse) Marshal() (dAtA []byte, err error) { 3544 size := m.Size() 3545 dAtA = make([]byte, size) 3546 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3547 if err != nil { 3548 return nil, err 3549 } 3550 return dAtA[:n], nil 3551 } 3552 3553 func (m *UserIDStatsResponse) MarshalTo(dAtA []byte) (int, error) { 3554 size := m.Size() 3555 return m.MarshalToSizedBuffer(dAtA[:size]) 3556 } 3557 3558 func (m *UserIDStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3559 i := len(dAtA) 3560 _ = i 3561 var l int 3562 _ = l 3563 if m.Data != nil { 3564 { 3565 size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) 3566 if err != nil { 3567 return 0, err 3568 } 3569 i -= size 3570 i = encodeVarintIngester(dAtA, i, uint64(size)) 3571 } 3572 i-- 3573 dAtA[i] = 0x12 3574 } 3575 if len(m.UserId) > 0 { 3576 i -= len(m.UserId) 3577 copy(dAtA[i:], m.UserId) 3578 i = encodeVarintIngester(dAtA, i, uint64(len(m.UserId))) 3579 i-- 3580 dAtA[i] = 0xa 3581 } 3582 return len(dAtA) - i, nil 3583 } 3584 3585 func (m *UsersStatsResponse) Marshal() (dAtA []byte, err error) { 3586 size := m.Size() 3587 dAtA = make([]byte, size) 3588 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3589 if err != nil { 3590 return nil, err 3591 } 3592 return dAtA[:n], nil 3593 } 3594 3595 func (m *UsersStatsResponse) MarshalTo(dAtA []byte) (int, error) { 3596 size := m.Size() 3597 return m.MarshalToSizedBuffer(dAtA[:size]) 3598 } 3599 3600 func (m *UsersStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3601 i := len(dAtA) 3602 _ = i 3603 var l int 3604 _ = l 3605 if len(m.Stats) > 0 { 3606 for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- { 3607 { 3608 size, err := m.Stats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3609 if err != nil { 3610 return 0, err 3611 } 3612 i -= size 3613 i = encodeVarintIngester(dAtA, i, uint64(size)) 3614 } 3615 i-- 3616 dAtA[i] = 0xa 3617 } 3618 } 3619 return len(dAtA) - i, nil 3620 } 3621 3622 func (m *MetricsForLabelMatchersRequest) Marshal() (dAtA []byte, err error) { 3623 size := m.Size() 3624 dAtA = make([]byte, size) 3625 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3626 if err != nil { 3627 return nil, err 3628 } 3629 return dAtA[:n], nil 3630 } 3631 3632 func (m *MetricsForLabelMatchersRequest) MarshalTo(dAtA []byte) (int, error) { 3633 size := m.Size() 3634 return m.MarshalToSizedBuffer(dAtA[:size]) 3635 } 3636 3637 func (m *MetricsForLabelMatchersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3638 i := len(dAtA) 3639 _ = i 3640 var l int 3641 _ = l 3642 if len(m.MatchersSet) > 0 { 3643 for iNdEx := len(m.MatchersSet) - 1; iNdEx >= 0; iNdEx-- { 3644 { 3645 size, err := m.MatchersSet[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3646 if err != nil { 3647 return 0, err 3648 } 3649 i -= size 3650 i = encodeVarintIngester(dAtA, i, uint64(size)) 3651 } 3652 i-- 3653 dAtA[i] = 0x1a 3654 } 3655 } 3656 if m.EndTimestampMs != 0 { 3657 i = encodeVarintIngester(dAtA, i, uint64(m.EndTimestampMs)) 3658 i-- 3659 dAtA[i] = 0x10 3660 } 3661 if m.StartTimestampMs != 0 { 3662 i = encodeVarintIngester(dAtA, i, uint64(m.StartTimestampMs)) 3663 i-- 3664 dAtA[i] = 0x8 3665 } 3666 return len(dAtA) - i, nil 3667 } 3668 3669 func (m *MetricsForLabelMatchersResponse) Marshal() (dAtA []byte, err error) { 3670 size := m.Size() 3671 dAtA = make([]byte, size) 3672 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3673 if err != nil { 3674 return nil, err 3675 } 3676 return dAtA[:n], nil 3677 } 3678 3679 func (m *MetricsForLabelMatchersResponse) MarshalTo(dAtA []byte) (int, error) { 3680 size := m.Size() 3681 return m.MarshalToSizedBuffer(dAtA[:size]) 3682 } 3683 3684 func (m *MetricsForLabelMatchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3685 i := len(dAtA) 3686 _ = i 3687 var l int 3688 _ = l 3689 if len(m.Metric) > 0 { 3690 for iNdEx := len(m.Metric) - 1; iNdEx >= 0; iNdEx-- { 3691 { 3692 size, err := m.Metric[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3693 if err != nil { 3694 return 0, err 3695 } 3696 i -= size 3697 i = encodeVarintIngester(dAtA, i, uint64(size)) 3698 } 3699 i-- 3700 dAtA[i] = 0xa 3701 } 3702 } 3703 return len(dAtA) - i, nil 3704 } 3705 3706 func (m *MetricsMetadataRequest) Marshal() (dAtA []byte, err error) { 3707 size := m.Size() 3708 dAtA = make([]byte, size) 3709 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3710 if err != nil { 3711 return nil, err 3712 } 3713 return dAtA[:n], nil 3714 } 3715 3716 func (m *MetricsMetadataRequest) MarshalTo(dAtA []byte) (int, error) { 3717 size := m.Size() 3718 return m.MarshalToSizedBuffer(dAtA[:size]) 3719 } 3720 3721 func (m *MetricsMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3722 i := len(dAtA) 3723 _ = i 3724 var l int 3725 _ = l 3726 return len(dAtA) - i, nil 3727 } 3728 3729 func (m *MetricsMetadataResponse) Marshal() (dAtA []byte, err error) { 3730 size := m.Size() 3731 dAtA = make([]byte, size) 3732 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3733 if err != nil { 3734 return nil, err 3735 } 3736 return dAtA[:n], nil 3737 } 3738 3739 func (m *MetricsMetadataResponse) MarshalTo(dAtA []byte) (int, error) { 3740 size := m.Size() 3741 return m.MarshalToSizedBuffer(dAtA[:size]) 3742 } 3743 3744 func (m *MetricsMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3745 i := len(dAtA) 3746 _ = i 3747 var l int 3748 _ = l 3749 if len(m.Metadata) > 0 { 3750 for iNdEx := len(m.Metadata) - 1; iNdEx >= 0; iNdEx-- { 3751 { 3752 size, err := m.Metadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3753 if err != nil { 3754 return 0, err 3755 } 3756 i -= size 3757 i = encodeVarintIngester(dAtA, i, uint64(size)) 3758 } 3759 i-- 3760 dAtA[i] = 0xa 3761 } 3762 } 3763 return len(dAtA) - i, nil 3764 } 3765 3766 func (m *TimeSeriesChunk) Marshal() (dAtA []byte, err error) { 3767 size := m.Size() 3768 dAtA = make([]byte, size) 3769 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3770 if err != nil { 3771 return nil, err 3772 } 3773 return dAtA[:n], nil 3774 } 3775 3776 func (m *TimeSeriesChunk) MarshalTo(dAtA []byte) (int, error) { 3777 size := m.Size() 3778 return m.MarshalToSizedBuffer(dAtA[:size]) 3779 } 3780 3781 func (m *TimeSeriesChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3782 i := len(dAtA) 3783 _ = i 3784 var l int 3785 _ = l 3786 if len(m.Chunks) > 0 { 3787 for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { 3788 { 3789 size, err := m.Chunks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3790 if err != nil { 3791 return 0, err 3792 } 3793 i -= size 3794 i = encodeVarintIngester(dAtA, i, uint64(size)) 3795 } 3796 i-- 3797 dAtA[i] = 0x22 3798 } 3799 } 3800 if len(m.Labels) > 0 { 3801 for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { 3802 { 3803 size := m.Labels[iNdEx].Size() 3804 i -= size 3805 if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { 3806 return 0, err 3807 } 3808 i = encodeVarintIngester(dAtA, i, uint64(size)) 3809 } 3810 i-- 3811 dAtA[i] = 0x1a 3812 } 3813 } 3814 if len(m.UserId) > 0 { 3815 i -= len(m.UserId) 3816 copy(dAtA[i:], m.UserId) 3817 i = encodeVarintIngester(dAtA, i, uint64(len(m.UserId))) 3818 i-- 3819 dAtA[i] = 0x12 3820 } 3821 if len(m.FromIngesterId) > 0 { 3822 i -= len(m.FromIngesterId) 3823 copy(dAtA[i:], m.FromIngesterId) 3824 i = encodeVarintIngester(dAtA, i, uint64(len(m.FromIngesterId))) 3825 i-- 3826 dAtA[i] = 0xa 3827 } 3828 return len(dAtA) - i, nil 3829 } 3830 3831 func (m *Chunk) Marshal() (dAtA []byte, err error) { 3832 size := m.Size() 3833 dAtA = make([]byte, size) 3834 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3835 if err != nil { 3836 return nil, err 3837 } 3838 return dAtA[:n], nil 3839 } 3840 3841 func (m *Chunk) MarshalTo(dAtA []byte) (int, error) { 3842 size := m.Size() 3843 return m.MarshalToSizedBuffer(dAtA[:size]) 3844 } 3845 3846 func (m *Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3847 i := len(dAtA) 3848 _ = i 3849 var l int 3850 _ = l 3851 if len(m.Data) > 0 { 3852 i -= len(m.Data) 3853 copy(dAtA[i:], m.Data) 3854 i = encodeVarintIngester(dAtA, i, uint64(len(m.Data))) 3855 i-- 3856 dAtA[i] = 0x22 3857 } 3858 if m.Encoding != 0 { 3859 i = encodeVarintIngester(dAtA, i, uint64(m.Encoding)) 3860 i-- 3861 dAtA[i] = 0x18 3862 } 3863 if m.EndTimestampMs != 0 { 3864 i = encodeVarintIngester(dAtA, i, uint64(m.EndTimestampMs)) 3865 i-- 3866 dAtA[i] = 0x10 3867 } 3868 if m.StartTimestampMs != 0 { 3869 i = encodeVarintIngester(dAtA, i, uint64(m.StartTimestampMs)) 3870 i-- 3871 dAtA[i] = 0x8 3872 } 3873 return len(dAtA) - i, nil 3874 } 3875 3876 func (m *TransferChunksResponse) Marshal() (dAtA []byte, err error) { 3877 size := m.Size() 3878 dAtA = make([]byte, size) 3879 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3880 if err != nil { 3881 return nil, err 3882 } 3883 return dAtA[:n], nil 3884 } 3885 3886 func (m *TransferChunksResponse) MarshalTo(dAtA []byte) (int, error) { 3887 size := m.Size() 3888 return m.MarshalToSizedBuffer(dAtA[:size]) 3889 } 3890 3891 func (m *TransferChunksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3892 i := len(dAtA) 3893 _ = i 3894 var l int 3895 _ = l 3896 return len(dAtA) - i, nil 3897 } 3898 3899 func (m *LabelMatchers) Marshal() (dAtA []byte, err error) { 3900 size := m.Size() 3901 dAtA = make([]byte, size) 3902 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3903 if err != nil { 3904 return nil, err 3905 } 3906 return dAtA[:n], nil 3907 } 3908 3909 func (m *LabelMatchers) MarshalTo(dAtA []byte) (int, error) { 3910 size := m.Size() 3911 return m.MarshalToSizedBuffer(dAtA[:size]) 3912 } 3913 3914 func (m *LabelMatchers) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3915 i := len(dAtA) 3916 _ = i 3917 var l int 3918 _ = l 3919 if len(m.Matchers) > 0 { 3920 for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { 3921 { 3922 size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3923 if err != nil { 3924 return 0, err 3925 } 3926 i -= size 3927 i = encodeVarintIngester(dAtA, i, uint64(size)) 3928 } 3929 i-- 3930 dAtA[i] = 0xa 3931 } 3932 } 3933 return len(dAtA) - i, nil 3934 } 3935 3936 func (m *LabelMatcher) Marshal() (dAtA []byte, err error) { 3937 size := m.Size() 3938 dAtA = make([]byte, size) 3939 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3940 if err != nil { 3941 return nil, err 3942 } 3943 return dAtA[:n], nil 3944 } 3945 3946 func (m *LabelMatcher) MarshalTo(dAtA []byte) (int, error) { 3947 size := m.Size() 3948 return m.MarshalToSizedBuffer(dAtA[:size]) 3949 } 3950 3951 func (m *LabelMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3952 i := len(dAtA) 3953 _ = i 3954 var l int 3955 _ = l 3956 if len(m.Value) > 0 { 3957 i -= len(m.Value) 3958 copy(dAtA[i:], m.Value) 3959 i = encodeVarintIngester(dAtA, i, uint64(len(m.Value))) 3960 i-- 3961 dAtA[i] = 0x1a 3962 } 3963 if len(m.Name) > 0 { 3964 i -= len(m.Name) 3965 copy(dAtA[i:], m.Name) 3966 i = encodeVarintIngester(dAtA, i, uint64(len(m.Name))) 3967 i-- 3968 dAtA[i] = 0x12 3969 } 3970 if m.Type != 0 { 3971 i = encodeVarintIngester(dAtA, i, uint64(m.Type)) 3972 i-- 3973 dAtA[i] = 0x8 3974 } 3975 return len(dAtA) - i, nil 3976 } 3977 3978 func (m *TimeSeriesFile) Marshal() (dAtA []byte, err error) { 3979 size := m.Size() 3980 dAtA = make([]byte, size) 3981 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3982 if err != nil { 3983 return nil, err 3984 } 3985 return dAtA[:n], nil 3986 } 3987 3988 func (m *TimeSeriesFile) MarshalTo(dAtA []byte) (int, error) { 3989 size := m.Size() 3990 return m.MarshalToSizedBuffer(dAtA[:size]) 3991 } 3992 3993 func (m *TimeSeriesFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3994 i := len(dAtA) 3995 _ = i 3996 var l int 3997 _ = l 3998 if len(m.Data) > 0 { 3999 i -= len(m.Data) 4000 copy(dAtA[i:], m.Data) 4001 i = encodeVarintIngester(dAtA, i, uint64(len(m.Data))) 4002 i-- 4003 dAtA[i] = 0x22 4004 } 4005 if len(m.Filename) > 0 { 4006 i -= len(m.Filename) 4007 copy(dAtA[i:], m.Filename) 4008 i = encodeVarintIngester(dAtA, i, uint64(len(m.Filename))) 4009 i-- 4010 dAtA[i] = 0x1a 4011 } 4012 if len(m.UserId) > 0 { 4013 i -= len(m.UserId) 4014 copy(dAtA[i:], m.UserId) 4015 i = encodeVarintIngester(dAtA, i, uint64(len(m.UserId))) 4016 i-- 4017 dAtA[i] = 0x12 4018 } 4019 if len(m.FromIngesterId) > 0 { 4020 i -= len(m.FromIngesterId) 4021 copy(dAtA[i:], m.FromIngesterId) 4022 i = encodeVarintIngester(dAtA, i, uint64(len(m.FromIngesterId))) 4023 i-- 4024 dAtA[i] = 0xa 4025 } 4026 return len(dAtA) - i, nil 4027 } 4028 4029 func encodeVarintIngester(dAtA []byte, offset int, v uint64) int { 4030 offset -= sovIngester(v) 4031 base := offset 4032 for v >= 1<<7 { 4033 dAtA[offset] = uint8(v&0x7f | 0x80) 4034 v >>= 7 4035 offset++ 4036 } 4037 dAtA[offset] = uint8(v) 4038 return base 4039 } 4040 func (m *ReadRequest) Size() (n int) { 4041 if m == nil { 4042 return 0 4043 } 4044 var l int 4045 _ = l 4046 if len(m.Queries) > 0 { 4047 for _, e := range m.Queries { 4048 l = e.Size() 4049 n += 1 + l + sovIngester(uint64(l)) 4050 } 4051 } 4052 return n 4053 } 4054 4055 func (m *ReadResponse) Size() (n int) { 4056 if m == nil { 4057 return 0 4058 } 4059 var l int 4060 _ = l 4061 if len(m.Results) > 0 { 4062 for _, e := range m.Results { 4063 l = e.Size() 4064 n += 1 + l + sovIngester(uint64(l)) 4065 } 4066 } 4067 return n 4068 } 4069 4070 func (m *QueryRequest) Size() (n int) { 4071 if m == nil { 4072 return 0 4073 } 4074 var l int 4075 _ = l 4076 if m.StartTimestampMs != 0 { 4077 n += 1 + sovIngester(uint64(m.StartTimestampMs)) 4078 } 4079 if m.EndTimestampMs != 0 { 4080 n += 1 + sovIngester(uint64(m.EndTimestampMs)) 4081 } 4082 if len(m.Matchers) > 0 { 4083 for _, e := range m.Matchers { 4084 l = e.Size() 4085 n += 1 + l + sovIngester(uint64(l)) 4086 } 4087 } 4088 return n 4089 } 4090 4091 func (m *ExemplarQueryRequest) Size() (n int) { 4092 if m == nil { 4093 return 0 4094 } 4095 var l int 4096 _ = l 4097 if m.StartTimestampMs != 0 { 4098 n += 1 + sovIngester(uint64(m.StartTimestampMs)) 4099 } 4100 if m.EndTimestampMs != 0 { 4101 n += 1 + sovIngester(uint64(m.EndTimestampMs)) 4102 } 4103 if len(m.Matchers) > 0 { 4104 for _, e := range m.Matchers { 4105 l = e.Size() 4106 n += 1 + l + sovIngester(uint64(l)) 4107 } 4108 } 4109 return n 4110 } 4111 4112 func (m *QueryResponse) Size() (n int) { 4113 if m == nil { 4114 return 0 4115 } 4116 var l int 4117 _ = l 4118 if len(m.Timeseries) > 0 { 4119 for _, e := range m.Timeseries { 4120 l = e.Size() 4121 n += 1 + l + sovIngester(uint64(l)) 4122 } 4123 } 4124 return n 4125 } 4126 4127 func (m *QueryStreamResponse) Size() (n int) { 4128 if m == nil { 4129 return 0 4130 } 4131 var l int 4132 _ = l 4133 if len(m.Chunkseries) > 0 { 4134 for _, e := range m.Chunkseries { 4135 l = e.Size() 4136 n += 1 + l + sovIngester(uint64(l)) 4137 } 4138 } 4139 if len(m.Timeseries) > 0 { 4140 for _, e := range m.Timeseries { 4141 l = e.Size() 4142 n += 1 + l + sovIngester(uint64(l)) 4143 } 4144 } 4145 return n 4146 } 4147 4148 func (m *ExemplarQueryResponse) Size() (n int) { 4149 if m == nil { 4150 return 0 4151 } 4152 var l int 4153 _ = l 4154 if len(m.Timeseries) > 0 { 4155 for _, e := range m.Timeseries { 4156 l = e.Size() 4157 n += 1 + l + sovIngester(uint64(l)) 4158 } 4159 } 4160 return n 4161 } 4162 4163 func (m *LabelValuesRequest) Size() (n int) { 4164 if m == nil { 4165 return 0 4166 } 4167 var l int 4168 _ = l 4169 l = len(m.LabelName) 4170 if l > 0 { 4171 n += 1 + l + sovIngester(uint64(l)) 4172 } 4173 if m.StartTimestampMs != 0 { 4174 n += 1 + sovIngester(uint64(m.StartTimestampMs)) 4175 } 4176 if m.EndTimestampMs != 0 { 4177 n += 1 + sovIngester(uint64(m.EndTimestampMs)) 4178 } 4179 if m.Matchers != nil { 4180 l = m.Matchers.Size() 4181 n += 1 + l + sovIngester(uint64(l)) 4182 } 4183 return n 4184 } 4185 4186 func (m *LabelValuesResponse) Size() (n int) { 4187 if m == nil { 4188 return 0 4189 } 4190 var l int 4191 _ = l 4192 if len(m.LabelValues) > 0 { 4193 for _, s := range m.LabelValues { 4194 l = len(s) 4195 n += 1 + l + sovIngester(uint64(l)) 4196 } 4197 } 4198 return n 4199 } 4200 4201 func (m *LabelNamesRequest) Size() (n int) { 4202 if m == nil { 4203 return 0 4204 } 4205 var l int 4206 _ = l 4207 if m.StartTimestampMs != 0 { 4208 n += 1 + sovIngester(uint64(m.StartTimestampMs)) 4209 } 4210 if m.EndTimestampMs != 0 { 4211 n += 1 + sovIngester(uint64(m.EndTimestampMs)) 4212 } 4213 return n 4214 } 4215 4216 func (m *LabelNamesResponse) Size() (n int) { 4217 if m == nil { 4218 return 0 4219 } 4220 var l int 4221 _ = l 4222 if len(m.LabelNames) > 0 { 4223 for _, s := range m.LabelNames { 4224 l = len(s) 4225 n += 1 + l + sovIngester(uint64(l)) 4226 } 4227 } 4228 return n 4229 } 4230 4231 func (m *UserStatsRequest) Size() (n int) { 4232 if m == nil { 4233 return 0 4234 } 4235 var l int 4236 _ = l 4237 return n 4238 } 4239 4240 func (m *UserStatsResponse) Size() (n int) { 4241 if m == nil { 4242 return 0 4243 } 4244 var l int 4245 _ = l 4246 if m.IngestionRate != 0 { 4247 n += 9 4248 } 4249 if m.NumSeries != 0 { 4250 n += 1 + sovIngester(uint64(m.NumSeries)) 4251 } 4252 if m.ApiIngestionRate != 0 { 4253 n += 9 4254 } 4255 if m.RuleIngestionRate != 0 { 4256 n += 9 4257 } 4258 return n 4259 } 4260 4261 func (m *UserIDStatsResponse) Size() (n int) { 4262 if m == nil { 4263 return 0 4264 } 4265 var l int 4266 _ = l 4267 l = len(m.UserId) 4268 if l > 0 { 4269 n += 1 + l + sovIngester(uint64(l)) 4270 } 4271 if m.Data != nil { 4272 l = m.Data.Size() 4273 n += 1 + l + sovIngester(uint64(l)) 4274 } 4275 return n 4276 } 4277 4278 func (m *UsersStatsResponse) Size() (n int) { 4279 if m == nil { 4280 return 0 4281 } 4282 var l int 4283 _ = l 4284 if len(m.Stats) > 0 { 4285 for _, e := range m.Stats { 4286 l = e.Size() 4287 n += 1 + l + sovIngester(uint64(l)) 4288 } 4289 } 4290 return n 4291 } 4292 4293 func (m *MetricsForLabelMatchersRequest) Size() (n int) { 4294 if m == nil { 4295 return 0 4296 } 4297 var l int 4298 _ = l 4299 if m.StartTimestampMs != 0 { 4300 n += 1 + sovIngester(uint64(m.StartTimestampMs)) 4301 } 4302 if m.EndTimestampMs != 0 { 4303 n += 1 + sovIngester(uint64(m.EndTimestampMs)) 4304 } 4305 if len(m.MatchersSet) > 0 { 4306 for _, e := range m.MatchersSet { 4307 l = e.Size() 4308 n += 1 + l + sovIngester(uint64(l)) 4309 } 4310 } 4311 return n 4312 } 4313 4314 func (m *MetricsForLabelMatchersResponse) Size() (n int) { 4315 if m == nil { 4316 return 0 4317 } 4318 var l int 4319 _ = l 4320 if len(m.Metric) > 0 { 4321 for _, e := range m.Metric { 4322 l = e.Size() 4323 n += 1 + l + sovIngester(uint64(l)) 4324 } 4325 } 4326 return n 4327 } 4328 4329 func (m *MetricsMetadataRequest) Size() (n int) { 4330 if m == nil { 4331 return 0 4332 } 4333 var l int 4334 _ = l 4335 return n 4336 } 4337 4338 func (m *MetricsMetadataResponse) Size() (n int) { 4339 if m == nil { 4340 return 0 4341 } 4342 var l int 4343 _ = l 4344 if len(m.Metadata) > 0 { 4345 for _, e := range m.Metadata { 4346 l = e.Size() 4347 n += 1 + l + sovIngester(uint64(l)) 4348 } 4349 } 4350 return n 4351 } 4352 4353 func (m *TimeSeriesChunk) Size() (n int) { 4354 if m == nil { 4355 return 0 4356 } 4357 var l int 4358 _ = l 4359 l = len(m.FromIngesterId) 4360 if l > 0 { 4361 n += 1 + l + sovIngester(uint64(l)) 4362 } 4363 l = len(m.UserId) 4364 if l > 0 { 4365 n += 1 + l + sovIngester(uint64(l)) 4366 } 4367 if len(m.Labels) > 0 { 4368 for _, e := range m.Labels { 4369 l = e.Size() 4370 n += 1 + l + sovIngester(uint64(l)) 4371 } 4372 } 4373 if len(m.Chunks) > 0 { 4374 for _, e := range m.Chunks { 4375 l = e.Size() 4376 n += 1 + l + sovIngester(uint64(l)) 4377 } 4378 } 4379 return n 4380 } 4381 4382 func (m *Chunk) Size() (n int) { 4383 if m == nil { 4384 return 0 4385 } 4386 var l int 4387 _ = l 4388 if m.StartTimestampMs != 0 { 4389 n += 1 + sovIngester(uint64(m.StartTimestampMs)) 4390 } 4391 if m.EndTimestampMs != 0 { 4392 n += 1 + sovIngester(uint64(m.EndTimestampMs)) 4393 } 4394 if m.Encoding != 0 { 4395 n += 1 + sovIngester(uint64(m.Encoding)) 4396 } 4397 l = len(m.Data) 4398 if l > 0 { 4399 n += 1 + l + sovIngester(uint64(l)) 4400 } 4401 return n 4402 } 4403 4404 func (m *TransferChunksResponse) Size() (n int) { 4405 if m == nil { 4406 return 0 4407 } 4408 var l int 4409 _ = l 4410 return n 4411 } 4412 4413 func (m *LabelMatchers) Size() (n int) { 4414 if m == nil { 4415 return 0 4416 } 4417 var l int 4418 _ = l 4419 if len(m.Matchers) > 0 { 4420 for _, e := range m.Matchers { 4421 l = e.Size() 4422 n += 1 + l + sovIngester(uint64(l)) 4423 } 4424 } 4425 return n 4426 } 4427 4428 func (m *LabelMatcher) Size() (n int) { 4429 if m == nil { 4430 return 0 4431 } 4432 var l int 4433 _ = l 4434 if m.Type != 0 { 4435 n += 1 + sovIngester(uint64(m.Type)) 4436 } 4437 l = len(m.Name) 4438 if l > 0 { 4439 n += 1 + l + sovIngester(uint64(l)) 4440 } 4441 l = len(m.Value) 4442 if l > 0 { 4443 n += 1 + l + sovIngester(uint64(l)) 4444 } 4445 return n 4446 } 4447 4448 func (m *TimeSeriesFile) Size() (n int) { 4449 if m == nil { 4450 return 0 4451 } 4452 var l int 4453 _ = l 4454 l = len(m.FromIngesterId) 4455 if l > 0 { 4456 n += 1 + l + sovIngester(uint64(l)) 4457 } 4458 l = len(m.UserId) 4459 if l > 0 { 4460 n += 1 + l + sovIngester(uint64(l)) 4461 } 4462 l = len(m.Filename) 4463 if l > 0 { 4464 n += 1 + l + sovIngester(uint64(l)) 4465 } 4466 l = len(m.Data) 4467 if l > 0 { 4468 n += 1 + l + sovIngester(uint64(l)) 4469 } 4470 return n 4471 } 4472 4473 func sovIngester(x uint64) (n int) { 4474 return (math_bits.Len64(x|1) + 6) / 7 4475 } 4476 func sozIngester(x uint64) (n int) { 4477 return sovIngester(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 4478 } 4479 func (this *ReadRequest) String() string { 4480 if this == nil { 4481 return "nil" 4482 } 4483 repeatedStringForQueries := "[]*QueryRequest{" 4484 for _, f := range this.Queries { 4485 repeatedStringForQueries += strings.Replace(f.String(), "QueryRequest", "QueryRequest", 1) + "," 4486 } 4487 repeatedStringForQueries += "}" 4488 s := strings.Join([]string{`&ReadRequest{`, 4489 `Queries:` + repeatedStringForQueries + `,`, 4490 `}`, 4491 }, "") 4492 return s 4493 } 4494 func (this *ReadResponse) String() string { 4495 if this == nil { 4496 return "nil" 4497 } 4498 repeatedStringForResults := "[]*QueryResponse{" 4499 for _, f := range this.Results { 4500 repeatedStringForResults += strings.Replace(f.String(), "QueryResponse", "QueryResponse", 1) + "," 4501 } 4502 repeatedStringForResults += "}" 4503 s := strings.Join([]string{`&ReadResponse{`, 4504 `Results:` + repeatedStringForResults + `,`, 4505 `}`, 4506 }, "") 4507 return s 4508 } 4509 func (this *QueryRequest) String() string { 4510 if this == nil { 4511 return "nil" 4512 } 4513 repeatedStringForMatchers := "[]*LabelMatcher{" 4514 for _, f := range this.Matchers { 4515 repeatedStringForMatchers += strings.Replace(f.String(), "LabelMatcher", "LabelMatcher", 1) + "," 4516 } 4517 repeatedStringForMatchers += "}" 4518 s := strings.Join([]string{`&QueryRequest{`, 4519 `StartTimestampMs:` + fmt.Sprintf("%v", this.StartTimestampMs) + `,`, 4520 `EndTimestampMs:` + fmt.Sprintf("%v", this.EndTimestampMs) + `,`, 4521 `Matchers:` + repeatedStringForMatchers + `,`, 4522 `}`, 4523 }, "") 4524 return s 4525 } 4526 func (this *ExemplarQueryRequest) String() string { 4527 if this == nil { 4528 return "nil" 4529 } 4530 repeatedStringForMatchers := "[]*LabelMatchers{" 4531 for _, f := range this.Matchers { 4532 repeatedStringForMatchers += strings.Replace(f.String(), "LabelMatchers", "LabelMatchers", 1) + "," 4533 } 4534 repeatedStringForMatchers += "}" 4535 s := strings.Join([]string{`&ExemplarQueryRequest{`, 4536 `StartTimestampMs:` + fmt.Sprintf("%v", this.StartTimestampMs) + `,`, 4537 `EndTimestampMs:` + fmt.Sprintf("%v", this.EndTimestampMs) + `,`, 4538 `Matchers:` + repeatedStringForMatchers + `,`, 4539 `}`, 4540 }, "") 4541 return s 4542 } 4543 func (this *QueryResponse) String() string { 4544 if this == nil { 4545 return "nil" 4546 } 4547 repeatedStringForTimeseries := "[]TimeSeries{" 4548 for _, f := range this.Timeseries { 4549 repeatedStringForTimeseries += fmt.Sprintf("%v", f) + "," 4550 } 4551 repeatedStringForTimeseries += "}" 4552 s := strings.Join([]string{`&QueryResponse{`, 4553 `Timeseries:` + repeatedStringForTimeseries + `,`, 4554 `}`, 4555 }, "") 4556 return s 4557 } 4558 func (this *QueryStreamResponse) String() string { 4559 if this == nil { 4560 return "nil" 4561 } 4562 repeatedStringForChunkseries := "[]TimeSeriesChunk{" 4563 for _, f := range this.Chunkseries { 4564 repeatedStringForChunkseries += strings.Replace(strings.Replace(f.String(), "TimeSeriesChunk", "TimeSeriesChunk", 1), `&`, ``, 1) + "," 4565 } 4566 repeatedStringForChunkseries += "}" 4567 repeatedStringForTimeseries := "[]TimeSeries{" 4568 for _, f := range this.Timeseries { 4569 repeatedStringForTimeseries += fmt.Sprintf("%v", f) + "," 4570 } 4571 repeatedStringForTimeseries += "}" 4572 s := strings.Join([]string{`&QueryStreamResponse{`, 4573 `Chunkseries:` + repeatedStringForChunkseries + `,`, 4574 `Timeseries:` + repeatedStringForTimeseries + `,`, 4575 `}`, 4576 }, "") 4577 return s 4578 } 4579 func (this *ExemplarQueryResponse) String() string { 4580 if this == nil { 4581 return "nil" 4582 } 4583 repeatedStringForTimeseries := "[]TimeSeries{" 4584 for _, f := range this.Timeseries { 4585 repeatedStringForTimeseries += fmt.Sprintf("%v", f) + "," 4586 } 4587 repeatedStringForTimeseries += "}" 4588 s := strings.Join([]string{`&ExemplarQueryResponse{`, 4589 `Timeseries:` + repeatedStringForTimeseries + `,`, 4590 `}`, 4591 }, "") 4592 return s 4593 } 4594 func (this *LabelValuesRequest) String() string { 4595 if this == nil { 4596 return "nil" 4597 } 4598 s := strings.Join([]string{`&LabelValuesRequest{`, 4599 `LabelName:` + fmt.Sprintf("%v", this.LabelName) + `,`, 4600 `StartTimestampMs:` + fmt.Sprintf("%v", this.StartTimestampMs) + `,`, 4601 `EndTimestampMs:` + fmt.Sprintf("%v", this.EndTimestampMs) + `,`, 4602 `Matchers:` + strings.Replace(this.Matchers.String(), "LabelMatchers", "LabelMatchers", 1) + `,`, 4603 `}`, 4604 }, "") 4605 return s 4606 } 4607 func (this *LabelValuesResponse) String() string { 4608 if this == nil { 4609 return "nil" 4610 } 4611 s := strings.Join([]string{`&LabelValuesResponse{`, 4612 `LabelValues:` + fmt.Sprintf("%v", this.LabelValues) + `,`, 4613 `}`, 4614 }, "") 4615 return s 4616 } 4617 func (this *LabelNamesRequest) String() string { 4618 if this == nil { 4619 return "nil" 4620 } 4621 s := strings.Join([]string{`&LabelNamesRequest{`, 4622 `StartTimestampMs:` + fmt.Sprintf("%v", this.StartTimestampMs) + `,`, 4623 `EndTimestampMs:` + fmt.Sprintf("%v", this.EndTimestampMs) + `,`, 4624 `}`, 4625 }, "") 4626 return s 4627 } 4628 func (this *LabelNamesResponse) String() string { 4629 if this == nil { 4630 return "nil" 4631 } 4632 s := strings.Join([]string{`&LabelNamesResponse{`, 4633 `LabelNames:` + fmt.Sprintf("%v", this.LabelNames) + `,`, 4634 `}`, 4635 }, "") 4636 return s 4637 } 4638 func (this *UserStatsRequest) String() string { 4639 if this == nil { 4640 return "nil" 4641 } 4642 s := strings.Join([]string{`&UserStatsRequest{`, 4643 `}`, 4644 }, "") 4645 return s 4646 } 4647 func (this *UserStatsResponse) String() string { 4648 if this == nil { 4649 return "nil" 4650 } 4651 s := strings.Join([]string{`&UserStatsResponse{`, 4652 `IngestionRate:` + fmt.Sprintf("%v", this.IngestionRate) + `,`, 4653 `NumSeries:` + fmt.Sprintf("%v", this.NumSeries) + `,`, 4654 `ApiIngestionRate:` + fmt.Sprintf("%v", this.ApiIngestionRate) + `,`, 4655 `RuleIngestionRate:` + fmt.Sprintf("%v", this.RuleIngestionRate) + `,`, 4656 `}`, 4657 }, "") 4658 return s 4659 } 4660 func (this *UserIDStatsResponse) String() string { 4661 if this == nil { 4662 return "nil" 4663 } 4664 s := strings.Join([]string{`&UserIDStatsResponse{`, 4665 `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, 4666 `Data:` + strings.Replace(this.Data.String(), "UserStatsResponse", "UserStatsResponse", 1) + `,`, 4667 `}`, 4668 }, "") 4669 return s 4670 } 4671 func (this *UsersStatsResponse) String() string { 4672 if this == nil { 4673 return "nil" 4674 } 4675 repeatedStringForStats := "[]*UserIDStatsResponse{" 4676 for _, f := range this.Stats { 4677 repeatedStringForStats += strings.Replace(f.String(), "UserIDStatsResponse", "UserIDStatsResponse", 1) + "," 4678 } 4679 repeatedStringForStats += "}" 4680 s := strings.Join([]string{`&UsersStatsResponse{`, 4681 `Stats:` + repeatedStringForStats + `,`, 4682 `}`, 4683 }, "") 4684 return s 4685 } 4686 func (this *MetricsForLabelMatchersRequest) String() string { 4687 if this == nil { 4688 return "nil" 4689 } 4690 repeatedStringForMatchersSet := "[]*LabelMatchers{" 4691 for _, f := range this.MatchersSet { 4692 repeatedStringForMatchersSet += strings.Replace(f.String(), "LabelMatchers", "LabelMatchers", 1) + "," 4693 } 4694 repeatedStringForMatchersSet += "}" 4695 s := strings.Join([]string{`&MetricsForLabelMatchersRequest{`, 4696 `StartTimestampMs:` + fmt.Sprintf("%v", this.StartTimestampMs) + `,`, 4697 `EndTimestampMs:` + fmt.Sprintf("%v", this.EndTimestampMs) + `,`, 4698 `MatchersSet:` + repeatedStringForMatchersSet + `,`, 4699 `}`, 4700 }, "") 4701 return s 4702 } 4703 func (this *MetricsForLabelMatchersResponse) String() string { 4704 if this == nil { 4705 return "nil" 4706 } 4707 repeatedStringForMetric := "[]*Metric{" 4708 for _, f := range this.Metric { 4709 repeatedStringForMetric += strings.Replace(fmt.Sprintf("%v", f), "Metric", "cortexpb.Metric", 1) + "," 4710 } 4711 repeatedStringForMetric += "}" 4712 s := strings.Join([]string{`&MetricsForLabelMatchersResponse{`, 4713 `Metric:` + repeatedStringForMetric + `,`, 4714 `}`, 4715 }, "") 4716 return s 4717 } 4718 func (this *MetricsMetadataRequest) String() string { 4719 if this == nil { 4720 return "nil" 4721 } 4722 s := strings.Join([]string{`&MetricsMetadataRequest{`, 4723 `}`, 4724 }, "") 4725 return s 4726 } 4727 func (this *MetricsMetadataResponse) String() string { 4728 if this == nil { 4729 return "nil" 4730 } 4731 repeatedStringForMetadata := "[]*MetricMetadata{" 4732 for _, f := range this.Metadata { 4733 repeatedStringForMetadata += strings.Replace(fmt.Sprintf("%v", f), "MetricMetadata", "cortexpb.MetricMetadata", 1) + "," 4734 } 4735 repeatedStringForMetadata += "}" 4736 s := strings.Join([]string{`&MetricsMetadataResponse{`, 4737 `Metadata:` + repeatedStringForMetadata + `,`, 4738 `}`, 4739 }, "") 4740 return s 4741 } 4742 func (this *TimeSeriesChunk) String() string { 4743 if this == nil { 4744 return "nil" 4745 } 4746 repeatedStringForChunks := "[]Chunk{" 4747 for _, f := range this.Chunks { 4748 repeatedStringForChunks += strings.Replace(strings.Replace(f.String(), "Chunk", "Chunk", 1), `&`, ``, 1) + "," 4749 } 4750 repeatedStringForChunks += "}" 4751 s := strings.Join([]string{`&TimeSeriesChunk{`, 4752 `FromIngesterId:` + fmt.Sprintf("%v", this.FromIngesterId) + `,`, 4753 `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, 4754 `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, 4755 `Chunks:` + repeatedStringForChunks + `,`, 4756 `}`, 4757 }, "") 4758 return s 4759 } 4760 func (this *Chunk) String() string { 4761 if this == nil { 4762 return "nil" 4763 } 4764 s := strings.Join([]string{`&Chunk{`, 4765 `StartTimestampMs:` + fmt.Sprintf("%v", this.StartTimestampMs) + `,`, 4766 `EndTimestampMs:` + fmt.Sprintf("%v", this.EndTimestampMs) + `,`, 4767 `Encoding:` + fmt.Sprintf("%v", this.Encoding) + `,`, 4768 `Data:` + fmt.Sprintf("%v", this.Data) + `,`, 4769 `}`, 4770 }, "") 4771 return s 4772 } 4773 func (this *TransferChunksResponse) String() string { 4774 if this == nil { 4775 return "nil" 4776 } 4777 s := strings.Join([]string{`&TransferChunksResponse{`, 4778 `}`, 4779 }, "") 4780 return s 4781 } 4782 func (this *LabelMatchers) String() string { 4783 if this == nil { 4784 return "nil" 4785 } 4786 repeatedStringForMatchers := "[]*LabelMatcher{" 4787 for _, f := range this.Matchers { 4788 repeatedStringForMatchers += strings.Replace(f.String(), "LabelMatcher", "LabelMatcher", 1) + "," 4789 } 4790 repeatedStringForMatchers += "}" 4791 s := strings.Join([]string{`&LabelMatchers{`, 4792 `Matchers:` + repeatedStringForMatchers + `,`, 4793 `}`, 4794 }, "") 4795 return s 4796 } 4797 func (this *LabelMatcher) String() string { 4798 if this == nil { 4799 return "nil" 4800 } 4801 s := strings.Join([]string{`&LabelMatcher{`, 4802 `Type:` + fmt.Sprintf("%v", this.Type) + `,`, 4803 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 4804 `Value:` + fmt.Sprintf("%v", this.Value) + `,`, 4805 `}`, 4806 }, "") 4807 return s 4808 } 4809 func (this *TimeSeriesFile) String() string { 4810 if this == nil { 4811 return "nil" 4812 } 4813 s := strings.Join([]string{`&TimeSeriesFile{`, 4814 `FromIngesterId:` + fmt.Sprintf("%v", this.FromIngesterId) + `,`, 4815 `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, 4816 `Filename:` + fmt.Sprintf("%v", this.Filename) + `,`, 4817 `Data:` + fmt.Sprintf("%v", this.Data) + `,`, 4818 `}`, 4819 }, "") 4820 return s 4821 } 4822 func valueToStringIngester(v interface{}) string { 4823 rv := reflect.ValueOf(v) 4824 if rv.IsNil() { 4825 return "nil" 4826 } 4827 pv := reflect.Indirect(rv).Interface() 4828 return fmt.Sprintf("*%v", pv) 4829 } 4830 func (m *ReadRequest) Unmarshal(dAtA []byte) error { 4831 l := len(dAtA) 4832 iNdEx := 0 4833 for iNdEx < l { 4834 preIndex := iNdEx 4835 var wire uint64 4836 for shift := uint(0); ; shift += 7 { 4837 if shift >= 64 { 4838 return ErrIntOverflowIngester 4839 } 4840 if iNdEx >= l { 4841 return io.ErrUnexpectedEOF 4842 } 4843 b := dAtA[iNdEx] 4844 iNdEx++ 4845 wire |= uint64(b&0x7F) << shift 4846 if b < 0x80 { 4847 break 4848 } 4849 } 4850 fieldNum := int32(wire >> 3) 4851 wireType := int(wire & 0x7) 4852 if wireType == 4 { 4853 return fmt.Errorf("proto: ReadRequest: wiretype end group for non-group") 4854 } 4855 if fieldNum <= 0 { 4856 return fmt.Errorf("proto: ReadRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4857 } 4858 switch fieldNum { 4859 case 1: 4860 if wireType != 2 { 4861 return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) 4862 } 4863 var msglen int 4864 for shift := uint(0); ; shift += 7 { 4865 if shift >= 64 { 4866 return ErrIntOverflowIngester 4867 } 4868 if iNdEx >= l { 4869 return io.ErrUnexpectedEOF 4870 } 4871 b := dAtA[iNdEx] 4872 iNdEx++ 4873 msglen |= int(b&0x7F) << shift 4874 if b < 0x80 { 4875 break 4876 } 4877 } 4878 if msglen < 0 { 4879 return ErrInvalidLengthIngester 4880 } 4881 postIndex := iNdEx + msglen 4882 if postIndex < 0 { 4883 return ErrInvalidLengthIngester 4884 } 4885 if postIndex > l { 4886 return io.ErrUnexpectedEOF 4887 } 4888 m.Queries = append(m.Queries, &QueryRequest{}) 4889 if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4890 return err 4891 } 4892 iNdEx = postIndex 4893 default: 4894 iNdEx = preIndex 4895 skippy, err := skipIngester(dAtA[iNdEx:]) 4896 if err != nil { 4897 return err 4898 } 4899 if skippy < 0 { 4900 return ErrInvalidLengthIngester 4901 } 4902 if (iNdEx + skippy) < 0 { 4903 return ErrInvalidLengthIngester 4904 } 4905 if (iNdEx + skippy) > l { 4906 return io.ErrUnexpectedEOF 4907 } 4908 iNdEx += skippy 4909 } 4910 } 4911 4912 if iNdEx > l { 4913 return io.ErrUnexpectedEOF 4914 } 4915 return nil 4916 } 4917 func (m *ReadResponse) Unmarshal(dAtA []byte) error { 4918 l := len(dAtA) 4919 iNdEx := 0 4920 for iNdEx < l { 4921 preIndex := iNdEx 4922 var wire uint64 4923 for shift := uint(0); ; shift += 7 { 4924 if shift >= 64 { 4925 return ErrIntOverflowIngester 4926 } 4927 if iNdEx >= l { 4928 return io.ErrUnexpectedEOF 4929 } 4930 b := dAtA[iNdEx] 4931 iNdEx++ 4932 wire |= uint64(b&0x7F) << shift 4933 if b < 0x80 { 4934 break 4935 } 4936 } 4937 fieldNum := int32(wire >> 3) 4938 wireType := int(wire & 0x7) 4939 if wireType == 4 { 4940 return fmt.Errorf("proto: ReadResponse: wiretype end group for non-group") 4941 } 4942 if fieldNum <= 0 { 4943 return fmt.Errorf("proto: ReadResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4944 } 4945 switch fieldNum { 4946 case 1: 4947 if wireType != 2 { 4948 return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) 4949 } 4950 var msglen int 4951 for shift := uint(0); ; shift += 7 { 4952 if shift >= 64 { 4953 return ErrIntOverflowIngester 4954 } 4955 if iNdEx >= l { 4956 return io.ErrUnexpectedEOF 4957 } 4958 b := dAtA[iNdEx] 4959 iNdEx++ 4960 msglen |= int(b&0x7F) << shift 4961 if b < 0x80 { 4962 break 4963 } 4964 } 4965 if msglen < 0 { 4966 return ErrInvalidLengthIngester 4967 } 4968 postIndex := iNdEx + msglen 4969 if postIndex < 0 { 4970 return ErrInvalidLengthIngester 4971 } 4972 if postIndex > l { 4973 return io.ErrUnexpectedEOF 4974 } 4975 m.Results = append(m.Results, &QueryResponse{}) 4976 if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4977 return err 4978 } 4979 iNdEx = postIndex 4980 default: 4981 iNdEx = preIndex 4982 skippy, err := skipIngester(dAtA[iNdEx:]) 4983 if err != nil { 4984 return err 4985 } 4986 if skippy < 0 { 4987 return ErrInvalidLengthIngester 4988 } 4989 if (iNdEx + skippy) < 0 { 4990 return ErrInvalidLengthIngester 4991 } 4992 if (iNdEx + skippy) > l { 4993 return io.ErrUnexpectedEOF 4994 } 4995 iNdEx += skippy 4996 } 4997 } 4998 4999 if iNdEx > l { 5000 return io.ErrUnexpectedEOF 5001 } 5002 return nil 5003 } 5004 func (m *QueryRequest) Unmarshal(dAtA []byte) error { 5005 l := len(dAtA) 5006 iNdEx := 0 5007 for iNdEx < l { 5008 preIndex := iNdEx 5009 var wire uint64 5010 for shift := uint(0); ; shift += 7 { 5011 if shift >= 64 { 5012 return ErrIntOverflowIngester 5013 } 5014 if iNdEx >= l { 5015 return io.ErrUnexpectedEOF 5016 } 5017 b := dAtA[iNdEx] 5018 iNdEx++ 5019 wire |= uint64(b&0x7F) << shift 5020 if b < 0x80 { 5021 break 5022 } 5023 } 5024 fieldNum := int32(wire >> 3) 5025 wireType := int(wire & 0x7) 5026 if wireType == 4 { 5027 return fmt.Errorf("proto: QueryRequest: wiretype end group for non-group") 5028 } 5029 if fieldNum <= 0 { 5030 return fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5031 } 5032 switch fieldNum { 5033 case 1: 5034 if wireType != 0 { 5035 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) 5036 } 5037 m.StartTimestampMs = 0 5038 for shift := uint(0); ; shift += 7 { 5039 if shift >= 64 { 5040 return ErrIntOverflowIngester 5041 } 5042 if iNdEx >= l { 5043 return io.ErrUnexpectedEOF 5044 } 5045 b := dAtA[iNdEx] 5046 iNdEx++ 5047 m.StartTimestampMs |= int64(b&0x7F) << shift 5048 if b < 0x80 { 5049 break 5050 } 5051 } 5052 case 2: 5053 if wireType != 0 { 5054 return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) 5055 } 5056 m.EndTimestampMs = 0 5057 for shift := uint(0); ; shift += 7 { 5058 if shift >= 64 { 5059 return ErrIntOverflowIngester 5060 } 5061 if iNdEx >= l { 5062 return io.ErrUnexpectedEOF 5063 } 5064 b := dAtA[iNdEx] 5065 iNdEx++ 5066 m.EndTimestampMs |= int64(b&0x7F) << shift 5067 if b < 0x80 { 5068 break 5069 } 5070 } 5071 case 3: 5072 if wireType != 2 { 5073 return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) 5074 } 5075 var msglen int 5076 for shift := uint(0); ; shift += 7 { 5077 if shift >= 64 { 5078 return ErrIntOverflowIngester 5079 } 5080 if iNdEx >= l { 5081 return io.ErrUnexpectedEOF 5082 } 5083 b := dAtA[iNdEx] 5084 iNdEx++ 5085 msglen |= int(b&0x7F) << shift 5086 if b < 0x80 { 5087 break 5088 } 5089 } 5090 if msglen < 0 { 5091 return ErrInvalidLengthIngester 5092 } 5093 postIndex := iNdEx + msglen 5094 if postIndex < 0 { 5095 return ErrInvalidLengthIngester 5096 } 5097 if postIndex > l { 5098 return io.ErrUnexpectedEOF 5099 } 5100 m.Matchers = append(m.Matchers, &LabelMatcher{}) 5101 if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5102 return err 5103 } 5104 iNdEx = postIndex 5105 default: 5106 iNdEx = preIndex 5107 skippy, err := skipIngester(dAtA[iNdEx:]) 5108 if err != nil { 5109 return err 5110 } 5111 if skippy < 0 { 5112 return ErrInvalidLengthIngester 5113 } 5114 if (iNdEx + skippy) < 0 { 5115 return ErrInvalidLengthIngester 5116 } 5117 if (iNdEx + skippy) > l { 5118 return io.ErrUnexpectedEOF 5119 } 5120 iNdEx += skippy 5121 } 5122 } 5123 5124 if iNdEx > l { 5125 return io.ErrUnexpectedEOF 5126 } 5127 return nil 5128 } 5129 func (m *ExemplarQueryRequest) Unmarshal(dAtA []byte) error { 5130 l := len(dAtA) 5131 iNdEx := 0 5132 for iNdEx < l { 5133 preIndex := iNdEx 5134 var wire uint64 5135 for shift := uint(0); ; shift += 7 { 5136 if shift >= 64 { 5137 return ErrIntOverflowIngester 5138 } 5139 if iNdEx >= l { 5140 return io.ErrUnexpectedEOF 5141 } 5142 b := dAtA[iNdEx] 5143 iNdEx++ 5144 wire |= uint64(b&0x7F) << shift 5145 if b < 0x80 { 5146 break 5147 } 5148 } 5149 fieldNum := int32(wire >> 3) 5150 wireType := int(wire & 0x7) 5151 if wireType == 4 { 5152 return fmt.Errorf("proto: ExemplarQueryRequest: wiretype end group for non-group") 5153 } 5154 if fieldNum <= 0 { 5155 return fmt.Errorf("proto: ExemplarQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5156 } 5157 switch fieldNum { 5158 case 1: 5159 if wireType != 0 { 5160 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) 5161 } 5162 m.StartTimestampMs = 0 5163 for shift := uint(0); ; shift += 7 { 5164 if shift >= 64 { 5165 return ErrIntOverflowIngester 5166 } 5167 if iNdEx >= l { 5168 return io.ErrUnexpectedEOF 5169 } 5170 b := dAtA[iNdEx] 5171 iNdEx++ 5172 m.StartTimestampMs |= int64(b&0x7F) << shift 5173 if b < 0x80 { 5174 break 5175 } 5176 } 5177 case 2: 5178 if wireType != 0 { 5179 return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) 5180 } 5181 m.EndTimestampMs = 0 5182 for shift := uint(0); ; shift += 7 { 5183 if shift >= 64 { 5184 return ErrIntOverflowIngester 5185 } 5186 if iNdEx >= l { 5187 return io.ErrUnexpectedEOF 5188 } 5189 b := dAtA[iNdEx] 5190 iNdEx++ 5191 m.EndTimestampMs |= int64(b&0x7F) << shift 5192 if b < 0x80 { 5193 break 5194 } 5195 } 5196 case 3: 5197 if wireType != 2 { 5198 return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) 5199 } 5200 var msglen int 5201 for shift := uint(0); ; shift += 7 { 5202 if shift >= 64 { 5203 return ErrIntOverflowIngester 5204 } 5205 if iNdEx >= l { 5206 return io.ErrUnexpectedEOF 5207 } 5208 b := dAtA[iNdEx] 5209 iNdEx++ 5210 msglen |= int(b&0x7F) << shift 5211 if b < 0x80 { 5212 break 5213 } 5214 } 5215 if msglen < 0 { 5216 return ErrInvalidLengthIngester 5217 } 5218 postIndex := iNdEx + msglen 5219 if postIndex < 0 { 5220 return ErrInvalidLengthIngester 5221 } 5222 if postIndex > l { 5223 return io.ErrUnexpectedEOF 5224 } 5225 m.Matchers = append(m.Matchers, &LabelMatchers{}) 5226 if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5227 return err 5228 } 5229 iNdEx = postIndex 5230 default: 5231 iNdEx = preIndex 5232 skippy, err := skipIngester(dAtA[iNdEx:]) 5233 if err != nil { 5234 return err 5235 } 5236 if skippy < 0 { 5237 return ErrInvalidLengthIngester 5238 } 5239 if (iNdEx + skippy) < 0 { 5240 return ErrInvalidLengthIngester 5241 } 5242 if (iNdEx + skippy) > l { 5243 return io.ErrUnexpectedEOF 5244 } 5245 iNdEx += skippy 5246 } 5247 } 5248 5249 if iNdEx > l { 5250 return io.ErrUnexpectedEOF 5251 } 5252 return nil 5253 } 5254 func (m *QueryResponse) Unmarshal(dAtA []byte) error { 5255 l := len(dAtA) 5256 iNdEx := 0 5257 for iNdEx < l { 5258 preIndex := iNdEx 5259 var wire uint64 5260 for shift := uint(0); ; shift += 7 { 5261 if shift >= 64 { 5262 return ErrIntOverflowIngester 5263 } 5264 if iNdEx >= l { 5265 return io.ErrUnexpectedEOF 5266 } 5267 b := dAtA[iNdEx] 5268 iNdEx++ 5269 wire |= uint64(b&0x7F) << shift 5270 if b < 0x80 { 5271 break 5272 } 5273 } 5274 fieldNum := int32(wire >> 3) 5275 wireType := int(wire & 0x7) 5276 if wireType == 4 { 5277 return fmt.Errorf("proto: QueryResponse: wiretype end group for non-group") 5278 } 5279 if fieldNum <= 0 { 5280 return fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5281 } 5282 switch fieldNum { 5283 case 1: 5284 if wireType != 2 { 5285 return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) 5286 } 5287 var msglen int 5288 for shift := uint(0); ; shift += 7 { 5289 if shift >= 64 { 5290 return ErrIntOverflowIngester 5291 } 5292 if iNdEx >= l { 5293 return io.ErrUnexpectedEOF 5294 } 5295 b := dAtA[iNdEx] 5296 iNdEx++ 5297 msglen |= int(b&0x7F) << shift 5298 if b < 0x80 { 5299 break 5300 } 5301 } 5302 if msglen < 0 { 5303 return ErrInvalidLengthIngester 5304 } 5305 postIndex := iNdEx + msglen 5306 if postIndex < 0 { 5307 return ErrInvalidLengthIngester 5308 } 5309 if postIndex > l { 5310 return io.ErrUnexpectedEOF 5311 } 5312 m.Timeseries = append(m.Timeseries, cortexpb.TimeSeries{}) 5313 if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5314 return err 5315 } 5316 iNdEx = postIndex 5317 default: 5318 iNdEx = preIndex 5319 skippy, err := skipIngester(dAtA[iNdEx:]) 5320 if err != nil { 5321 return err 5322 } 5323 if skippy < 0 { 5324 return ErrInvalidLengthIngester 5325 } 5326 if (iNdEx + skippy) < 0 { 5327 return ErrInvalidLengthIngester 5328 } 5329 if (iNdEx + skippy) > l { 5330 return io.ErrUnexpectedEOF 5331 } 5332 iNdEx += skippy 5333 } 5334 } 5335 5336 if iNdEx > l { 5337 return io.ErrUnexpectedEOF 5338 } 5339 return nil 5340 } 5341 func (m *QueryStreamResponse) Unmarshal(dAtA []byte) error { 5342 l := len(dAtA) 5343 iNdEx := 0 5344 for iNdEx < l { 5345 preIndex := iNdEx 5346 var wire uint64 5347 for shift := uint(0); ; shift += 7 { 5348 if shift >= 64 { 5349 return ErrIntOverflowIngester 5350 } 5351 if iNdEx >= l { 5352 return io.ErrUnexpectedEOF 5353 } 5354 b := dAtA[iNdEx] 5355 iNdEx++ 5356 wire |= uint64(b&0x7F) << shift 5357 if b < 0x80 { 5358 break 5359 } 5360 } 5361 fieldNum := int32(wire >> 3) 5362 wireType := int(wire & 0x7) 5363 if wireType == 4 { 5364 return fmt.Errorf("proto: QueryStreamResponse: wiretype end group for non-group") 5365 } 5366 if fieldNum <= 0 { 5367 return fmt.Errorf("proto: QueryStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5368 } 5369 switch fieldNum { 5370 case 1: 5371 if wireType != 2 { 5372 return fmt.Errorf("proto: wrong wireType = %d for field Chunkseries", wireType) 5373 } 5374 var msglen int 5375 for shift := uint(0); ; shift += 7 { 5376 if shift >= 64 { 5377 return ErrIntOverflowIngester 5378 } 5379 if iNdEx >= l { 5380 return io.ErrUnexpectedEOF 5381 } 5382 b := dAtA[iNdEx] 5383 iNdEx++ 5384 msglen |= int(b&0x7F) << shift 5385 if b < 0x80 { 5386 break 5387 } 5388 } 5389 if msglen < 0 { 5390 return ErrInvalidLengthIngester 5391 } 5392 postIndex := iNdEx + msglen 5393 if postIndex < 0 { 5394 return ErrInvalidLengthIngester 5395 } 5396 if postIndex > l { 5397 return io.ErrUnexpectedEOF 5398 } 5399 m.Chunkseries = append(m.Chunkseries, TimeSeriesChunk{}) 5400 if err := m.Chunkseries[len(m.Chunkseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5401 return err 5402 } 5403 iNdEx = postIndex 5404 case 2: 5405 if wireType != 2 { 5406 return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) 5407 } 5408 var msglen int 5409 for shift := uint(0); ; shift += 7 { 5410 if shift >= 64 { 5411 return ErrIntOverflowIngester 5412 } 5413 if iNdEx >= l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 b := dAtA[iNdEx] 5417 iNdEx++ 5418 msglen |= int(b&0x7F) << shift 5419 if b < 0x80 { 5420 break 5421 } 5422 } 5423 if msglen < 0 { 5424 return ErrInvalidLengthIngester 5425 } 5426 postIndex := iNdEx + msglen 5427 if postIndex < 0 { 5428 return ErrInvalidLengthIngester 5429 } 5430 if postIndex > l { 5431 return io.ErrUnexpectedEOF 5432 } 5433 m.Timeseries = append(m.Timeseries, cortexpb.TimeSeries{}) 5434 if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5435 return err 5436 } 5437 iNdEx = postIndex 5438 default: 5439 iNdEx = preIndex 5440 skippy, err := skipIngester(dAtA[iNdEx:]) 5441 if err != nil { 5442 return err 5443 } 5444 if skippy < 0 { 5445 return ErrInvalidLengthIngester 5446 } 5447 if (iNdEx + skippy) < 0 { 5448 return ErrInvalidLengthIngester 5449 } 5450 if (iNdEx + skippy) > l { 5451 return io.ErrUnexpectedEOF 5452 } 5453 iNdEx += skippy 5454 } 5455 } 5456 5457 if iNdEx > l { 5458 return io.ErrUnexpectedEOF 5459 } 5460 return nil 5461 } 5462 func (m *ExemplarQueryResponse) Unmarshal(dAtA []byte) error { 5463 l := len(dAtA) 5464 iNdEx := 0 5465 for iNdEx < l { 5466 preIndex := iNdEx 5467 var wire uint64 5468 for shift := uint(0); ; shift += 7 { 5469 if shift >= 64 { 5470 return ErrIntOverflowIngester 5471 } 5472 if iNdEx >= l { 5473 return io.ErrUnexpectedEOF 5474 } 5475 b := dAtA[iNdEx] 5476 iNdEx++ 5477 wire |= uint64(b&0x7F) << shift 5478 if b < 0x80 { 5479 break 5480 } 5481 } 5482 fieldNum := int32(wire >> 3) 5483 wireType := int(wire & 0x7) 5484 if wireType == 4 { 5485 return fmt.Errorf("proto: ExemplarQueryResponse: wiretype end group for non-group") 5486 } 5487 if fieldNum <= 0 { 5488 return fmt.Errorf("proto: ExemplarQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5489 } 5490 switch fieldNum { 5491 case 1: 5492 if wireType != 2 { 5493 return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) 5494 } 5495 var msglen int 5496 for shift := uint(0); ; shift += 7 { 5497 if shift >= 64 { 5498 return ErrIntOverflowIngester 5499 } 5500 if iNdEx >= l { 5501 return io.ErrUnexpectedEOF 5502 } 5503 b := dAtA[iNdEx] 5504 iNdEx++ 5505 msglen |= int(b&0x7F) << shift 5506 if b < 0x80 { 5507 break 5508 } 5509 } 5510 if msglen < 0 { 5511 return ErrInvalidLengthIngester 5512 } 5513 postIndex := iNdEx + msglen 5514 if postIndex < 0 { 5515 return ErrInvalidLengthIngester 5516 } 5517 if postIndex > l { 5518 return io.ErrUnexpectedEOF 5519 } 5520 m.Timeseries = append(m.Timeseries, cortexpb.TimeSeries{}) 5521 if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5522 return err 5523 } 5524 iNdEx = postIndex 5525 default: 5526 iNdEx = preIndex 5527 skippy, err := skipIngester(dAtA[iNdEx:]) 5528 if err != nil { 5529 return err 5530 } 5531 if skippy < 0 { 5532 return ErrInvalidLengthIngester 5533 } 5534 if (iNdEx + skippy) < 0 { 5535 return ErrInvalidLengthIngester 5536 } 5537 if (iNdEx + skippy) > l { 5538 return io.ErrUnexpectedEOF 5539 } 5540 iNdEx += skippy 5541 } 5542 } 5543 5544 if iNdEx > l { 5545 return io.ErrUnexpectedEOF 5546 } 5547 return nil 5548 } 5549 func (m *LabelValuesRequest) Unmarshal(dAtA []byte) error { 5550 l := len(dAtA) 5551 iNdEx := 0 5552 for iNdEx < l { 5553 preIndex := iNdEx 5554 var wire uint64 5555 for shift := uint(0); ; shift += 7 { 5556 if shift >= 64 { 5557 return ErrIntOverflowIngester 5558 } 5559 if iNdEx >= l { 5560 return io.ErrUnexpectedEOF 5561 } 5562 b := dAtA[iNdEx] 5563 iNdEx++ 5564 wire |= uint64(b&0x7F) << shift 5565 if b < 0x80 { 5566 break 5567 } 5568 } 5569 fieldNum := int32(wire >> 3) 5570 wireType := int(wire & 0x7) 5571 if wireType == 4 { 5572 return fmt.Errorf("proto: LabelValuesRequest: wiretype end group for non-group") 5573 } 5574 if fieldNum <= 0 { 5575 return fmt.Errorf("proto: LabelValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5576 } 5577 switch fieldNum { 5578 case 1: 5579 if wireType != 2 { 5580 return fmt.Errorf("proto: wrong wireType = %d for field LabelName", wireType) 5581 } 5582 var stringLen uint64 5583 for shift := uint(0); ; shift += 7 { 5584 if shift >= 64 { 5585 return ErrIntOverflowIngester 5586 } 5587 if iNdEx >= l { 5588 return io.ErrUnexpectedEOF 5589 } 5590 b := dAtA[iNdEx] 5591 iNdEx++ 5592 stringLen |= uint64(b&0x7F) << shift 5593 if b < 0x80 { 5594 break 5595 } 5596 } 5597 intStringLen := int(stringLen) 5598 if intStringLen < 0 { 5599 return ErrInvalidLengthIngester 5600 } 5601 postIndex := iNdEx + intStringLen 5602 if postIndex < 0 { 5603 return ErrInvalidLengthIngester 5604 } 5605 if postIndex > l { 5606 return io.ErrUnexpectedEOF 5607 } 5608 m.LabelName = string(dAtA[iNdEx:postIndex]) 5609 iNdEx = postIndex 5610 case 2: 5611 if wireType != 0 { 5612 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) 5613 } 5614 m.StartTimestampMs = 0 5615 for shift := uint(0); ; shift += 7 { 5616 if shift >= 64 { 5617 return ErrIntOverflowIngester 5618 } 5619 if iNdEx >= l { 5620 return io.ErrUnexpectedEOF 5621 } 5622 b := dAtA[iNdEx] 5623 iNdEx++ 5624 m.StartTimestampMs |= int64(b&0x7F) << shift 5625 if b < 0x80 { 5626 break 5627 } 5628 } 5629 case 3: 5630 if wireType != 0 { 5631 return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) 5632 } 5633 m.EndTimestampMs = 0 5634 for shift := uint(0); ; shift += 7 { 5635 if shift >= 64 { 5636 return ErrIntOverflowIngester 5637 } 5638 if iNdEx >= l { 5639 return io.ErrUnexpectedEOF 5640 } 5641 b := dAtA[iNdEx] 5642 iNdEx++ 5643 m.EndTimestampMs |= int64(b&0x7F) << shift 5644 if b < 0x80 { 5645 break 5646 } 5647 } 5648 case 4: 5649 if wireType != 2 { 5650 return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) 5651 } 5652 var msglen int 5653 for shift := uint(0); ; shift += 7 { 5654 if shift >= 64 { 5655 return ErrIntOverflowIngester 5656 } 5657 if iNdEx >= l { 5658 return io.ErrUnexpectedEOF 5659 } 5660 b := dAtA[iNdEx] 5661 iNdEx++ 5662 msglen |= int(b&0x7F) << shift 5663 if b < 0x80 { 5664 break 5665 } 5666 } 5667 if msglen < 0 { 5668 return ErrInvalidLengthIngester 5669 } 5670 postIndex := iNdEx + msglen 5671 if postIndex < 0 { 5672 return ErrInvalidLengthIngester 5673 } 5674 if postIndex > l { 5675 return io.ErrUnexpectedEOF 5676 } 5677 if m.Matchers == nil { 5678 m.Matchers = &LabelMatchers{} 5679 } 5680 if err := m.Matchers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5681 return err 5682 } 5683 iNdEx = postIndex 5684 default: 5685 iNdEx = preIndex 5686 skippy, err := skipIngester(dAtA[iNdEx:]) 5687 if err != nil { 5688 return err 5689 } 5690 if skippy < 0 { 5691 return ErrInvalidLengthIngester 5692 } 5693 if (iNdEx + skippy) < 0 { 5694 return ErrInvalidLengthIngester 5695 } 5696 if (iNdEx + skippy) > l { 5697 return io.ErrUnexpectedEOF 5698 } 5699 iNdEx += skippy 5700 } 5701 } 5702 5703 if iNdEx > l { 5704 return io.ErrUnexpectedEOF 5705 } 5706 return nil 5707 } 5708 func (m *LabelValuesResponse) Unmarshal(dAtA []byte) error { 5709 l := len(dAtA) 5710 iNdEx := 0 5711 for iNdEx < l { 5712 preIndex := iNdEx 5713 var wire uint64 5714 for shift := uint(0); ; shift += 7 { 5715 if shift >= 64 { 5716 return ErrIntOverflowIngester 5717 } 5718 if iNdEx >= l { 5719 return io.ErrUnexpectedEOF 5720 } 5721 b := dAtA[iNdEx] 5722 iNdEx++ 5723 wire |= uint64(b&0x7F) << shift 5724 if b < 0x80 { 5725 break 5726 } 5727 } 5728 fieldNum := int32(wire >> 3) 5729 wireType := int(wire & 0x7) 5730 if wireType == 4 { 5731 return fmt.Errorf("proto: LabelValuesResponse: wiretype end group for non-group") 5732 } 5733 if fieldNum <= 0 { 5734 return fmt.Errorf("proto: LabelValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5735 } 5736 switch fieldNum { 5737 case 1: 5738 if wireType != 2 { 5739 return fmt.Errorf("proto: wrong wireType = %d for field LabelValues", wireType) 5740 } 5741 var stringLen uint64 5742 for shift := uint(0); ; shift += 7 { 5743 if shift >= 64 { 5744 return ErrIntOverflowIngester 5745 } 5746 if iNdEx >= l { 5747 return io.ErrUnexpectedEOF 5748 } 5749 b := dAtA[iNdEx] 5750 iNdEx++ 5751 stringLen |= uint64(b&0x7F) << shift 5752 if b < 0x80 { 5753 break 5754 } 5755 } 5756 intStringLen := int(stringLen) 5757 if intStringLen < 0 { 5758 return ErrInvalidLengthIngester 5759 } 5760 postIndex := iNdEx + intStringLen 5761 if postIndex < 0 { 5762 return ErrInvalidLengthIngester 5763 } 5764 if postIndex > l { 5765 return io.ErrUnexpectedEOF 5766 } 5767 m.LabelValues = append(m.LabelValues, string(dAtA[iNdEx:postIndex])) 5768 iNdEx = postIndex 5769 default: 5770 iNdEx = preIndex 5771 skippy, err := skipIngester(dAtA[iNdEx:]) 5772 if err != nil { 5773 return err 5774 } 5775 if skippy < 0 { 5776 return ErrInvalidLengthIngester 5777 } 5778 if (iNdEx + skippy) < 0 { 5779 return ErrInvalidLengthIngester 5780 } 5781 if (iNdEx + skippy) > l { 5782 return io.ErrUnexpectedEOF 5783 } 5784 iNdEx += skippy 5785 } 5786 } 5787 5788 if iNdEx > l { 5789 return io.ErrUnexpectedEOF 5790 } 5791 return nil 5792 } 5793 func (m *LabelNamesRequest) Unmarshal(dAtA []byte) error { 5794 l := len(dAtA) 5795 iNdEx := 0 5796 for iNdEx < l { 5797 preIndex := iNdEx 5798 var wire uint64 5799 for shift := uint(0); ; shift += 7 { 5800 if shift >= 64 { 5801 return ErrIntOverflowIngester 5802 } 5803 if iNdEx >= l { 5804 return io.ErrUnexpectedEOF 5805 } 5806 b := dAtA[iNdEx] 5807 iNdEx++ 5808 wire |= uint64(b&0x7F) << shift 5809 if b < 0x80 { 5810 break 5811 } 5812 } 5813 fieldNum := int32(wire >> 3) 5814 wireType := int(wire & 0x7) 5815 if wireType == 4 { 5816 return fmt.Errorf("proto: LabelNamesRequest: wiretype end group for non-group") 5817 } 5818 if fieldNum <= 0 { 5819 return fmt.Errorf("proto: LabelNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5820 } 5821 switch fieldNum { 5822 case 1: 5823 if wireType != 0 { 5824 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) 5825 } 5826 m.StartTimestampMs = 0 5827 for shift := uint(0); ; shift += 7 { 5828 if shift >= 64 { 5829 return ErrIntOverflowIngester 5830 } 5831 if iNdEx >= l { 5832 return io.ErrUnexpectedEOF 5833 } 5834 b := dAtA[iNdEx] 5835 iNdEx++ 5836 m.StartTimestampMs |= int64(b&0x7F) << shift 5837 if b < 0x80 { 5838 break 5839 } 5840 } 5841 case 2: 5842 if wireType != 0 { 5843 return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) 5844 } 5845 m.EndTimestampMs = 0 5846 for shift := uint(0); ; shift += 7 { 5847 if shift >= 64 { 5848 return ErrIntOverflowIngester 5849 } 5850 if iNdEx >= l { 5851 return io.ErrUnexpectedEOF 5852 } 5853 b := dAtA[iNdEx] 5854 iNdEx++ 5855 m.EndTimestampMs |= int64(b&0x7F) << shift 5856 if b < 0x80 { 5857 break 5858 } 5859 } 5860 default: 5861 iNdEx = preIndex 5862 skippy, err := skipIngester(dAtA[iNdEx:]) 5863 if err != nil { 5864 return err 5865 } 5866 if skippy < 0 { 5867 return ErrInvalidLengthIngester 5868 } 5869 if (iNdEx + skippy) < 0 { 5870 return ErrInvalidLengthIngester 5871 } 5872 if (iNdEx + skippy) > l { 5873 return io.ErrUnexpectedEOF 5874 } 5875 iNdEx += skippy 5876 } 5877 } 5878 5879 if iNdEx > l { 5880 return io.ErrUnexpectedEOF 5881 } 5882 return nil 5883 } 5884 func (m *LabelNamesResponse) Unmarshal(dAtA []byte) error { 5885 l := len(dAtA) 5886 iNdEx := 0 5887 for iNdEx < l { 5888 preIndex := iNdEx 5889 var wire uint64 5890 for shift := uint(0); ; shift += 7 { 5891 if shift >= 64 { 5892 return ErrIntOverflowIngester 5893 } 5894 if iNdEx >= l { 5895 return io.ErrUnexpectedEOF 5896 } 5897 b := dAtA[iNdEx] 5898 iNdEx++ 5899 wire |= uint64(b&0x7F) << shift 5900 if b < 0x80 { 5901 break 5902 } 5903 } 5904 fieldNum := int32(wire >> 3) 5905 wireType := int(wire & 0x7) 5906 if wireType == 4 { 5907 return fmt.Errorf("proto: LabelNamesResponse: wiretype end group for non-group") 5908 } 5909 if fieldNum <= 0 { 5910 return fmt.Errorf("proto: LabelNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5911 } 5912 switch fieldNum { 5913 case 1: 5914 if wireType != 2 { 5915 return fmt.Errorf("proto: wrong wireType = %d for field LabelNames", wireType) 5916 } 5917 var stringLen uint64 5918 for shift := uint(0); ; shift += 7 { 5919 if shift >= 64 { 5920 return ErrIntOverflowIngester 5921 } 5922 if iNdEx >= l { 5923 return io.ErrUnexpectedEOF 5924 } 5925 b := dAtA[iNdEx] 5926 iNdEx++ 5927 stringLen |= uint64(b&0x7F) << shift 5928 if b < 0x80 { 5929 break 5930 } 5931 } 5932 intStringLen := int(stringLen) 5933 if intStringLen < 0 { 5934 return ErrInvalidLengthIngester 5935 } 5936 postIndex := iNdEx + intStringLen 5937 if postIndex < 0 { 5938 return ErrInvalidLengthIngester 5939 } 5940 if postIndex > l { 5941 return io.ErrUnexpectedEOF 5942 } 5943 m.LabelNames = append(m.LabelNames, string(dAtA[iNdEx:postIndex])) 5944 iNdEx = postIndex 5945 default: 5946 iNdEx = preIndex 5947 skippy, err := skipIngester(dAtA[iNdEx:]) 5948 if err != nil { 5949 return err 5950 } 5951 if skippy < 0 { 5952 return ErrInvalidLengthIngester 5953 } 5954 if (iNdEx + skippy) < 0 { 5955 return ErrInvalidLengthIngester 5956 } 5957 if (iNdEx + skippy) > l { 5958 return io.ErrUnexpectedEOF 5959 } 5960 iNdEx += skippy 5961 } 5962 } 5963 5964 if iNdEx > l { 5965 return io.ErrUnexpectedEOF 5966 } 5967 return nil 5968 } 5969 func (m *UserStatsRequest) Unmarshal(dAtA []byte) error { 5970 l := len(dAtA) 5971 iNdEx := 0 5972 for iNdEx < l { 5973 preIndex := iNdEx 5974 var wire uint64 5975 for shift := uint(0); ; shift += 7 { 5976 if shift >= 64 { 5977 return ErrIntOverflowIngester 5978 } 5979 if iNdEx >= l { 5980 return io.ErrUnexpectedEOF 5981 } 5982 b := dAtA[iNdEx] 5983 iNdEx++ 5984 wire |= uint64(b&0x7F) << shift 5985 if b < 0x80 { 5986 break 5987 } 5988 } 5989 fieldNum := int32(wire >> 3) 5990 wireType := int(wire & 0x7) 5991 if wireType == 4 { 5992 return fmt.Errorf("proto: UserStatsRequest: wiretype end group for non-group") 5993 } 5994 if fieldNum <= 0 { 5995 return fmt.Errorf("proto: UserStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5996 } 5997 switch fieldNum { 5998 default: 5999 iNdEx = preIndex 6000 skippy, err := skipIngester(dAtA[iNdEx:]) 6001 if err != nil { 6002 return err 6003 } 6004 if skippy < 0 { 6005 return ErrInvalidLengthIngester 6006 } 6007 if (iNdEx + skippy) < 0 { 6008 return ErrInvalidLengthIngester 6009 } 6010 if (iNdEx + skippy) > l { 6011 return io.ErrUnexpectedEOF 6012 } 6013 iNdEx += skippy 6014 } 6015 } 6016 6017 if iNdEx > l { 6018 return io.ErrUnexpectedEOF 6019 } 6020 return nil 6021 } 6022 func (m *UserStatsResponse) Unmarshal(dAtA []byte) error { 6023 l := len(dAtA) 6024 iNdEx := 0 6025 for iNdEx < l { 6026 preIndex := iNdEx 6027 var wire uint64 6028 for shift := uint(0); ; shift += 7 { 6029 if shift >= 64 { 6030 return ErrIntOverflowIngester 6031 } 6032 if iNdEx >= l { 6033 return io.ErrUnexpectedEOF 6034 } 6035 b := dAtA[iNdEx] 6036 iNdEx++ 6037 wire |= uint64(b&0x7F) << shift 6038 if b < 0x80 { 6039 break 6040 } 6041 } 6042 fieldNum := int32(wire >> 3) 6043 wireType := int(wire & 0x7) 6044 if wireType == 4 { 6045 return fmt.Errorf("proto: UserStatsResponse: wiretype end group for non-group") 6046 } 6047 if fieldNum <= 0 { 6048 return fmt.Errorf("proto: UserStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6049 } 6050 switch fieldNum { 6051 case 1: 6052 if wireType != 1 { 6053 return fmt.Errorf("proto: wrong wireType = %d for field IngestionRate", wireType) 6054 } 6055 var v uint64 6056 if (iNdEx + 8) > l { 6057 return io.ErrUnexpectedEOF 6058 } 6059 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 6060 iNdEx += 8 6061 m.IngestionRate = float64(math.Float64frombits(v)) 6062 case 2: 6063 if wireType != 0 { 6064 return fmt.Errorf("proto: wrong wireType = %d for field NumSeries", wireType) 6065 } 6066 m.NumSeries = 0 6067 for shift := uint(0); ; shift += 7 { 6068 if shift >= 64 { 6069 return ErrIntOverflowIngester 6070 } 6071 if iNdEx >= l { 6072 return io.ErrUnexpectedEOF 6073 } 6074 b := dAtA[iNdEx] 6075 iNdEx++ 6076 m.NumSeries |= uint64(b&0x7F) << shift 6077 if b < 0x80 { 6078 break 6079 } 6080 } 6081 case 3: 6082 if wireType != 1 { 6083 return fmt.Errorf("proto: wrong wireType = %d for field ApiIngestionRate", wireType) 6084 } 6085 var v uint64 6086 if (iNdEx + 8) > l { 6087 return io.ErrUnexpectedEOF 6088 } 6089 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 6090 iNdEx += 8 6091 m.ApiIngestionRate = float64(math.Float64frombits(v)) 6092 case 4: 6093 if wireType != 1 { 6094 return fmt.Errorf("proto: wrong wireType = %d for field RuleIngestionRate", wireType) 6095 } 6096 var v uint64 6097 if (iNdEx + 8) > l { 6098 return io.ErrUnexpectedEOF 6099 } 6100 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 6101 iNdEx += 8 6102 m.RuleIngestionRate = float64(math.Float64frombits(v)) 6103 default: 6104 iNdEx = preIndex 6105 skippy, err := skipIngester(dAtA[iNdEx:]) 6106 if err != nil { 6107 return err 6108 } 6109 if skippy < 0 { 6110 return ErrInvalidLengthIngester 6111 } 6112 if (iNdEx + skippy) < 0 { 6113 return ErrInvalidLengthIngester 6114 } 6115 if (iNdEx + skippy) > l { 6116 return io.ErrUnexpectedEOF 6117 } 6118 iNdEx += skippy 6119 } 6120 } 6121 6122 if iNdEx > l { 6123 return io.ErrUnexpectedEOF 6124 } 6125 return nil 6126 } 6127 func (m *UserIDStatsResponse) Unmarshal(dAtA []byte) error { 6128 l := len(dAtA) 6129 iNdEx := 0 6130 for iNdEx < l { 6131 preIndex := iNdEx 6132 var wire uint64 6133 for shift := uint(0); ; shift += 7 { 6134 if shift >= 64 { 6135 return ErrIntOverflowIngester 6136 } 6137 if iNdEx >= l { 6138 return io.ErrUnexpectedEOF 6139 } 6140 b := dAtA[iNdEx] 6141 iNdEx++ 6142 wire |= uint64(b&0x7F) << shift 6143 if b < 0x80 { 6144 break 6145 } 6146 } 6147 fieldNum := int32(wire >> 3) 6148 wireType := int(wire & 0x7) 6149 if wireType == 4 { 6150 return fmt.Errorf("proto: UserIDStatsResponse: wiretype end group for non-group") 6151 } 6152 if fieldNum <= 0 { 6153 return fmt.Errorf("proto: UserIDStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6154 } 6155 switch fieldNum { 6156 case 1: 6157 if wireType != 2 { 6158 return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) 6159 } 6160 var stringLen uint64 6161 for shift := uint(0); ; shift += 7 { 6162 if shift >= 64 { 6163 return ErrIntOverflowIngester 6164 } 6165 if iNdEx >= l { 6166 return io.ErrUnexpectedEOF 6167 } 6168 b := dAtA[iNdEx] 6169 iNdEx++ 6170 stringLen |= uint64(b&0x7F) << shift 6171 if b < 0x80 { 6172 break 6173 } 6174 } 6175 intStringLen := int(stringLen) 6176 if intStringLen < 0 { 6177 return ErrInvalidLengthIngester 6178 } 6179 postIndex := iNdEx + intStringLen 6180 if postIndex < 0 { 6181 return ErrInvalidLengthIngester 6182 } 6183 if postIndex > l { 6184 return io.ErrUnexpectedEOF 6185 } 6186 m.UserId = string(dAtA[iNdEx:postIndex]) 6187 iNdEx = postIndex 6188 case 2: 6189 if wireType != 2 { 6190 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 6191 } 6192 var msglen int 6193 for shift := uint(0); ; shift += 7 { 6194 if shift >= 64 { 6195 return ErrIntOverflowIngester 6196 } 6197 if iNdEx >= l { 6198 return io.ErrUnexpectedEOF 6199 } 6200 b := dAtA[iNdEx] 6201 iNdEx++ 6202 msglen |= int(b&0x7F) << shift 6203 if b < 0x80 { 6204 break 6205 } 6206 } 6207 if msglen < 0 { 6208 return ErrInvalidLengthIngester 6209 } 6210 postIndex := iNdEx + msglen 6211 if postIndex < 0 { 6212 return ErrInvalidLengthIngester 6213 } 6214 if postIndex > l { 6215 return io.ErrUnexpectedEOF 6216 } 6217 if m.Data == nil { 6218 m.Data = &UserStatsResponse{} 6219 } 6220 if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6221 return err 6222 } 6223 iNdEx = postIndex 6224 default: 6225 iNdEx = preIndex 6226 skippy, err := skipIngester(dAtA[iNdEx:]) 6227 if err != nil { 6228 return err 6229 } 6230 if skippy < 0 { 6231 return ErrInvalidLengthIngester 6232 } 6233 if (iNdEx + skippy) < 0 { 6234 return ErrInvalidLengthIngester 6235 } 6236 if (iNdEx + skippy) > l { 6237 return io.ErrUnexpectedEOF 6238 } 6239 iNdEx += skippy 6240 } 6241 } 6242 6243 if iNdEx > l { 6244 return io.ErrUnexpectedEOF 6245 } 6246 return nil 6247 } 6248 func (m *UsersStatsResponse) Unmarshal(dAtA []byte) error { 6249 l := len(dAtA) 6250 iNdEx := 0 6251 for iNdEx < l { 6252 preIndex := iNdEx 6253 var wire uint64 6254 for shift := uint(0); ; shift += 7 { 6255 if shift >= 64 { 6256 return ErrIntOverflowIngester 6257 } 6258 if iNdEx >= l { 6259 return io.ErrUnexpectedEOF 6260 } 6261 b := dAtA[iNdEx] 6262 iNdEx++ 6263 wire |= uint64(b&0x7F) << shift 6264 if b < 0x80 { 6265 break 6266 } 6267 } 6268 fieldNum := int32(wire >> 3) 6269 wireType := int(wire & 0x7) 6270 if wireType == 4 { 6271 return fmt.Errorf("proto: UsersStatsResponse: wiretype end group for non-group") 6272 } 6273 if fieldNum <= 0 { 6274 return fmt.Errorf("proto: UsersStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6275 } 6276 switch fieldNum { 6277 case 1: 6278 if wireType != 2 { 6279 return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) 6280 } 6281 var msglen int 6282 for shift := uint(0); ; shift += 7 { 6283 if shift >= 64 { 6284 return ErrIntOverflowIngester 6285 } 6286 if iNdEx >= l { 6287 return io.ErrUnexpectedEOF 6288 } 6289 b := dAtA[iNdEx] 6290 iNdEx++ 6291 msglen |= int(b&0x7F) << shift 6292 if b < 0x80 { 6293 break 6294 } 6295 } 6296 if msglen < 0 { 6297 return ErrInvalidLengthIngester 6298 } 6299 postIndex := iNdEx + msglen 6300 if postIndex < 0 { 6301 return ErrInvalidLengthIngester 6302 } 6303 if postIndex > l { 6304 return io.ErrUnexpectedEOF 6305 } 6306 m.Stats = append(m.Stats, &UserIDStatsResponse{}) 6307 if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6308 return err 6309 } 6310 iNdEx = postIndex 6311 default: 6312 iNdEx = preIndex 6313 skippy, err := skipIngester(dAtA[iNdEx:]) 6314 if err != nil { 6315 return err 6316 } 6317 if skippy < 0 { 6318 return ErrInvalidLengthIngester 6319 } 6320 if (iNdEx + skippy) < 0 { 6321 return ErrInvalidLengthIngester 6322 } 6323 if (iNdEx + skippy) > l { 6324 return io.ErrUnexpectedEOF 6325 } 6326 iNdEx += skippy 6327 } 6328 } 6329 6330 if iNdEx > l { 6331 return io.ErrUnexpectedEOF 6332 } 6333 return nil 6334 } 6335 func (m *MetricsForLabelMatchersRequest) Unmarshal(dAtA []byte) error { 6336 l := len(dAtA) 6337 iNdEx := 0 6338 for iNdEx < l { 6339 preIndex := iNdEx 6340 var wire uint64 6341 for shift := uint(0); ; shift += 7 { 6342 if shift >= 64 { 6343 return ErrIntOverflowIngester 6344 } 6345 if iNdEx >= l { 6346 return io.ErrUnexpectedEOF 6347 } 6348 b := dAtA[iNdEx] 6349 iNdEx++ 6350 wire |= uint64(b&0x7F) << shift 6351 if b < 0x80 { 6352 break 6353 } 6354 } 6355 fieldNum := int32(wire >> 3) 6356 wireType := int(wire & 0x7) 6357 if wireType == 4 { 6358 return fmt.Errorf("proto: MetricsForLabelMatchersRequest: wiretype end group for non-group") 6359 } 6360 if fieldNum <= 0 { 6361 return fmt.Errorf("proto: MetricsForLabelMatchersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6362 } 6363 switch fieldNum { 6364 case 1: 6365 if wireType != 0 { 6366 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) 6367 } 6368 m.StartTimestampMs = 0 6369 for shift := uint(0); ; shift += 7 { 6370 if shift >= 64 { 6371 return ErrIntOverflowIngester 6372 } 6373 if iNdEx >= l { 6374 return io.ErrUnexpectedEOF 6375 } 6376 b := dAtA[iNdEx] 6377 iNdEx++ 6378 m.StartTimestampMs |= int64(b&0x7F) << shift 6379 if b < 0x80 { 6380 break 6381 } 6382 } 6383 case 2: 6384 if wireType != 0 { 6385 return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) 6386 } 6387 m.EndTimestampMs = 0 6388 for shift := uint(0); ; shift += 7 { 6389 if shift >= 64 { 6390 return ErrIntOverflowIngester 6391 } 6392 if iNdEx >= l { 6393 return io.ErrUnexpectedEOF 6394 } 6395 b := dAtA[iNdEx] 6396 iNdEx++ 6397 m.EndTimestampMs |= int64(b&0x7F) << shift 6398 if b < 0x80 { 6399 break 6400 } 6401 } 6402 case 3: 6403 if wireType != 2 { 6404 return fmt.Errorf("proto: wrong wireType = %d for field MatchersSet", wireType) 6405 } 6406 var msglen int 6407 for shift := uint(0); ; shift += 7 { 6408 if shift >= 64 { 6409 return ErrIntOverflowIngester 6410 } 6411 if iNdEx >= l { 6412 return io.ErrUnexpectedEOF 6413 } 6414 b := dAtA[iNdEx] 6415 iNdEx++ 6416 msglen |= int(b&0x7F) << shift 6417 if b < 0x80 { 6418 break 6419 } 6420 } 6421 if msglen < 0 { 6422 return ErrInvalidLengthIngester 6423 } 6424 postIndex := iNdEx + msglen 6425 if postIndex < 0 { 6426 return ErrInvalidLengthIngester 6427 } 6428 if postIndex > l { 6429 return io.ErrUnexpectedEOF 6430 } 6431 m.MatchersSet = append(m.MatchersSet, &LabelMatchers{}) 6432 if err := m.MatchersSet[len(m.MatchersSet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6433 return err 6434 } 6435 iNdEx = postIndex 6436 default: 6437 iNdEx = preIndex 6438 skippy, err := skipIngester(dAtA[iNdEx:]) 6439 if err != nil { 6440 return err 6441 } 6442 if skippy < 0 { 6443 return ErrInvalidLengthIngester 6444 } 6445 if (iNdEx + skippy) < 0 { 6446 return ErrInvalidLengthIngester 6447 } 6448 if (iNdEx + skippy) > l { 6449 return io.ErrUnexpectedEOF 6450 } 6451 iNdEx += skippy 6452 } 6453 } 6454 6455 if iNdEx > l { 6456 return io.ErrUnexpectedEOF 6457 } 6458 return nil 6459 } 6460 func (m *MetricsForLabelMatchersResponse) Unmarshal(dAtA []byte) error { 6461 l := len(dAtA) 6462 iNdEx := 0 6463 for iNdEx < l { 6464 preIndex := iNdEx 6465 var wire uint64 6466 for shift := uint(0); ; shift += 7 { 6467 if shift >= 64 { 6468 return ErrIntOverflowIngester 6469 } 6470 if iNdEx >= l { 6471 return io.ErrUnexpectedEOF 6472 } 6473 b := dAtA[iNdEx] 6474 iNdEx++ 6475 wire |= uint64(b&0x7F) << shift 6476 if b < 0x80 { 6477 break 6478 } 6479 } 6480 fieldNum := int32(wire >> 3) 6481 wireType := int(wire & 0x7) 6482 if wireType == 4 { 6483 return fmt.Errorf("proto: MetricsForLabelMatchersResponse: wiretype end group for non-group") 6484 } 6485 if fieldNum <= 0 { 6486 return fmt.Errorf("proto: MetricsForLabelMatchersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6487 } 6488 switch fieldNum { 6489 case 1: 6490 if wireType != 2 { 6491 return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) 6492 } 6493 var msglen int 6494 for shift := uint(0); ; shift += 7 { 6495 if shift >= 64 { 6496 return ErrIntOverflowIngester 6497 } 6498 if iNdEx >= l { 6499 return io.ErrUnexpectedEOF 6500 } 6501 b := dAtA[iNdEx] 6502 iNdEx++ 6503 msglen |= int(b&0x7F) << shift 6504 if b < 0x80 { 6505 break 6506 } 6507 } 6508 if msglen < 0 { 6509 return ErrInvalidLengthIngester 6510 } 6511 postIndex := iNdEx + msglen 6512 if postIndex < 0 { 6513 return ErrInvalidLengthIngester 6514 } 6515 if postIndex > l { 6516 return io.ErrUnexpectedEOF 6517 } 6518 m.Metric = append(m.Metric, &cortexpb.Metric{}) 6519 if err := m.Metric[len(m.Metric)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6520 return err 6521 } 6522 iNdEx = postIndex 6523 default: 6524 iNdEx = preIndex 6525 skippy, err := skipIngester(dAtA[iNdEx:]) 6526 if err != nil { 6527 return err 6528 } 6529 if skippy < 0 { 6530 return ErrInvalidLengthIngester 6531 } 6532 if (iNdEx + skippy) < 0 { 6533 return ErrInvalidLengthIngester 6534 } 6535 if (iNdEx + skippy) > l { 6536 return io.ErrUnexpectedEOF 6537 } 6538 iNdEx += skippy 6539 } 6540 } 6541 6542 if iNdEx > l { 6543 return io.ErrUnexpectedEOF 6544 } 6545 return nil 6546 } 6547 func (m *MetricsMetadataRequest) Unmarshal(dAtA []byte) error { 6548 l := len(dAtA) 6549 iNdEx := 0 6550 for iNdEx < l { 6551 preIndex := iNdEx 6552 var wire uint64 6553 for shift := uint(0); ; shift += 7 { 6554 if shift >= 64 { 6555 return ErrIntOverflowIngester 6556 } 6557 if iNdEx >= l { 6558 return io.ErrUnexpectedEOF 6559 } 6560 b := dAtA[iNdEx] 6561 iNdEx++ 6562 wire |= uint64(b&0x7F) << shift 6563 if b < 0x80 { 6564 break 6565 } 6566 } 6567 fieldNum := int32(wire >> 3) 6568 wireType := int(wire & 0x7) 6569 if wireType == 4 { 6570 return fmt.Errorf("proto: MetricsMetadataRequest: wiretype end group for non-group") 6571 } 6572 if fieldNum <= 0 { 6573 return fmt.Errorf("proto: MetricsMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6574 } 6575 switch fieldNum { 6576 default: 6577 iNdEx = preIndex 6578 skippy, err := skipIngester(dAtA[iNdEx:]) 6579 if err != nil { 6580 return err 6581 } 6582 if skippy < 0 { 6583 return ErrInvalidLengthIngester 6584 } 6585 if (iNdEx + skippy) < 0 { 6586 return ErrInvalidLengthIngester 6587 } 6588 if (iNdEx + skippy) > l { 6589 return io.ErrUnexpectedEOF 6590 } 6591 iNdEx += skippy 6592 } 6593 } 6594 6595 if iNdEx > l { 6596 return io.ErrUnexpectedEOF 6597 } 6598 return nil 6599 } 6600 func (m *MetricsMetadataResponse) Unmarshal(dAtA []byte) error { 6601 l := len(dAtA) 6602 iNdEx := 0 6603 for iNdEx < l { 6604 preIndex := iNdEx 6605 var wire uint64 6606 for shift := uint(0); ; shift += 7 { 6607 if shift >= 64 { 6608 return ErrIntOverflowIngester 6609 } 6610 if iNdEx >= l { 6611 return io.ErrUnexpectedEOF 6612 } 6613 b := dAtA[iNdEx] 6614 iNdEx++ 6615 wire |= uint64(b&0x7F) << shift 6616 if b < 0x80 { 6617 break 6618 } 6619 } 6620 fieldNum := int32(wire >> 3) 6621 wireType := int(wire & 0x7) 6622 if wireType == 4 { 6623 return fmt.Errorf("proto: MetricsMetadataResponse: wiretype end group for non-group") 6624 } 6625 if fieldNum <= 0 { 6626 return fmt.Errorf("proto: MetricsMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6627 } 6628 switch fieldNum { 6629 case 1: 6630 if wireType != 2 { 6631 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 6632 } 6633 var msglen int 6634 for shift := uint(0); ; shift += 7 { 6635 if shift >= 64 { 6636 return ErrIntOverflowIngester 6637 } 6638 if iNdEx >= l { 6639 return io.ErrUnexpectedEOF 6640 } 6641 b := dAtA[iNdEx] 6642 iNdEx++ 6643 msglen |= int(b&0x7F) << shift 6644 if b < 0x80 { 6645 break 6646 } 6647 } 6648 if msglen < 0 { 6649 return ErrInvalidLengthIngester 6650 } 6651 postIndex := iNdEx + msglen 6652 if postIndex < 0 { 6653 return ErrInvalidLengthIngester 6654 } 6655 if postIndex > l { 6656 return io.ErrUnexpectedEOF 6657 } 6658 m.Metadata = append(m.Metadata, &cortexpb.MetricMetadata{}) 6659 if err := m.Metadata[len(m.Metadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6660 return err 6661 } 6662 iNdEx = postIndex 6663 default: 6664 iNdEx = preIndex 6665 skippy, err := skipIngester(dAtA[iNdEx:]) 6666 if err != nil { 6667 return err 6668 } 6669 if skippy < 0 { 6670 return ErrInvalidLengthIngester 6671 } 6672 if (iNdEx + skippy) < 0 { 6673 return ErrInvalidLengthIngester 6674 } 6675 if (iNdEx + skippy) > l { 6676 return io.ErrUnexpectedEOF 6677 } 6678 iNdEx += skippy 6679 } 6680 } 6681 6682 if iNdEx > l { 6683 return io.ErrUnexpectedEOF 6684 } 6685 return nil 6686 } 6687 func (m *TimeSeriesChunk) Unmarshal(dAtA []byte) error { 6688 l := len(dAtA) 6689 iNdEx := 0 6690 for iNdEx < l { 6691 preIndex := iNdEx 6692 var wire uint64 6693 for shift := uint(0); ; shift += 7 { 6694 if shift >= 64 { 6695 return ErrIntOverflowIngester 6696 } 6697 if iNdEx >= l { 6698 return io.ErrUnexpectedEOF 6699 } 6700 b := dAtA[iNdEx] 6701 iNdEx++ 6702 wire |= uint64(b&0x7F) << shift 6703 if b < 0x80 { 6704 break 6705 } 6706 } 6707 fieldNum := int32(wire >> 3) 6708 wireType := int(wire & 0x7) 6709 if wireType == 4 { 6710 return fmt.Errorf("proto: TimeSeriesChunk: wiretype end group for non-group") 6711 } 6712 if fieldNum <= 0 { 6713 return fmt.Errorf("proto: TimeSeriesChunk: illegal tag %d (wire type %d)", fieldNum, wire) 6714 } 6715 switch fieldNum { 6716 case 1: 6717 if wireType != 2 { 6718 return fmt.Errorf("proto: wrong wireType = %d for field FromIngesterId", wireType) 6719 } 6720 var stringLen uint64 6721 for shift := uint(0); ; shift += 7 { 6722 if shift >= 64 { 6723 return ErrIntOverflowIngester 6724 } 6725 if iNdEx >= l { 6726 return io.ErrUnexpectedEOF 6727 } 6728 b := dAtA[iNdEx] 6729 iNdEx++ 6730 stringLen |= uint64(b&0x7F) << shift 6731 if b < 0x80 { 6732 break 6733 } 6734 } 6735 intStringLen := int(stringLen) 6736 if intStringLen < 0 { 6737 return ErrInvalidLengthIngester 6738 } 6739 postIndex := iNdEx + intStringLen 6740 if postIndex < 0 { 6741 return ErrInvalidLengthIngester 6742 } 6743 if postIndex > l { 6744 return io.ErrUnexpectedEOF 6745 } 6746 m.FromIngesterId = string(dAtA[iNdEx:postIndex]) 6747 iNdEx = postIndex 6748 case 2: 6749 if wireType != 2 { 6750 return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) 6751 } 6752 var stringLen uint64 6753 for shift := uint(0); ; shift += 7 { 6754 if shift >= 64 { 6755 return ErrIntOverflowIngester 6756 } 6757 if iNdEx >= l { 6758 return io.ErrUnexpectedEOF 6759 } 6760 b := dAtA[iNdEx] 6761 iNdEx++ 6762 stringLen |= uint64(b&0x7F) << shift 6763 if b < 0x80 { 6764 break 6765 } 6766 } 6767 intStringLen := int(stringLen) 6768 if intStringLen < 0 { 6769 return ErrInvalidLengthIngester 6770 } 6771 postIndex := iNdEx + intStringLen 6772 if postIndex < 0 { 6773 return ErrInvalidLengthIngester 6774 } 6775 if postIndex > l { 6776 return io.ErrUnexpectedEOF 6777 } 6778 m.UserId = string(dAtA[iNdEx:postIndex]) 6779 iNdEx = postIndex 6780 case 3: 6781 if wireType != 2 { 6782 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 6783 } 6784 var msglen int 6785 for shift := uint(0); ; shift += 7 { 6786 if shift >= 64 { 6787 return ErrIntOverflowIngester 6788 } 6789 if iNdEx >= l { 6790 return io.ErrUnexpectedEOF 6791 } 6792 b := dAtA[iNdEx] 6793 iNdEx++ 6794 msglen |= int(b&0x7F) << shift 6795 if b < 0x80 { 6796 break 6797 } 6798 } 6799 if msglen < 0 { 6800 return ErrInvalidLengthIngester 6801 } 6802 postIndex := iNdEx + msglen 6803 if postIndex < 0 { 6804 return ErrInvalidLengthIngester 6805 } 6806 if postIndex > l { 6807 return io.ErrUnexpectedEOF 6808 } 6809 m.Labels = append(m.Labels, github_com_cortexproject_cortex_pkg_cortexpb.LabelAdapter{}) 6810 if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6811 return err 6812 } 6813 iNdEx = postIndex 6814 case 4: 6815 if wireType != 2 { 6816 return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType) 6817 } 6818 var msglen int 6819 for shift := uint(0); ; shift += 7 { 6820 if shift >= 64 { 6821 return ErrIntOverflowIngester 6822 } 6823 if iNdEx >= l { 6824 return io.ErrUnexpectedEOF 6825 } 6826 b := dAtA[iNdEx] 6827 iNdEx++ 6828 msglen |= int(b&0x7F) << shift 6829 if b < 0x80 { 6830 break 6831 } 6832 } 6833 if msglen < 0 { 6834 return ErrInvalidLengthIngester 6835 } 6836 postIndex := iNdEx + msglen 6837 if postIndex < 0 { 6838 return ErrInvalidLengthIngester 6839 } 6840 if postIndex > l { 6841 return io.ErrUnexpectedEOF 6842 } 6843 m.Chunks = append(m.Chunks, Chunk{}) 6844 if err := m.Chunks[len(m.Chunks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6845 return err 6846 } 6847 iNdEx = postIndex 6848 default: 6849 iNdEx = preIndex 6850 skippy, err := skipIngester(dAtA[iNdEx:]) 6851 if err != nil { 6852 return err 6853 } 6854 if skippy < 0 { 6855 return ErrInvalidLengthIngester 6856 } 6857 if (iNdEx + skippy) < 0 { 6858 return ErrInvalidLengthIngester 6859 } 6860 if (iNdEx + skippy) > l { 6861 return io.ErrUnexpectedEOF 6862 } 6863 iNdEx += skippy 6864 } 6865 } 6866 6867 if iNdEx > l { 6868 return io.ErrUnexpectedEOF 6869 } 6870 return nil 6871 } 6872 func (m *Chunk) Unmarshal(dAtA []byte) error { 6873 l := len(dAtA) 6874 iNdEx := 0 6875 for iNdEx < l { 6876 preIndex := iNdEx 6877 var wire uint64 6878 for shift := uint(0); ; shift += 7 { 6879 if shift >= 64 { 6880 return ErrIntOverflowIngester 6881 } 6882 if iNdEx >= l { 6883 return io.ErrUnexpectedEOF 6884 } 6885 b := dAtA[iNdEx] 6886 iNdEx++ 6887 wire |= uint64(b&0x7F) << shift 6888 if b < 0x80 { 6889 break 6890 } 6891 } 6892 fieldNum := int32(wire >> 3) 6893 wireType := int(wire & 0x7) 6894 if wireType == 4 { 6895 return fmt.Errorf("proto: Chunk: wiretype end group for non-group") 6896 } 6897 if fieldNum <= 0 { 6898 return fmt.Errorf("proto: Chunk: illegal tag %d (wire type %d)", fieldNum, wire) 6899 } 6900 switch fieldNum { 6901 case 1: 6902 if wireType != 0 { 6903 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) 6904 } 6905 m.StartTimestampMs = 0 6906 for shift := uint(0); ; shift += 7 { 6907 if shift >= 64 { 6908 return ErrIntOverflowIngester 6909 } 6910 if iNdEx >= l { 6911 return io.ErrUnexpectedEOF 6912 } 6913 b := dAtA[iNdEx] 6914 iNdEx++ 6915 m.StartTimestampMs |= int64(b&0x7F) << shift 6916 if b < 0x80 { 6917 break 6918 } 6919 } 6920 case 2: 6921 if wireType != 0 { 6922 return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) 6923 } 6924 m.EndTimestampMs = 0 6925 for shift := uint(0); ; shift += 7 { 6926 if shift >= 64 { 6927 return ErrIntOverflowIngester 6928 } 6929 if iNdEx >= l { 6930 return io.ErrUnexpectedEOF 6931 } 6932 b := dAtA[iNdEx] 6933 iNdEx++ 6934 m.EndTimestampMs |= int64(b&0x7F) << shift 6935 if b < 0x80 { 6936 break 6937 } 6938 } 6939 case 3: 6940 if wireType != 0 { 6941 return fmt.Errorf("proto: wrong wireType = %d for field Encoding", wireType) 6942 } 6943 m.Encoding = 0 6944 for shift := uint(0); ; shift += 7 { 6945 if shift >= 64 { 6946 return ErrIntOverflowIngester 6947 } 6948 if iNdEx >= l { 6949 return io.ErrUnexpectedEOF 6950 } 6951 b := dAtA[iNdEx] 6952 iNdEx++ 6953 m.Encoding |= int32(b&0x7F) << shift 6954 if b < 0x80 { 6955 break 6956 } 6957 } 6958 case 4: 6959 if wireType != 2 { 6960 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 6961 } 6962 var byteLen int 6963 for shift := uint(0); ; shift += 7 { 6964 if shift >= 64 { 6965 return ErrIntOverflowIngester 6966 } 6967 if iNdEx >= l { 6968 return io.ErrUnexpectedEOF 6969 } 6970 b := dAtA[iNdEx] 6971 iNdEx++ 6972 byteLen |= int(b&0x7F) << shift 6973 if b < 0x80 { 6974 break 6975 } 6976 } 6977 if byteLen < 0 { 6978 return ErrInvalidLengthIngester 6979 } 6980 postIndex := iNdEx + byteLen 6981 if postIndex < 0 { 6982 return ErrInvalidLengthIngester 6983 } 6984 if postIndex > l { 6985 return io.ErrUnexpectedEOF 6986 } 6987 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 6988 if m.Data == nil { 6989 m.Data = []byte{} 6990 } 6991 iNdEx = postIndex 6992 default: 6993 iNdEx = preIndex 6994 skippy, err := skipIngester(dAtA[iNdEx:]) 6995 if err != nil { 6996 return err 6997 } 6998 if skippy < 0 { 6999 return ErrInvalidLengthIngester 7000 } 7001 if (iNdEx + skippy) < 0 { 7002 return ErrInvalidLengthIngester 7003 } 7004 if (iNdEx + skippy) > l { 7005 return io.ErrUnexpectedEOF 7006 } 7007 iNdEx += skippy 7008 } 7009 } 7010 7011 if iNdEx > l { 7012 return io.ErrUnexpectedEOF 7013 } 7014 return nil 7015 } 7016 func (m *TransferChunksResponse) Unmarshal(dAtA []byte) error { 7017 l := len(dAtA) 7018 iNdEx := 0 7019 for iNdEx < l { 7020 preIndex := iNdEx 7021 var wire uint64 7022 for shift := uint(0); ; shift += 7 { 7023 if shift >= 64 { 7024 return ErrIntOverflowIngester 7025 } 7026 if iNdEx >= l { 7027 return io.ErrUnexpectedEOF 7028 } 7029 b := dAtA[iNdEx] 7030 iNdEx++ 7031 wire |= uint64(b&0x7F) << shift 7032 if b < 0x80 { 7033 break 7034 } 7035 } 7036 fieldNum := int32(wire >> 3) 7037 wireType := int(wire & 0x7) 7038 if wireType == 4 { 7039 return fmt.Errorf("proto: TransferChunksResponse: wiretype end group for non-group") 7040 } 7041 if fieldNum <= 0 { 7042 return fmt.Errorf("proto: TransferChunksResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7043 } 7044 switch fieldNum { 7045 default: 7046 iNdEx = preIndex 7047 skippy, err := skipIngester(dAtA[iNdEx:]) 7048 if err != nil { 7049 return err 7050 } 7051 if skippy < 0 { 7052 return ErrInvalidLengthIngester 7053 } 7054 if (iNdEx + skippy) < 0 { 7055 return ErrInvalidLengthIngester 7056 } 7057 if (iNdEx + skippy) > l { 7058 return io.ErrUnexpectedEOF 7059 } 7060 iNdEx += skippy 7061 } 7062 } 7063 7064 if iNdEx > l { 7065 return io.ErrUnexpectedEOF 7066 } 7067 return nil 7068 } 7069 func (m *LabelMatchers) Unmarshal(dAtA []byte) error { 7070 l := len(dAtA) 7071 iNdEx := 0 7072 for iNdEx < l { 7073 preIndex := iNdEx 7074 var wire uint64 7075 for shift := uint(0); ; shift += 7 { 7076 if shift >= 64 { 7077 return ErrIntOverflowIngester 7078 } 7079 if iNdEx >= l { 7080 return io.ErrUnexpectedEOF 7081 } 7082 b := dAtA[iNdEx] 7083 iNdEx++ 7084 wire |= uint64(b&0x7F) << shift 7085 if b < 0x80 { 7086 break 7087 } 7088 } 7089 fieldNum := int32(wire >> 3) 7090 wireType := int(wire & 0x7) 7091 if wireType == 4 { 7092 return fmt.Errorf("proto: LabelMatchers: wiretype end group for non-group") 7093 } 7094 if fieldNum <= 0 { 7095 return fmt.Errorf("proto: LabelMatchers: illegal tag %d (wire type %d)", fieldNum, wire) 7096 } 7097 switch fieldNum { 7098 case 1: 7099 if wireType != 2 { 7100 return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) 7101 } 7102 var msglen int 7103 for shift := uint(0); ; shift += 7 { 7104 if shift >= 64 { 7105 return ErrIntOverflowIngester 7106 } 7107 if iNdEx >= l { 7108 return io.ErrUnexpectedEOF 7109 } 7110 b := dAtA[iNdEx] 7111 iNdEx++ 7112 msglen |= int(b&0x7F) << shift 7113 if b < 0x80 { 7114 break 7115 } 7116 } 7117 if msglen < 0 { 7118 return ErrInvalidLengthIngester 7119 } 7120 postIndex := iNdEx + msglen 7121 if postIndex < 0 { 7122 return ErrInvalidLengthIngester 7123 } 7124 if postIndex > l { 7125 return io.ErrUnexpectedEOF 7126 } 7127 m.Matchers = append(m.Matchers, &LabelMatcher{}) 7128 if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7129 return err 7130 } 7131 iNdEx = postIndex 7132 default: 7133 iNdEx = preIndex 7134 skippy, err := skipIngester(dAtA[iNdEx:]) 7135 if err != nil { 7136 return err 7137 } 7138 if skippy < 0 { 7139 return ErrInvalidLengthIngester 7140 } 7141 if (iNdEx + skippy) < 0 { 7142 return ErrInvalidLengthIngester 7143 } 7144 if (iNdEx + skippy) > l { 7145 return io.ErrUnexpectedEOF 7146 } 7147 iNdEx += skippy 7148 } 7149 } 7150 7151 if iNdEx > l { 7152 return io.ErrUnexpectedEOF 7153 } 7154 return nil 7155 } 7156 func (m *LabelMatcher) Unmarshal(dAtA []byte) error { 7157 l := len(dAtA) 7158 iNdEx := 0 7159 for iNdEx < l { 7160 preIndex := iNdEx 7161 var wire uint64 7162 for shift := uint(0); ; shift += 7 { 7163 if shift >= 64 { 7164 return ErrIntOverflowIngester 7165 } 7166 if iNdEx >= l { 7167 return io.ErrUnexpectedEOF 7168 } 7169 b := dAtA[iNdEx] 7170 iNdEx++ 7171 wire |= uint64(b&0x7F) << shift 7172 if b < 0x80 { 7173 break 7174 } 7175 } 7176 fieldNum := int32(wire >> 3) 7177 wireType := int(wire & 0x7) 7178 if wireType == 4 { 7179 return fmt.Errorf("proto: LabelMatcher: wiretype end group for non-group") 7180 } 7181 if fieldNum <= 0 { 7182 return fmt.Errorf("proto: LabelMatcher: illegal tag %d (wire type %d)", fieldNum, wire) 7183 } 7184 switch fieldNum { 7185 case 1: 7186 if wireType != 0 { 7187 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 7188 } 7189 m.Type = 0 7190 for shift := uint(0); ; shift += 7 { 7191 if shift >= 64 { 7192 return ErrIntOverflowIngester 7193 } 7194 if iNdEx >= l { 7195 return io.ErrUnexpectedEOF 7196 } 7197 b := dAtA[iNdEx] 7198 iNdEx++ 7199 m.Type |= MatchType(b&0x7F) << shift 7200 if b < 0x80 { 7201 break 7202 } 7203 } 7204 case 2: 7205 if wireType != 2 { 7206 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 7207 } 7208 var stringLen uint64 7209 for shift := uint(0); ; shift += 7 { 7210 if shift >= 64 { 7211 return ErrIntOverflowIngester 7212 } 7213 if iNdEx >= l { 7214 return io.ErrUnexpectedEOF 7215 } 7216 b := dAtA[iNdEx] 7217 iNdEx++ 7218 stringLen |= uint64(b&0x7F) << shift 7219 if b < 0x80 { 7220 break 7221 } 7222 } 7223 intStringLen := int(stringLen) 7224 if intStringLen < 0 { 7225 return ErrInvalidLengthIngester 7226 } 7227 postIndex := iNdEx + intStringLen 7228 if postIndex < 0 { 7229 return ErrInvalidLengthIngester 7230 } 7231 if postIndex > l { 7232 return io.ErrUnexpectedEOF 7233 } 7234 m.Name = string(dAtA[iNdEx:postIndex]) 7235 iNdEx = postIndex 7236 case 3: 7237 if wireType != 2 { 7238 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 7239 } 7240 var stringLen uint64 7241 for shift := uint(0); ; shift += 7 { 7242 if shift >= 64 { 7243 return ErrIntOverflowIngester 7244 } 7245 if iNdEx >= l { 7246 return io.ErrUnexpectedEOF 7247 } 7248 b := dAtA[iNdEx] 7249 iNdEx++ 7250 stringLen |= uint64(b&0x7F) << shift 7251 if b < 0x80 { 7252 break 7253 } 7254 } 7255 intStringLen := int(stringLen) 7256 if intStringLen < 0 { 7257 return ErrInvalidLengthIngester 7258 } 7259 postIndex := iNdEx + intStringLen 7260 if postIndex < 0 { 7261 return ErrInvalidLengthIngester 7262 } 7263 if postIndex > l { 7264 return io.ErrUnexpectedEOF 7265 } 7266 m.Value = string(dAtA[iNdEx:postIndex]) 7267 iNdEx = postIndex 7268 default: 7269 iNdEx = preIndex 7270 skippy, err := skipIngester(dAtA[iNdEx:]) 7271 if err != nil { 7272 return err 7273 } 7274 if skippy < 0 { 7275 return ErrInvalidLengthIngester 7276 } 7277 if (iNdEx + skippy) < 0 { 7278 return ErrInvalidLengthIngester 7279 } 7280 if (iNdEx + skippy) > l { 7281 return io.ErrUnexpectedEOF 7282 } 7283 iNdEx += skippy 7284 } 7285 } 7286 7287 if iNdEx > l { 7288 return io.ErrUnexpectedEOF 7289 } 7290 return nil 7291 } 7292 func (m *TimeSeriesFile) Unmarshal(dAtA []byte) error { 7293 l := len(dAtA) 7294 iNdEx := 0 7295 for iNdEx < l { 7296 preIndex := iNdEx 7297 var wire uint64 7298 for shift := uint(0); ; shift += 7 { 7299 if shift >= 64 { 7300 return ErrIntOverflowIngester 7301 } 7302 if iNdEx >= l { 7303 return io.ErrUnexpectedEOF 7304 } 7305 b := dAtA[iNdEx] 7306 iNdEx++ 7307 wire |= uint64(b&0x7F) << shift 7308 if b < 0x80 { 7309 break 7310 } 7311 } 7312 fieldNum := int32(wire >> 3) 7313 wireType := int(wire & 0x7) 7314 if wireType == 4 { 7315 return fmt.Errorf("proto: TimeSeriesFile: wiretype end group for non-group") 7316 } 7317 if fieldNum <= 0 { 7318 return fmt.Errorf("proto: TimeSeriesFile: illegal tag %d (wire type %d)", fieldNum, wire) 7319 } 7320 switch fieldNum { 7321 case 1: 7322 if wireType != 2 { 7323 return fmt.Errorf("proto: wrong wireType = %d for field FromIngesterId", wireType) 7324 } 7325 var stringLen uint64 7326 for shift := uint(0); ; shift += 7 { 7327 if shift >= 64 { 7328 return ErrIntOverflowIngester 7329 } 7330 if iNdEx >= l { 7331 return io.ErrUnexpectedEOF 7332 } 7333 b := dAtA[iNdEx] 7334 iNdEx++ 7335 stringLen |= uint64(b&0x7F) << shift 7336 if b < 0x80 { 7337 break 7338 } 7339 } 7340 intStringLen := int(stringLen) 7341 if intStringLen < 0 { 7342 return ErrInvalidLengthIngester 7343 } 7344 postIndex := iNdEx + intStringLen 7345 if postIndex < 0 { 7346 return ErrInvalidLengthIngester 7347 } 7348 if postIndex > l { 7349 return io.ErrUnexpectedEOF 7350 } 7351 m.FromIngesterId = string(dAtA[iNdEx:postIndex]) 7352 iNdEx = postIndex 7353 case 2: 7354 if wireType != 2 { 7355 return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) 7356 } 7357 var stringLen uint64 7358 for shift := uint(0); ; shift += 7 { 7359 if shift >= 64 { 7360 return ErrIntOverflowIngester 7361 } 7362 if iNdEx >= l { 7363 return io.ErrUnexpectedEOF 7364 } 7365 b := dAtA[iNdEx] 7366 iNdEx++ 7367 stringLen |= uint64(b&0x7F) << shift 7368 if b < 0x80 { 7369 break 7370 } 7371 } 7372 intStringLen := int(stringLen) 7373 if intStringLen < 0 { 7374 return ErrInvalidLengthIngester 7375 } 7376 postIndex := iNdEx + intStringLen 7377 if postIndex < 0 { 7378 return ErrInvalidLengthIngester 7379 } 7380 if postIndex > l { 7381 return io.ErrUnexpectedEOF 7382 } 7383 m.UserId = string(dAtA[iNdEx:postIndex]) 7384 iNdEx = postIndex 7385 case 3: 7386 if wireType != 2 { 7387 return fmt.Errorf("proto: wrong wireType = %d for field Filename", wireType) 7388 } 7389 var stringLen uint64 7390 for shift := uint(0); ; shift += 7 { 7391 if shift >= 64 { 7392 return ErrIntOverflowIngester 7393 } 7394 if iNdEx >= l { 7395 return io.ErrUnexpectedEOF 7396 } 7397 b := dAtA[iNdEx] 7398 iNdEx++ 7399 stringLen |= uint64(b&0x7F) << shift 7400 if b < 0x80 { 7401 break 7402 } 7403 } 7404 intStringLen := int(stringLen) 7405 if intStringLen < 0 { 7406 return ErrInvalidLengthIngester 7407 } 7408 postIndex := iNdEx + intStringLen 7409 if postIndex < 0 { 7410 return ErrInvalidLengthIngester 7411 } 7412 if postIndex > l { 7413 return io.ErrUnexpectedEOF 7414 } 7415 m.Filename = string(dAtA[iNdEx:postIndex]) 7416 iNdEx = postIndex 7417 case 4: 7418 if wireType != 2 { 7419 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 7420 } 7421 var byteLen int 7422 for shift := uint(0); ; shift += 7 { 7423 if shift >= 64 { 7424 return ErrIntOverflowIngester 7425 } 7426 if iNdEx >= l { 7427 return io.ErrUnexpectedEOF 7428 } 7429 b := dAtA[iNdEx] 7430 iNdEx++ 7431 byteLen |= int(b&0x7F) << shift 7432 if b < 0x80 { 7433 break 7434 } 7435 } 7436 if byteLen < 0 { 7437 return ErrInvalidLengthIngester 7438 } 7439 postIndex := iNdEx + byteLen 7440 if postIndex < 0 { 7441 return ErrInvalidLengthIngester 7442 } 7443 if postIndex > l { 7444 return io.ErrUnexpectedEOF 7445 } 7446 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 7447 if m.Data == nil { 7448 m.Data = []byte{} 7449 } 7450 iNdEx = postIndex 7451 default: 7452 iNdEx = preIndex 7453 skippy, err := skipIngester(dAtA[iNdEx:]) 7454 if err != nil { 7455 return err 7456 } 7457 if skippy < 0 { 7458 return ErrInvalidLengthIngester 7459 } 7460 if (iNdEx + skippy) < 0 { 7461 return ErrInvalidLengthIngester 7462 } 7463 if (iNdEx + skippy) > l { 7464 return io.ErrUnexpectedEOF 7465 } 7466 iNdEx += skippy 7467 } 7468 } 7469 7470 if iNdEx > l { 7471 return io.ErrUnexpectedEOF 7472 } 7473 return nil 7474 } 7475 func skipIngester(dAtA []byte) (n int, err error) { 7476 l := len(dAtA) 7477 iNdEx := 0 7478 for iNdEx < l { 7479 var wire uint64 7480 for shift := uint(0); ; shift += 7 { 7481 if shift >= 64 { 7482 return 0, ErrIntOverflowIngester 7483 } 7484 if iNdEx >= l { 7485 return 0, io.ErrUnexpectedEOF 7486 } 7487 b := dAtA[iNdEx] 7488 iNdEx++ 7489 wire |= (uint64(b) & 0x7F) << shift 7490 if b < 0x80 { 7491 break 7492 } 7493 } 7494 wireType := int(wire & 0x7) 7495 switch wireType { 7496 case 0: 7497 for shift := uint(0); ; shift += 7 { 7498 if shift >= 64 { 7499 return 0, ErrIntOverflowIngester 7500 } 7501 if iNdEx >= l { 7502 return 0, io.ErrUnexpectedEOF 7503 } 7504 iNdEx++ 7505 if dAtA[iNdEx-1] < 0x80 { 7506 break 7507 } 7508 } 7509 return iNdEx, nil 7510 case 1: 7511 iNdEx += 8 7512 return iNdEx, nil 7513 case 2: 7514 var length int 7515 for shift := uint(0); ; shift += 7 { 7516 if shift >= 64 { 7517 return 0, ErrIntOverflowIngester 7518 } 7519 if iNdEx >= l { 7520 return 0, io.ErrUnexpectedEOF 7521 } 7522 b := dAtA[iNdEx] 7523 iNdEx++ 7524 length |= (int(b) & 0x7F) << shift 7525 if b < 0x80 { 7526 break 7527 } 7528 } 7529 if length < 0 { 7530 return 0, ErrInvalidLengthIngester 7531 } 7532 iNdEx += length 7533 if iNdEx < 0 { 7534 return 0, ErrInvalidLengthIngester 7535 } 7536 return iNdEx, nil 7537 case 3: 7538 for { 7539 var innerWire uint64 7540 var start int = iNdEx 7541 for shift := uint(0); ; shift += 7 { 7542 if shift >= 64 { 7543 return 0, ErrIntOverflowIngester 7544 } 7545 if iNdEx >= l { 7546 return 0, io.ErrUnexpectedEOF 7547 } 7548 b := dAtA[iNdEx] 7549 iNdEx++ 7550 innerWire |= (uint64(b) & 0x7F) << shift 7551 if b < 0x80 { 7552 break 7553 } 7554 } 7555 innerWireType := int(innerWire & 0x7) 7556 if innerWireType == 4 { 7557 break 7558 } 7559 next, err := skipIngester(dAtA[start:]) 7560 if err != nil { 7561 return 0, err 7562 } 7563 iNdEx = start + next 7564 if iNdEx < 0 { 7565 return 0, ErrInvalidLengthIngester 7566 } 7567 } 7568 return iNdEx, nil 7569 case 4: 7570 return iNdEx, nil 7571 case 5: 7572 iNdEx += 4 7573 return iNdEx, nil 7574 default: 7575 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 7576 } 7577 } 7578 panic("unreachable") 7579 } 7580 7581 var ( 7582 ErrInvalidLengthIngester = fmt.Errorf("proto: negative length found during unmarshaling") 7583 ErrIntOverflowIngester = fmt.Errorf("proto: integer overflow") 7584 )