(dAtA []byte)
| 12816 | return nil |
| 12817 | } |
| 12818 | func (m *Query) Unmarshal(dAtA []byte) error { |
| 12819 | l := len(dAtA) |
| 12820 | iNdEx := 0 |
| 12821 | for iNdEx < l { |
| 12822 | preIndex := iNdEx |
| 12823 | var wire uint64 |
| 12824 | for shift := uint(0); ; shift += 7 { |
| 12825 | if shift >= 64 { |
| 12826 | return ErrIntOverflowPb |
| 12827 | } |
| 12828 | if iNdEx >= l { |
| 12829 | return io.ErrUnexpectedEOF |
| 12830 | } |
| 12831 | b := dAtA[iNdEx] |
| 12832 | iNdEx++ |
| 12833 | wire |= uint64(b&0x7F) << shift |
| 12834 | if b < 0x80 { |
| 12835 | break |
| 12836 | } |
| 12837 | } |
| 12838 | fieldNum := int32(wire >> 3) |
| 12839 | wireType := int(wire & 0x7) |
| 12840 | if wireType == 4 { |
| 12841 | return fmt.Errorf("proto: Query: wiretype end group for non-group") |
| 12842 | } |
| 12843 | if fieldNum <= 0 { |
| 12844 | return fmt.Errorf("proto: Query: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12845 | } |
| 12846 | switch fieldNum { |
| 12847 | case 1: |
| 12848 | if wireType != 2 { |
| 12849 | return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType) |
| 12850 | } |
| 12851 | var stringLen uint64 |
| 12852 | for shift := uint(0); ; shift += 7 { |
| 12853 | if shift >= 64 { |
| 12854 | return ErrIntOverflowPb |
| 12855 | } |
| 12856 | if iNdEx >= l { |
| 12857 | return io.ErrUnexpectedEOF |
| 12858 | } |
| 12859 | b := dAtA[iNdEx] |
| 12860 | iNdEx++ |
| 12861 | stringLen |= uint64(b&0x7F) << shift |
| 12862 | if b < 0x80 { |
| 12863 | break |
| 12864 | } |
| 12865 | } |
| 12866 | intStringLen := int(stringLen) |
| 12867 | if intStringLen < 0 { |
| 12868 | return ErrInvalidLengthPb |
| 12869 | } |
| 12870 | postIndex := iNdEx + intStringLen |
| 12871 | if postIndex < 0 { |
| 12872 | return ErrInvalidLengthPb |
| 12873 | } |
| 12874 | if postIndex > l { |
| 12875 | return io.ErrUnexpectedEOF |
no test coverage detected