(dAtA []byte)
| 7645 | return nil |
| 7646 | } |
| 7647 | func (m *SearchRequest) Unmarshal(dAtA []byte) error { |
| 7648 | l := len(dAtA) |
| 7649 | iNdEx := 0 |
| 7650 | for iNdEx < l { |
| 7651 | preIndex := iNdEx |
| 7652 | var wire uint64 |
| 7653 | for shift := uint(0); ; shift += 7 { |
| 7654 | if shift >= 64 { |
| 7655 | return ErrIntOverflowTempo |
| 7656 | } |
| 7657 | if iNdEx >= l { |
| 7658 | return io.ErrUnexpectedEOF |
| 7659 | } |
| 7660 | b := dAtA[iNdEx] |
| 7661 | iNdEx++ |
| 7662 | wire |= uint64(b&0x7F) << shift |
| 7663 | if b < 0x80 { |
| 7664 | break |
| 7665 | } |
| 7666 | } |
| 7667 | fieldNum := int32(wire >> 3) |
| 7668 | wireType := int(wire & 0x7) |
| 7669 | if wireType == 4 { |
| 7670 | return fmt.Errorf("proto: SearchRequest: wiretype end group for non-group") |
| 7671 | } |
| 7672 | if fieldNum <= 0 { |
| 7673 | return fmt.Errorf("proto: SearchRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 7674 | } |
| 7675 | switch fieldNum { |
| 7676 | case 1: |
| 7677 | if wireType != 2 { |
| 7678 | return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) |
| 7679 | } |
| 7680 | var msglen int |
| 7681 | for shift := uint(0); ; shift += 7 { |
| 7682 | if shift >= 64 { |
| 7683 | return ErrIntOverflowTempo |
| 7684 | } |
| 7685 | if iNdEx >= l { |
| 7686 | return io.ErrUnexpectedEOF |
| 7687 | } |
| 7688 | b := dAtA[iNdEx] |
| 7689 | iNdEx++ |
| 7690 | msglen |= int(b&0x7F) << shift |
| 7691 | if b < 0x80 { |
| 7692 | break |
| 7693 | } |
| 7694 | } |
| 7695 | if msglen < 0 { |
| 7696 | return ErrInvalidLengthTempo |
| 7697 | } |
| 7698 | postIndex := iNdEx + msglen |
| 7699 | if postIndex < 0 { |
| 7700 | return ErrInvalidLengthTempo |
| 7701 | } |
| 7702 | if postIndex > l { |
| 7703 | return io.ErrUnexpectedEOF |
| 7704 | } |
no test coverage detected