(dAtA []byte)
| 4608 | return nil |
| 4609 | } |
| 4610 | func (m *PrometheusResponseStats) Unmarshal(dAtA []byte) error { |
| 4611 | l := len(dAtA) |
| 4612 | iNdEx := 0 |
| 4613 | for iNdEx < l { |
| 4614 | preIndex := iNdEx |
| 4615 | var wire uint64 |
| 4616 | for shift := uint(0); ; shift += 7 { |
| 4617 | if shift >= 64 { |
| 4618 | return ErrIntOverflowQuery |
| 4619 | } |
| 4620 | if iNdEx >= l { |
| 4621 | return io.ErrUnexpectedEOF |
| 4622 | } |
| 4623 | b := dAtA[iNdEx] |
| 4624 | iNdEx++ |
| 4625 | wire |= uint64(b&0x7F) << shift |
| 4626 | if b < 0x80 { |
| 4627 | break |
| 4628 | } |
| 4629 | } |
| 4630 | fieldNum := int32(wire >> 3) |
| 4631 | wireType := int(wire & 0x7) |
| 4632 | if wireType == 4 { |
| 4633 | return fmt.Errorf("proto: PrometheusResponseStats: wiretype end group for non-group") |
| 4634 | } |
| 4635 | if fieldNum <= 0 { |
| 4636 | return fmt.Errorf("proto: PrometheusResponseStats: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4637 | } |
| 4638 | switch fieldNum { |
| 4639 | case 1: |
| 4640 | if wireType != 2 { |
| 4641 | return fmt.Errorf("proto: wrong wireType = %d for field Samples", wireType) |
| 4642 | } |
| 4643 | var msglen int |
| 4644 | for shift := uint(0); ; shift += 7 { |
| 4645 | if shift >= 64 { |
| 4646 | return ErrIntOverflowQuery |
| 4647 | } |
| 4648 | if iNdEx >= l { |
| 4649 | return io.ErrUnexpectedEOF |
| 4650 | } |
| 4651 | b := dAtA[iNdEx] |
| 4652 | iNdEx++ |
| 4653 | msglen |= int(b&0x7F) << shift |
| 4654 | if b < 0x80 { |
| 4655 | break |
| 4656 | } |
| 4657 | } |
| 4658 | if msglen < 0 { |
| 4659 | return ErrInvalidLengthQuery |
| 4660 | } |
| 4661 | postIndex := iNdEx + msglen |
| 4662 | if postIndex < 0 { |
| 4663 | return ErrInvalidLengthQuery |
| 4664 | } |
| 4665 | if postIndex > l { |
| 4666 | return io.ErrUnexpectedEOF |
| 4667 | } |
no test coverage detected