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