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