(dAtA []byte)
| 2404 | return nil |
| 2405 | } |
| 2406 | func (m *RulesResponse) Unmarshal(dAtA []byte) error { |
| 2407 | l := len(dAtA) |
| 2408 | iNdEx := 0 |
| 2409 | for iNdEx < l { |
| 2410 | preIndex := iNdEx |
| 2411 | var wire uint64 |
| 2412 | for shift := uint(0); ; shift += 7 { |
| 2413 | if shift >= 64 { |
| 2414 | return ErrIntOverflowRuler |
| 2415 | } |
| 2416 | if iNdEx >= l { |
| 2417 | return io.ErrUnexpectedEOF |
| 2418 | } |
| 2419 | b := dAtA[iNdEx] |
| 2420 | iNdEx++ |
| 2421 | wire |= uint64(b&0x7F) << shift |
| 2422 | if b < 0x80 { |
| 2423 | break |
| 2424 | } |
| 2425 | } |
| 2426 | fieldNum := int32(wire >> 3) |
| 2427 | wireType := int(wire & 0x7) |
| 2428 | if wireType == 4 { |
| 2429 | return fmt.Errorf("proto: RulesResponse: wiretype end group for non-group") |
| 2430 | } |
| 2431 | if fieldNum <= 0 { |
| 2432 | return fmt.Errorf("proto: RulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2433 | } |
| 2434 | switch fieldNum { |
| 2435 | case 1: |
| 2436 | if wireType != 2 { |
| 2437 | return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) |
| 2438 | } |
| 2439 | var msglen int |
| 2440 | for shift := uint(0); ; shift += 7 { |
| 2441 | if shift >= 64 { |
| 2442 | return ErrIntOverflowRuler |
| 2443 | } |
| 2444 | if iNdEx >= l { |
| 2445 | return io.ErrUnexpectedEOF |
| 2446 | } |
| 2447 | b := dAtA[iNdEx] |
| 2448 | iNdEx++ |
| 2449 | msglen |= int(b&0x7F) << shift |
| 2450 | if b < 0x80 { |
| 2451 | break |
| 2452 | } |
| 2453 | } |
| 2454 | if msglen < 0 { |
| 2455 | return ErrInvalidLengthRuler |
| 2456 | } |
| 2457 | postIndex := iNdEx + msglen |
| 2458 | if postIndex < 0 { |
| 2459 | return ErrInvalidLengthRuler |
| 2460 | } |
| 2461 | if postIndex > l { |
| 2462 | return io.ErrUnexpectedEOF |
| 2463 | } |
no test coverage detected