(dAtA []byte)
| 8470 | return nil |
| 8471 | } |
| 8472 | func (m *SearchResponse) Unmarshal(dAtA []byte) error { |
| 8473 | l := len(dAtA) |
| 8474 | iNdEx := 0 |
| 8475 | for iNdEx < l { |
| 8476 | preIndex := iNdEx |
| 8477 | var wire uint64 |
| 8478 | for shift := uint(0); ; shift += 7 { |
| 8479 | if shift >= 64 { |
| 8480 | return ErrIntOverflowTempo |
| 8481 | } |
| 8482 | if iNdEx >= l { |
| 8483 | return io.ErrUnexpectedEOF |
| 8484 | } |
| 8485 | b := dAtA[iNdEx] |
| 8486 | iNdEx++ |
| 8487 | wire |= uint64(b&0x7F) << shift |
| 8488 | if b < 0x80 { |
| 8489 | break |
| 8490 | } |
| 8491 | } |
| 8492 | fieldNum := int32(wire >> 3) |
| 8493 | wireType := int(wire & 0x7) |
| 8494 | if wireType == 4 { |
| 8495 | return fmt.Errorf("proto: SearchResponse: wiretype end group for non-group") |
| 8496 | } |
| 8497 | if fieldNum <= 0 { |
| 8498 | return fmt.Errorf("proto: SearchResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 8499 | } |
| 8500 | switch fieldNum { |
| 8501 | case 1: |
| 8502 | if wireType != 2 { |
| 8503 | return fmt.Errorf("proto: wrong wireType = %d for field Traces", wireType) |
| 8504 | } |
| 8505 | var msglen int |
| 8506 | for shift := uint(0); ; shift += 7 { |
| 8507 | if shift >= 64 { |
| 8508 | return ErrIntOverflowTempo |
| 8509 | } |
| 8510 | if iNdEx >= l { |
| 8511 | return io.ErrUnexpectedEOF |
| 8512 | } |
| 8513 | b := dAtA[iNdEx] |
| 8514 | iNdEx++ |
| 8515 | msglen |= int(b&0x7F) << shift |
| 8516 | if b < 0x80 { |
| 8517 | break |
| 8518 | } |
| 8519 | } |
| 8520 | if msglen < 0 { |
| 8521 | return ErrInvalidLengthTempo |
| 8522 | } |
| 8523 | postIndex := iNdEx + msglen |
| 8524 | if postIndex < 0 { |
| 8525 | return ErrInvalidLengthTempo |
| 8526 | } |
| 8527 | if postIndex > l { |
| 8528 | return io.ErrUnexpectedEOF |
| 8529 | } |
no test coverage detected