(dAtA []byte)
| 1164 | return nil |
| 1165 | } |
| 1166 | func (m *TenantIndex) Unmarshal(dAtA []byte) error { |
| 1167 | l := len(dAtA) |
| 1168 | iNdEx := 0 |
| 1169 | for iNdEx < l { |
| 1170 | preIndex := iNdEx |
| 1171 | var wire uint64 |
| 1172 | for shift := uint(0); ; shift += 7 { |
| 1173 | if shift >= 64 { |
| 1174 | return ErrIntOverflowV1 |
| 1175 | } |
| 1176 | if iNdEx >= l { |
| 1177 | return io.ErrUnexpectedEOF |
| 1178 | } |
| 1179 | b := dAtA[iNdEx] |
| 1180 | iNdEx++ |
| 1181 | wire |= uint64(b&0x7F) << shift |
| 1182 | if b < 0x80 { |
| 1183 | break |
| 1184 | } |
| 1185 | } |
| 1186 | fieldNum := int32(wire >> 3) |
| 1187 | wireType := int(wire & 0x7) |
| 1188 | if wireType == 4 { |
| 1189 | return fmt.Errorf("proto: TenantIndex: wiretype end group for non-group") |
| 1190 | } |
| 1191 | if fieldNum <= 0 { |
| 1192 | return fmt.Errorf("proto: TenantIndex: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1193 | } |
| 1194 | switch fieldNum { |
| 1195 | case 1: |
| 1196 | if wireType != 2 { |
| 1197 | return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) |
| 1198 | } |
| 1199 | var msglen int |
| 1200 | for shift := uint(0); ; shift += 7 { |
| 1201 | if shift >= 64 { |
| 1202 | return ErrIntOverflowV1 |
| 1203 | } |
| 1204 | if iNdEx >= l { |
| 1205 | return io.ErrUnexpectedEOF |
| 1206 | } |
| 1207 | b := dAtA[iNdEx] |
| 1208 | iNdEx++ |
| 1209 | msglen |= int(b&0x7F) << shift |
| 1210 | if b < 0x80 { |
| 1211 | break |
| 1212 | } |
| 1213 | } |
| 1214 | if msglen < 0 { |
| 1215 | return ErrInvalidLengthV1 |
| 1216 | } |
| 1217 | postIndex := iNdEx + msglen |
| 1218 | if postIndex < 0 { |
| 1219 | return ErrInvalidLengthV1 |
| 1220 | } |
| 1221 | if postIndex > l { |
| 1222 | return io.ErrUnexpectedEOF |
| 1223 | } |
no test coverage detected