(dAtA []byte)
| 3702 | return nil |
| 3703 | } |
| 3704 | func (m *PrometheusData) Unmarshal(dAtA []byte) error { |
| 3705 | l := len(dAtA) |
| 3706 | iNdEx := 0 |
| 3707 | for iNdEx < l { |
| 3708 | preIndex := iNdEx |
| 3709 | var wire uint64 |
| 3710 | for shift := uint(0); ; shift += 7 { |
| 3711 | if shift >= 64 { |
| 3712 | return ErrIntOverflowQuery |
| 3713 | } |
| 3714 | if iNdEx >= l { |
| 3715 | return io.ErrUnexpectedEOF |
| 3716 | } |
| 3717 | b := dAtA[iNdEx] |
| 3718 | iNdEx++ |
| 3719 | wire |= uint64(b&0x7F) << shift |
| 3720 | if b < 0x80 { |
| 3721 | break |
| 3722 | } |
| 3723 | } |
| 3724 | fieldNum := int32(wire >> 3) |
| 3725 | wireType := int(wire & 0x7) |
| 3726 | if wireType == 4 { |
| 3727 | return fmt.Errorf("proto: PrometheusData: wiretype end group for non-group") |
| 3728 | } |
| 3729 | if fieldNum <= 0 { |
| 3730 | return fmt.Errorf("proto: PrometheusData: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3731 | } |
| 3732 | switch fieldNum { |
| 3733 | case 1: |
| 3734 | if wireType != 2 { |
| 3735 | return fmt.Errorf("proto: wrong wireType = %d for field ResultType", wireType) |
| 3736 | } |
| 3737 | var stringLen uint64 |
| 3738 | for shift := uint(0); ; shift += 7 { |
| 3739 | if shift >= 64 { |
| 3740 | return ErrIntOverflowQuery |
| 3741 | } |
| 3742 | if iNdEx >= l { |
| 3743 | return io.ErrUnexpectedEOF |
| 3744 | } |
| 3745 | b := dAtA[iNdEx] |
| 3746 | iNdEx++ |
| 3747 | stringLen |= uint64(b&0x7F) << shift |
| 3748 | if b < 0x80 { |
| 3749 | break |
| 3750 | } |
| 3751 | } |
| 3752 | intStringLen := int(stringLen) |
| 3753 | if intStringLen < 0 { |
| 3754 | return ErrInvalidLengthQuery |
| 3755 | } |
| 3756 | postIndex := iNdEx + intStringLen |
| 3757 | if postIndex < 0 { |
| 3758 | return ErrInvalidLengthQuery |
| 3759 | } |
| 3760 | if postIndex > l { |
| 3761 | return io.ErrUnexpectedEOF |
no test coverage detected