package androidx.datastore.preferences.protobuf;

/* JADX INFO: renamed from: androidx.datastore.preferences.protobuf.q, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1028q implements L {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C1028q f11432b = new C1028q(0);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f11433a;

    public /* synthetic */ C1028q(int i6) {
        this.f11433a = i6;
    }

    @Override // androidx.datastore.preferences.protobuf.L
    public final W a(Class cls) {
        switch (this.f11433a) {
            case 0:
                if (!AbstractC1030t.class.isAssignableFrom(cls)) {
                    throw new IllegalArgumentException("Unsupported message type: ".concat(cls.getName()));
                }
                try {
                    return (W) AbstractC1030t.d(cls.asSubclass(AbstractC1030t.class)).c(3);
                } catch (Exception e6) {
                    throw new RuntimeException("Unable to get message info for ".concat(cls.getName()), e6);
                }
            default:
                throw new IllegalStateException("This should never be called.");
        }
    }

    @Override // androidx.datastore.preferences.protobuf.L
    public final boolean b(Class cls) {
        switch (this.f11433a) {
            case 0:
                return AbstractC1030t.class.isAssignableFrom(cls);
            default:
                return false;
        }
    }
}
