package com.google.android.gms.vision.barcode; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; import com.google.android.gms.vision.barcode.Barcode; /* loaded from: classes2.dex */ public final class zzd implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ Barcode.CalendarDateTime[] newArray(int i) { return new Barcode.CalendarDateTime[i]; } @Override // android.os.Parcelable.Creator public final /* synthetic */ Barcode.CalendarDateTime createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); int i = 0; int i2 = 0; int i3 = 0; int i4 = 0; int i5 = 0; int i6 = 0; boolean z = false; String str = null; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); switch (SafeParcelReader.getFieldId(readHeader)) { case 2: i = SafeParcelReader.readInt(parcel, readHeader); break; case 3: i2 = SafeParcelReader.readInt(parcel, readHeader); break; case 4: i3 = SafeParcelReader.readInt(parcel, readHeader); break; case 5: i4 = SafeParcelReader.readInt(parcel, readHeader); break; case 6: i5 = SafeParcelReader.readInt(parcel, readHeader); break; case 7: i6 = SafeParcelReader.readInt(parcel, readHeader); break; case 8: z = SafeParcelReader.readBoolean(parcel, readHeader); break; case 9: str = SafeParcelReader.createString(parcel, readHeader); break; default: SafeParcelReader.skipUnknownField(parcel, readHeader); break; } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new Barcode.CalendarDateTime(i, i2, i3, i4, i5, i6, z, str); } }