(dAtA []byte)
| 2712 | return nil |
| 2713 | } |
| 2714 | func (m *RuleStateDesc) Unmarshal(dAtA []byte) error { |
| 2715 | l := len(dAtA) |
| 2716 | iNdEx := 0 |
| 2717 | for iNdEx < l { |
| 2718 | preIndex := iNdEx |
| 2719 | var wire uint64 |
| 2720 | for shift := uint(0); ; shift += 7 { |
| 2721 | if shift >= 64 { |
| 2722 | return ErrIntOverflowRuler |
| 2723 | } |
| 2724 | if iNdEx >= l { |
| 2725 | return io.ErrUnexpectedEOF |
| 2726 | } |
| 2727 | b := dAtA[iNdEx] |
| 2728 | iNdEx++ |
| 2729 | wire |= uint64(b&0x7F) << shift |
| 2730 | if b < 0x80 { |
| 2731 | break |
| 2732 | } |
| 2733 | } |
| 2734 | fieldNum := int32(wire >> 3) |
| 2735 | wireType := int(wire & 0x7) |
| 2736 | if wireType == 4 { |
| 2737 | return fmt.Errorf("proto: RuleStateDesc: wiretype end group for non-group") |
| 2738 | } |
| 2739 | if fieldNum <= 0 { |
| 2740 | return fmt.Errorf("proto: RuleStateDesc: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2741 | } |
| 2742 | switch fieldNum { |
| 2743 | case 1: |
| 2744 | if wireType != 2 { |
| 2745 | return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) |
| 2746 | } |
| 2747 | var msglen int |
| 2748 | for shift := uint(0); ; shift += 7 { |
| 2749 | if shift >= 64 { |
| 2750 | return ErrIntOverflowRuler |
| 2751 | } |
| 2752 | if iNdEx >= l { |
| 2753 | return io.ErrUnexpectedEOF |
| 2754 | } |
| 2755 | b := dAtA[iNdEx] |
| 2756 | iNdEx++ |
| 2757 | msglen |= int(b&0x7F) << shift |
| 2758 | if b < 0x80 { |
| 2759 | break |
| 2760 | } |
| 2761 | } |
| 2762 | if msglen < 0 { |
| 2763 | return ErrInvalidLengthRuler |
| 2764 | } |
| 2765 | postIndex := iNdEx + msglen |
| 2766 | if postIndex < 0 { |
| 2767 | return ErrInvalidLengthRuler |
| 2768 | } |
| 2769 | if postIndex > l { |
| 2770 | return io.ErrUnexpectedEOF |
| 2771 | } |
no test coverage detected