(dAtA []byte)
| 4503 | return nil |
| 4504 | } |
| 4505 | func (m *HistogramBucket) Unmarshal(dAtA []byte) error { |
| 4506 | l := len(dAtA) |
| 4507 | iNdEx := 0 |
| 4508 | for iNdEx < l { |
| 4509 | preIndex := iNdEx |
| 4510 | var wire uint64 |
| 4511 | for shift := uint(0); ; shift += 7 { |
| 4512 | if shift >= 64 { |
| 4513 | return ErrIntOverflowQuery |
| 4514 | } |
| 4515 | if iNdEx >= l { |
| 4516 | return io.ErrUnexpectedEOF |
| 4517 | } |
| 4518 | b := dAtA[iNdEx] |
| 4519 | iNdEx++ |
| 4520 | wire |= uint64(b&0x7F) << shift |
| 4521 | if b < 0x80 { |
| 4522 | break |
| 4523 | } |
| 4524 | } |
| 4525 | fieldNum := int32(wire >> 3) |
| 4526 | wireType := int(wire & 0x7) |
| 4527 | if wireType == 4 { |
| 4528 | return fmt.Errorf("proto: HistogramBucket: wiretype end group for non-group") |
| 4529 | } |
| 4530 | if fieldNum <= 0 { |
| 4531 | return fmt.Errorf("proto: HistogramBucket: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4532 | } |
| 4533 | switch fieldNum { |
| 4534 | case 1: |
| 4535 | if wireType != 0 { |
| 4536 | return fmt.Errorf("proto: wrong wireType = %d for field Boundaries", wireType) |
| 4537 | } |
| 4538 | m.Boundaries = 0 |
| 4539 | for shift := uint(0); ; shift += 7 { |
| 4540 | if shift >= 64 { |
| 4541 | return ErrIntOverflowQuery |
| 4542 | } |
| 4543 | if iNdEx >= l { |
| 4544 | return io.ErrUnexpectedEOF |
| 4545 | } |
| 4546 | b := dAtA[iNdEx] |
| 4547 | iNdEx++ |
| 4548 | m.Boundaries |= int32(b&0x7F) << shift |
| 4549 | if b < 0x80 { |
| 4550 | break |
| 4551 | } |
| 4552 | } |
| 4553 | case 2: |
| 4554 | if wireType != 1 { |
| 4555 | return fmt.Errorf("proto: wrong wireType = %d for field Lower", wireType) |
| 4556 | } |
| 4557 | var v uint64 |
| 4558 | if (iNdEx + 8) > l { |
| 4559 | return io.ErrUnexpectedEOF |
| 4560 | } |
| 4561 | v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| 4562 | iNdEx += 8 |
no test coverage detected