(dAtA []byte)
| 4289 | return nil |
| 4290 | } |
| 4291 | func (m *SampleHistogramPair) 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 ErrIntOverflowQuery |
| 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: SampleHistogramPair: wiretype end group for non-group") |
| 4315 | } |
| 4316 | if fieldNum <= 0 { |
| 4317 | return fmt.Errorf("proto: SampleHistogramPair: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4318 | } |
| 4319 | switch fieldNum { |
| 4320 | case 1: |
| 4321 | if wireType != 0 { |
| 4322 | return fmt.Errorf("proto: wrong wireType = %d for field TimestampMs", wireType) |
| 4323 | } |
| 4324 | m.TimestampMs = 0 |
| 4325 | for shift := uint(0); ; shift += 7 { |
| 4326 | if shift >= 64 { |
| 4327 | return ErrIntOverflowQuery |
| 4328 | } |
| 4329 | if iNdEx >= l { |
| 4330 | return io.ErrUnexpectedEOF |
| 4331 | } |
| 4332 | b := dAtA[iNdEx] |
| 4333 | iNdEx++ |
| 4334 | m.TimestampMs |= int64(b&0x7F) << shift |
| 4335 | if b < 0x80 { |
| 4336 | break |
| 4337 | } |
| 4338 | } |
| 4339 | case 2: |
| 4340 | if wireType != 2 { |
| 4341 | return fmt.Errorf("proto: wrong wireType = %d for field Histogram", wireType) |
| 4342 | } |
| 4343 | var msglen int |
| 4344 | for shift := uint(0); ; shift += 7 { |
| 4345 | if shift >= 64 { |
| 4346 | return ErrIntOverflowQuery |
| 4347 | } |
| 4348 | if iNdEx >= l { |
no test coverage detected