(dAtA []byte)
| 1335 | return nil |
| 1336 | } |
| 1337 | func (m *EncodedErrorDetails) Unmarshal(dAtA []byte) error { |
| 1338 | l := len(dAtA) |
| 1339 | iNdEx := 0 |
| 1340 | for iNdEx < l { |
| 1341 | preIndex := iNdEx |
| 1342 | var wire uint64 |
| 1343 | for shift := uint(0); ; shift += 7 { |
| 1344 | if shift >= 64 { |
| 1345 | return ErrIntOverflowErrors |
| 1346 | } |
| 1347 | if iNdEx >= l { |
| 1348 | return io.ErrUnexpectedEOF |
| 1349 | } |
| 1350 | b := dAtA[iNdEx] |
| 1351 | iNdEx++ |
| 1352 | wire |= uint64(b&0x7F) << shift |
| 1353 | if b < 0x80 { |
| 1354 | break |
| 1355 | } |
| 1356 | } |
| 1357 | fieldNum := int32(wire >> 3) |
| 1358 | wireType := int(wire & 0x7) |
| 1359 | if wireType == 4 { |
| 1360 | return fmt.Errorf("proto: EncodedErrorDetails: wiretype end group for non-group") |
| 1361 | } |
| 1362 | if fieldNum <= 0 { |
| 1363 | return fmt.Errorf("proto: EncodedErrorDetails: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1364 | } |
| 1365 | switch fieldNum { |
| 1366 | case 1: |
| 1367 | if wireType != 2 { |
| 1368 | return fmt.Errorf("proto: wrong wireType = %d for field OriginalTypeName", wireType) |
| 1369 | } |
| 1370 | var stringLen uint64 |
| 1371 | for shift := uint(0); ; shift += 7 { |
| 1372 | if shift >= 64 { |
| 1373 | return ErrIntOverflowErrors |
| 1374 | } |
| 1375 | if iNdEx >= l { |
| 1376 | return io.ErrUnexpectedEOF |
| 1377 | } |
| 1378 | b := dAtA[iNdEx] |
| 1379 | iNdEx++ |
| 1380 | stringLen |= uint64(b&0x7F) << shift |
| 1381 | if b < 0x80 { |
| 1382 | break |
| 1383 | } |
| 1384 | } |
| 1385 | intStringLen := int(stringLen) |
| 1386 | if intStringLen < 0 { |
| 1387 | return ErrInvalidLengthErrors |
| 1388 | } |
| 1389 | postIndex := iNdEx + intStringLen |
| 1390 | if postIndex < 0 { |
| 1391 | return ErrInvalidLengthErrors |
| 1392 | } |
| 1393 | if postIndex > l { |
| 1394 | return io.ErrUnexpectedEOF |
no test coverage detected