(dAtA []byte)
| 17150 | return nil |
| 17151 | } |
| 17152 | func (m *Metadata) Unmarshal(dAtA []byte) error { |
| 17153 | l := len(dAtA) |
| 17154 | iNdEx := 0 |
| 17155 | for iNdEx < l { |
| 17156 | preIndex := iNdEx |
| 17157 | var wire uint64 |
| 17158 | for shift := uint(0); ; shift += 7 { |
| 17159 | if shift >= 64 { |
| 17160 | return ErrIntOverflowPb |
| 17161 | } |
| 17162 | if iNdEx >= l { |
| 17163 | return io.ErrUnexpectedEOF |
| 17164 | } |
| 17165 | b := dAtA[iNdEx] |
| 17166 | iNdEx++ |
| 17167 | wire |= uint64(b&0x7F) << shift |
| 17168 | if b < 0x80 { |
| 17169 | break |
| 17170 | } |
| 17171 | } |
| 17172 | fieldNum := int32(wire >> 3) |
| 17173 | wireType := int(wire & 0x7) |
| 17174 | if wireType == 4 { |
| 17175 | return fmt.Errorf("proto: Metadata: wiretype end group for non-group") |
| 17176 | } |
| 17177 | if fieldNum <= 0 { |
| 17178 | return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17179 | } |
| 17180 | switch fieldNum { |
| 17181 | case 1: |
| 17182 | if wireType != 2 { |
| 17183 | return fmt.Errorf("proto: wrong wireType = %d for field PredHints", wireType) |
| 17184 | } |
| 17185 | var msglen int |
| 17186 | for shift := uint(0); ; shift += 7 { |
| 17187 | if shift >= 64 { |
| 17188 | return ErrIntOverflowPb |
| 17189 | } |
| 17190 | if iNdEx >= l { |
| 17191 | return io.ErrUnexpectedEOF |
| 17192 | } |
| 17193 | b := dAtA[iNdEx] |
| 17194 | iNdEx++ |
| 17195 | msglen |= int(b&0x7F) << shift |
| 17196 | if b < 0x80 { |
| 17197 | break |
| 17198 | } |
| 17199 | } |
| 17200 | if msglen < 0 { |
| 17201 | return ErrInvalidLengthPb |
| 17202 | } |
| 17203 | postIndex := iNdEx + msglen |
| 17204 | if postIndex < 0 { |
| 17205 | return ErrInvalidLengthPb |
| 17206 | } |
| 17207 | if postIndex > l { |
| 17208 | return io.ErrUnexpectedEOF |
| 17209 | } |
no test coverage detected