(dAtA []byte)
| 943 | return nil |
| 944 | } |
| 945 | func (m *HTTPResponse) Unmarshal(dAtA []byte) error { |
| 946 | l := len(dAtA) |
| 947 | iNdEx := 0 |
| 948 | for iNdEx < l { |
| 949 | preIndex := iNdEx |
| 950 | var wire uint64 |
| 951 | for shift := uint(0); ; shift += 7 { |
| 952 | if shift >= 64 { |
| 953 | return ErrIntOverflowHttpgrpc |
| 954 | } |
| 955 | if iNdEx >= l { |
| 956 | return io.ErrUnexpectedEOF |
| 957 | } |
| 958 | b := dAtA[iNdEx] |
| 959 | iNdEx++ |
| 960 | wire |= uint64(b&0x7F) << shift |
| 961 | if b < 0x80 { |
| 962 | break |
| 963 | } |
| 964 | } |
| 965 | fieldNum := int32(wire >> 3) |
| 966 | wireType := int(wire & 0x7) |
| 967 | if wireType == 4 { |
| 968 | return fmt.Errorf("proto: HTTPResponse: wiretype end group for non-group") |
| 969 | } |
| 970 | if fieldNum <= 0 { |
| 971 | return fmt.Errorf("proto: HTTPResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 972 | } |
| 973 | switch fieldNum { |
| 974 | case 1: |
| 975 | if wireType != 0 { |
| 976 | return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) |
| 977 | } |
| 978 | m.Code = 0 |
| 979 | for shift := uint(0); ; shift += 7 { |
| 980 | if shift >= 64 { |
| 981 | return ErrIntOverflowHttpgrpc |
| 982 | } |
| 983 | if iNdEx >= l { |
| 984 | return io.ErrUnexpectedEOF |
| 985 | } |
| 986 | b := dAtA[iNdEx] |
| 987 | iNdEx++ |
| 988 | m.Code |= int32(b&0x7F) << shift |
| 989 | if b < 0x80 { |
| 990 | break |
| 991 | } |
| 992 | } |
| 993 | case 2: |
| 994 | if wireType != 2 { |
| 995 | return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) |
| 996 | } |
| 997 | var msglen int |
| 998 | for shift := uint(0); ; shift += 7 { |
| 999 | if shift >= 64 { |
| 1000 | return ErrIntOverflowHttpgrpc |
| 1001 | } |
| 1002 | if iNdEx >= l { |
no test coverage detected