package e8;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Arrays;
import n7.c4;

/* JADX INFO: loaded from: classes2.dex */
public final class c extends f8.a {

    @NonNull
    public static final Parcelable.Creator<c> CREATOR = new c4(21);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f25515a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f25516b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f25517c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f25518d;

    public c(int i10, long j10, String str, boolean z10) {
        this.f25515a = str;
        this.f25516b = i10;
        this.f25517c = j10;
        this.f25518d = z10;
    }

    public final boolean equals(@Nullable Object obj) {
        if (obj instanceof c) {
            c cVar = (c) obj;
            if (com.google.android.gms.common.internal.v.equal(this.f25515a, cVar.f25515a) && w() == cVar.w() && this.f25518d == cVar.f25518d) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{this.f25515a, Long.valueOf(w()), Boolean.valueOf(this.f25518d)});
    }

    public final String toString() {
        com.google.android.gms.common.internal.u uVarA = com.google.android.gms.common.internal.v.a(this);
        uVarA.add("name", this.f25515a);
        uVarA.add("version", Long.valueOf(w()));
        uVarA.add("is_fully_rolled_out", Boolean.valueOf(this.f25518d));
        return uVarA.toString();
    }

    public final long w() {
        long j10 = this.f25517c;
        return j10 == -1 ? this.f25516b : j10;
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        int I = com.bumptech.glide.g.I(20293, parcel);
        com.bumptech.glide.g.r(parcel, 1, this.f25515a);
        com.bumptech.glide.g.C(parcel, 2, 4);
        parcel.writeInt(this.f25516b);
        long jW = w();
        com.bumptech.glide.g.C(parcel, 3, 8);
        parcel.writeLong(jW);
        com.bumptech.glide.g.C(parcel, 4, 4);
        parcel.writeInt(this.f25518d ? 1 : 0);
        com.bumptech.glide.g.N(I, parcel);
    }

    public c(String str, long j10) {
        this(-1, j10, str, false);
    }
}
