(dAtA []byte)
| 8590 | return nil |
| 8591 | } |
| 8592 | func (m *TraceSearchMetadata) Unmarshal(dAtA []byte) error { |
| 8593 | l := len(dAtA) |
| 8594 | iNdEx := 0 |
| 8595 | for iNdEx < l { |
| 8596 | preIndex := iNdEx |
| 8597 | var wire uint64 |
| 8598 | for shift := uint(0); ; shift += 7 { |
| 8599 | if shift >= 64 { |
| 8600 | return ErrIntOverflowTempo |
| 8601 | } |
| 8602 | if iNdEx >= l { |
| 8603 | return io.ErrUnexpectedEOF |
| 8604 | } |
| 8605 | b := dAtA[iNdEx] |
| 8606 | iNdEx++ |
| 8607 | wire |= uint64(b&0x7F) << shift |
| 8608 | if b < 0x80 { |
| 8609 | break |
| 8610 | } |
| 8611 | } |
| 8612 | fieldNum := int32(wire >> 3) |
| 8613 | wireType := int(wire & 0x7) |
| 8614 | if wireType == 4 { |
| 8615 | return fmt.Errorf("proto: TraceSearchMetadata: wiretype end group for non-group") |
| 8616 | } |
| 8617 | if fieldNum <= 0 { |
| 8618 | return fmt.Errorf("proto: TraceSearchMetadata: illegal tag %d (wire type %d)", fieldNum, wire) |
| 8619 | } |
| 8620 | switch fieldNum { |
| 8621 | case 1: |
| 8622 | if wireType != 2 { |
| 8623 | return fmt.Errorf("proto: wrong wireType = %d for field TraceID", wireType) |
| 8624 | } |
| 8625 | var stringLen uint64 |
| 8626 | for shift := uint(0); ; shift += 7 { |
| 8627 | if shift >= 64 { |
| 8628 | return ErrIntOverflowTempo |
| 8629 | } |
| 8630 | if iNdEx >= l { |
| 8631 | return io.ErrUnexpectedEOF |
| 8632 | } |
| 8633 | b := dAtA[iNdEx] |
| 8634 | iNdEx++ |
| 8635 | stringLen |= uint64(b&0x7F) << shift |
| 8636 | if b < 0x80 { |
| 8637 | break |
| 8638 | } |
| 8639 | } |
| 8640 | intStringLen := int(stringLen) |
| 8641 | if intStringLen < 0 { |
| 8642 | return ErrInvalidLengthTempo |
| 8643 | } |
| 8644 | postIndex := iNdEx + intStringLen |
| 8645 | if postIndex < 0 { |
| 8646 | return ErrInvalidLengthTempo |
| 8647 | } |
| 8648 | if postIndex > l { |
| 8649 | return io.ErrUnexpectedEOF |
no test coverage detected