(dAtA []byte)
| 758 | return fmt.Sprintf("*%v", pv) |
| 759 | } |
| 760 | func (m *HTTPRequest) Unmarshal(dAtA []byte) error { |
| 761 | l := len(dAtA) |
| 762 | iNdEx := 0 |
| 763 | for iNdEx < l { |
| 764 | preIndex := iNdEx |
| 765 | var wire uint64 |
| 766 | for shift := uint(0); ; shift += 7 { |
| 767 | if shift >= 64 { |
| 768 | return ErrIntOverflowHttpgrpc |
| 769 | } |
| 770 | if iNdEx >= l { |
| 771 | return io.ErrUnexpectedEOF |
| 772 | } |
| 773 | b := dAtA[iNdEx] |
| 774 | iNdEx++ |
| 775 | wire |= uint64(b&0x7F) << shift |
| 776 | if b < 0x80 { |
| 777 | break |
| 778 | } |
| 779 | } |
| 780 | fieldNum := int32(wire >> 3) |
| 781 | wireType := int(wire & 0x7) |
| 782 | if wireType == 4 { |
| 783 | return fmt.Errorf("proto: HTTPRequest: wiretype end group for non-group") |
| 784 | } |
| 785 | if fieldNum <= 0 { |
| 786 | return fmt.Errorf("proto: HTTPRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 787 | } |
| 788 | switch fieldNum { |
| 789 | case 1: |
| 790 | if wireType != 2 { |
| 791 | return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) |
| 792 | } |
| 793 | var stringLen uint64 |
| 794 | for shift := uint(0); ; shift += 7 { |
| 795 | if shift >= 64 { |
| 796 | return ErrIntOverflowHttpgrpc |
| 797 | } |
| 798 | if iNdEx >= l { |
| 799 | return io.ErrUnexpectedEOF |
| 800 | } |
| 801 | b := dAtA[iNdEx] |
| 802 | iNdEx++ |
| 803 | stringLen |= uint64(b&0x7F) << shift |
| 804 | if b < 0x80 { |
| 805 | break |
| 806 | } |
| 807 | } |
| 808 | intStringLen := int(stringLen) |
| 809 | if intStringLen < 0 { |
| 810 | return ErrInvalidLengthHttpgrpc |
| 811 | } |
| 812 | postIndex := iNdEx + intStringLen |
| 813 | if postIndex < 0 { |
| 814 | return ErrInvalidLengthHttpgrpc |
| 815 | } |
| 816 | if postIndex > l { |
| 817 | return io.ErrUnexpectedEOF |
no test coverage detected