(dAtA []byte)
| 2323 | return nil |
| 2324 | } |
| 2325 | func (m *Label) Unmarshal(dAtA []byte) error { |
| 2326 | l := len(dAtA) |
| 2327 | iNdEx := 0 |
| 2328 | for iNdEx < l { |
| 2329 | preIndex := iNdEx |
| 2330 | var wire uint64 |
| 2331 | for shift := uint(0); ; shift += 7 { |
| 2332 | if shift >= 64 { |
| 2333 | return ErrIntOverflowQuerier |
| 2334 | } |
| 2335 | if iNdEx >= l { |
| 2336 | return io.ErrUnexpectedEOF |
| 2337 | } |
| 2338 | b := dAtA[iNdEx] |
| 2339 | iNdEx++ |
| 2340 | wire |= uint64(b&0x7F) << shift |
| 2341 | if b < 0x80 { |
| 2342 | break |
| 2343 | } |
| 2344 | } |
| 2345 | fieldNum := int32(wire >> 3) |
| 2346 | wireType := int(wire & 0x7) |
| 2347 | if wireType == 4 { |
| 2348 | return fmt.Errorf("proto: Label: wiretype end group for non-group") |
| 2349 | } |
| 2350 | if fieldNum <= 0 { |
| 2351 | return fmt.Errorf("proto: Label: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2352 | } |
| 2353 | switch fieldNum { |
| 2354 | case 1: |
| 2355 | if wireType != 2 { |
| 2356 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 2357 | } |
| 2358 | var stringLen uint64 |
| 2359 | for shift := uint(0); ; shift += 7 { |
| 2360 | if shift >= 64 { |
| 2361 | return ErrIntOverflowQuerier |
| 2362 | } |
| 2363 | if iNdEx >= l { |
| 2364 | return io.ErrUnexpectedEOF |
| 2365 | } |
| 2366 | b := dAtA[iNdEx] |
| 2367 | iNdEx++ |
| 2368 | stringLen |= uint64(b&0x7F) << shift |
| 2369 | if b < 0x80 { |
| 2370 | break |
| 2371 | } |
| 2372 | } |
| 2373 | intStringLen := int(stringLen) |
| 2374 | if intStringLen < 0 { |
| 2375 | return ErrInvalidLengthQuerier |
| 2376 | } |
| 2377 | postIndex := iNdEx + intStringLen |
| 2378 | if postIndex < 0 { |
| 2379 | return ErrInvalidLengthQuerier |
| 2380 | } |
| 2381 | if postIndex > l { |
| 2382 | return io.ErrUnexpectedEOF |
no test coverage detected