(dAtA []byte)
| 7170 | return sovTempo(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 7171 | } |
| 7172 | func (m *TraceByIDRequest) Unmarshal(dAtA []byte) error { |
| 7173 | l := len(dAtA) |
| 7174 | iNdEx := 0 |
| 7175 | for iNdEx < l { |
| 7176 | preIndex := iNdEx |
| 7177 | var wire uint64 |
| 7178 | for shift := uint(0); ; shift += 7 { |
| 7179 | if shift >= 64 { |
| 7180 | return ErrIntOverflowTempo |
| 7181 | } |
| 7182 | if iNdEx >= l { |
| 7183 | return io.ErrUnexpectedEOF |
| 7184 | } |
| 7185 | b := dAtA[iNdEx] |
| 7186 | iNdEx++ |
| 7187 | wire |= uint64(b&0x7F) << shift |
| 7188 | if b < 0x80 { |
| 7189 | break |
| 7190 | } |
| 7191 | } |
| 7192 | fieldNum := int32(wire >> 3) |
| 7193 | wireType := int(wire & 0x7) |
| 7194 | if wireType == 4 { |
| 7195 | return fmt.Errorf("proto: TraceByIDRequest: wiretype end group for non-group") |
| 7196 | } |
| 7197 | if fieldNum <= 0 { |
| 7198 | return fmt.Errorf("proto: TraceByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 7199 | } |
| 7200 | switch fieldNum { |
| 7201 | case 1: |
| 7202 | if wireType != 2 { |
| 7203 | return fmt.Errorf("proto: wrong wireType = %d for field TraceID", wireType) |
| 7204 | } |
| 7205 | var byteLen int |
| 7206 | for shift := uint(0); ; shift += 7 { |
| 7207 | if shift >= 64 { |
| 7208 | return ErrIntOverflowTempo |
| 7209 | } |
| 7210 | if iNdEx >= l { |
| 7211 | return io.ErrUnexpectedEOF |
| 7212 | } |
| 7213 | b := dAtA[iNdEx] |
| 7214 | iNdEx++ |
| 7215 | byteLen |= int(b&0x7F) << shift |
| 7216 | if b < 0x80 { |
| 7217 | break |
| 7218 | } |
| 7219 | } |
| 7220 | if byteLen < 0 { |
| 7221 | return ErrInvalidLengthTempo |
| 7222 | } |
| 7223 | postIndex := iNdEx + byteLen |
| 7224 | if postIndex < 0 { |
| 7225 | return ErrInvalidLengthTempo |
| 7226 | } |
| 7227 | if postIndex > l { |
| 7228 | return io.ErrUnexpectedEOF |
| 7229 | } |
no test coverage detected