package androidx.credentials.provider;

import android.os.Build;
import android.os.Bundle;
import androidx.credentials.provider.utils.BeginGetCredentialUtil;
import androidx.media3.container.NalUnitUtil;
import defpackage.cr4;
import defpackage.ik2;
import defpackage.kp6;
import defpackage.l18;
import defpackage.pq6;
import defpackage.uz1;
import defpackage.x15;
import defpackage.y41;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\f\u0018\u0000 \u00152\u00020\u0001:\u0004\u0012\u0013\u0014\u0015BA\u0012\u000e\b\u0002\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003\u0012\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00060\u0003\u0012\u000e\b\u0002\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0003\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\u0002\u0010\u000bR\u0017\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00060\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0017\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\rR\u0017\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\rR\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0016"}, d2 = {"Landroidx/credentials/provider/BeginGetCredentialResponse;", "", "credentialEntries", "", "Landroidx/credentials/provider/CredentialEntry;", "actions", "Landroidx/credentials/provider/Action;", "authenticationActions", "Landroidx/credentials/provider/AuthenticationAction;", "remoteEntry", "Landroidx/credentials/provider/RemoteEntry;", "(Ljava/util/List;Ljava/util/List;Ljava/util/List;Landroidx/credentials/provider/RemoteEntry;)V", "getActions", "()Ljava/util/List;", "getAuthenticationActions", "getCredentialEntries", "getRemoteEntry", "()Landroidx/credentials/provider/RemoteEntry;", "Api23Impl", "Api34Impl", "Builder", "Companion", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final class BeginGetCredentialResponse {

    /* JADX INFO: renamed from: Companion, reason: from kotlin metadata */
    @kp6
    public static final Companion INSTANCE = new Companion(null);

    @kp6
    private final List<Action> actions;

    @kp6
    private final List<AuthenticationAction> authenticationActions;

    @kp6
    private final List<CredentialEntry> credentialEntries;

    @pq6
    private final RemoteEntry remoteEntry;

    @l18
    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\bÃ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u001f\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0007¢\u0006\u0004\b\t\u0010\nJ\u0019\u0010\u000b\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"Landroidx/credentials/provider/BeginGetCredentialResponse$Api23Impl;", "", "<init>", "()V", "Landroid/os/Bundle;", "bundle", "Landroidx/credentials/provider/BeginGetCredentialResponse;", "response", "Le6a;", "asBundle", "(Landroid/os/Bundle;Landroidx/credentials/provider/BeginGetCredentialResponse;)V", "fromBundle", "(Landroid/os/Bundle;)Landroidx/credentials/provider/BeginGetCredentialResponse;", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Api23Impl {

        @kp6
        public static final Api23Impl INSTANCE = new Api23Impl();

        private Api23Impl() {
        }

        @x15
        public static final void asBundle(@kp6 Bundle bundle, @kp6 BeginGetCredentialResponse response) {
            cr4.g(bundle, "bundle");
            cr4.g(response, "response");
            CredentialEntry.INSTANCE.marshall$credentials_release(response.getCredentialEntries(), bundle);
            Action.INSTANCE.marshall$credentials_release(response.getActions(), bundle);
            AuthenticationAction.INSTANCE.marshall$credentials_release(response.getAuthenticationActions(), bundle);
            RemoteEntry remoteEntry = response.getRemoteEntry();
            if (remoteEntry != null) {
                RemoteEntry.INSTANCE.marshall$credentials_release(remoteEntry, bundle);
            }
        }

        @pq6
        @x15
        public static final BeginGetCredentialResponse fromBundle(@kp6 Bundle bundle) {
            cr4.g(bundle, "bundle");
            List<CredentialEntry> listUnmarshallCredentialEntries$credentials_release = CredentialEntry.INSTANCE.unmarshallCredentialEntries$credentials_release(bundle);
            List<Action> listUnmarshallActionList$credentials_release = Action.INSTANCE.unmarshallActionList$credentials_release(bundle);
            List<AuthenticationAction> listUnmarshallAuthActionList$credentials_release = AuthenticationAction.INSTANCE.unmarshallAuthActionList$credentials_release(bundle);
            RemoteEntry remoteEntryUnmarshallRemoteEntry$credentials_release = RemoteEntry.INSTANCE.unmarshallRemoteEntry$credentials_release(bundle);
            if (listUnmarshallCredentialEntries$credentials_release.isEmpty() && listUnmarshallActionList$credentials_release.isEmpty() && listUnmarshallAuthActionList$credentials_release.isEmpty() && remoteEntryUnmarshallRemoteEntry$credentials_release == null) {
                return null;
            }
            return new BeginGetCredentialResponse(listUnmarshallCredentialEntries$credentials_release, listUnmarshallActionList$credentials_release, listUnmarshallAuthActionList$credentials_release, remoteEntryUnmarshallRemoteEntry$credentials_release);
        }
    }

    @l18
    @Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\bÃ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u001f\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0007¢\u0006\u0004\b\t\u0010\nJ\u0019\u0010\u000b\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u000b\u0010\fR\u0014\u0010\u000e\u001a\u00020\r8\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u000e\u0010\u000f¨\u0006\u0010"}, d2 = {"Landroidx/credentials/provider/BeginGetCredentialResponse$Api34Impl;", "", "<init>", "()V", "Landroid/os/Bundle;", "bundle", "Landroidx/credentials/provider/BeginGetCredentialResponse;", "response", "Le6a;", "asBundle", "(Landroid/os/Bundle;Landroidx/credentials/provider/BeginGetCredentialResponse;)V", "fromBundle", "(Landroid/os/Bundle;)Landroidx/credentials/provider/BeginGetCredentialResponse;", "", "REQUEST_KEY", "Ljava/lang/String;", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Api34Impl {

        @kp6
        public static final Api34Impl INSTANCE = new Api34Impl();

        @kp6
        private static final String REQUEST_KEY = "androidx.credentials.provider.BeginGetCredentialResponse";

        private Api34Impl() {
        }

        @x15
        public static final void asBundle(@kp6 Bundle bundle, @kp6 BeginGetCredentialResponse response) {
            cr4.g(bundle, "bundle");
            cr4.g(response, "response");
            bundle.putParcelable(REQUEST_KEY, BeginGetCredentialUtil.INSTANCE.convertToFrameworkResponse(response));
        }

        @pq6
        @x15
        public static final BeginGetCredentialResponse fromBundle(@kp6 Bundle bundle) {
            cr4.g(bundle, "bundle");
            android.service.credentials.BeginGetCredentialResponse beginGetCredentialResponse = (android.service.credentials.BeginGetCredentialResponse) bundle.getParcelable(REQUEST_KEY, android.service.credentials.BeginGetCredentialResponse.class);
            if (beginGetCredentialResponse != null) {
                return BeginGetCredentialUtil.INSTANCE.convertToJetpackResponse(beginGetCredentialResponse);
            }
            return null;
        }
    }

    @Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\f\u001a\u00020\u00002\u0006\u0010\r\u001a\u00020\u0005J\u000e\u0010\u000e\u001a\u00020\u00002\u0006\u0010\u000f\u001a\u00020\u0007J\u000e\u0010\u0010\u001a\u00020\u00002\u0006\u0010\u0011\u001a\u00020\tJ\u0006\u0010\u0012\u001a\u00020\u0013J\u0014\u0010\u0014\u001a\u00020\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0015J\u0014\u0010\u0016\u001a\u00020\u00002\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00070\u0015J\u0014\u0010\u0018\u001a\u00020\u00002\f\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\t0\u0015J\u0010\u0010\u001a\u001a\u00020\u00002\b\u0010\n\u001a\u0004\u0018\u00010\u000bR\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00070\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\b\u001a\b\u0012\u0004\u0012\u00020\t0\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u0004\u0018\u00010\u000bX\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u001b"}, d2 = {"Landroidx/credentials/provider/BeginGetCredentialResponse$Builder;", "", "()V", "actions", "", "Landroidx/credentials/provider/Action;", "authenticationActions", "Landroidx/credentials/provider/AuthenticationAction;", "credentialEntries", "Landroidx/credentials/provider/CredentialEntry;", "remoteEntry", "Landroidx/credentials/provider/RemoteEntry;", "addAction", "action", "addAuthenticationAction", "authenticationAction", "addCredentialEntry", "entry", "build", "Landroidx/credentials/provider/BeginGetCredentialResponse;", "setActions", "", "setAuthenticationActions", "authenticationEntries", "setCredentialEntries", "entries", "setRemoteEntry", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Builder {

        @pq6
        private RemoteEntry remoteEntry;

        @kp6
        private List<CredentialEntry> credentialEntries = new ArrayList();

        @kp6
        private List<Action> actions = new ArrayList();

        @kp6
        private List<AuthenticationAction> authenticationActions = new ArrayList();

        @kp6
        public final Builder addAction(@kp6 Action action) {
            cr4.g(action, "action");
            this.actions.add(action);
            return this;
        }

        @kp6
        public final Builder addAuthenticationAction(@kp6 AuthenticationAction authenticationAction) {
            cr4.g(authenticationAction, "authenticationAction");
            this.authenticationActions.add(authenticationAction);
            return this;
        }

        @kp6
        public final Builder addCredentialEntry(@kp6 CredentialEntry entry) {
            cr4.g(entry, "entry");
            this.credentialEntries.add(entry);
            return this;
        }

        @kp6
        public final BeginGetCredentialResponse build() {
            return new BeginGetCredentialResponse(y41.bo(this.credentialEntries), y41.bo(this.actions), y41.bo(this.authenticationActions), this.remoteEntry);
        }

        @kp6
        public final Builder setActions(@kp6 List<Action> actions) {
            cr4.g(actions, "actions");
            this.actions = y41.bp(actions);
            return this;
        }

        @kp6
        public final Builder setAuthenticationActions(@kp6 List<AuthenticationAction> authenticationEntries) {
            cr4.g(authenticationEntries, "authenticationEntries");
            this.authenticationActions = y41.bp(authenticationEntries);
            return this;
        }

        @kp6
        public final Builder setCredentialEntries(@kp6 List<? extends CredentialEntry> entries) {
            cr4.g(entries, "entries");
            this.credentialEntries = y41.bp(entries);
            return this;
        }

        @kp6
        public final Builder setRemoteEntry(@pq6 RemoteEntry remoteEntry) {
            this.remoteEntry = remoteEntry;
            return this;
        }
    }

    @Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007J\u0012\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\b\u001a\u00020\u0004H\u0007¨\u0006\t"}, d2 = {"Landroidx/credentials/provider/BeginGetCredentialResponse$Companion;", "", "()V", "asBundle", "Landroid/os/Bundle;", "response", "Landroidx/credentials/provider/BeginGetCredentialResponse;", "fromBundle", "bundle", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Companion {
        public /* synthetic */ Companion(uz1 uz1Var) {
            this();
        }

        @x15
        @kp6
        public final Bundle asBundle(@kp6 BeginGetCredentialResponse response) {
            cr4.g(response, "response");
            Bundle bundle = new Bundle();
            if (Build.VERSION.SDK_INT >= 34) {
                Api34Impl.asBundle(bundle, response);
                return bundle;
            }
            Api23Impl.asBundle(bundle, response);
            return bundle;
        }

        @pq6
        @x15
        public final BeginGetCredentialResponse fromBundle(@kp6 Bundle bundle) {
            cr4.g(bundle, "bundle");
            return Build.VERSION.SDK_INT >= 34 ? Api34Impl.fromBundle(bundle) : Api23Impl.fromBundle(bundle);
        }

        private Companion() {
        }
    }

    public BeginGetCredentialResponse() {
        this(null, null, null, null, 15, null);
    }

    @x15
    @kp6
    public static final Bundle asBundle(@kp6 BeginGetCredentialResponse beginGetCredentialResponse) {
        return INSTANCE.asBundle(beginGetCredentialResponse);
    }

    @pq6
    @x15
    public static final BeginGetCredentialResponse fromBundle(@kp6 Bundle bundle) {
        return INSTANCE.fromBundle(bundle);
    }

    @kp6
    public final List<Action> getActions() {
        return this.actions;
    }

    @kp6
    public final List<AuthenticationAction> getAuthenticationActions() {
        return this.authenticationActions;
    }

    @kp6
    public final List<CredentialEntry> getCredentialEntries() {
        return this.credentialEntries;
    }

    @pq6
    public final RemoteEntry getRemoteEntry() {
        return this.remoteEntry;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public BeginGetCredentialResponse(@kp6 List<? extends CredentialEntry> list, @kp6 List<Action> list2, @kp6 List<AuthenticationAction> list3, @pq6 RemoteEntry remoteEntry) {
        cr4.g(list, "credentialEntries");
        cr4.g(list2, "actions");
        cr4.g(list3, "authenticationActions");
        this.credentialEntries = list;
        this.actions = list2;
        this.authenticationActions = list3;
        this.remoteEntry = remoteEntry;
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public /* synthetic */ BeginGetCredentialResponse(List list, List list2, List list3, RemoteEntry remoteEntry, int i, uz1 uz1Var) {
        int i2 = i & 1;
        ik2 ik2Var = ik2.a;
        this(i2 != 0 ? ik2Var : list, (i & 2) != 0 ? ik2Var : list2, (i & 4) != 0 ? ik2Var : list3, (i & 8) != 0 ? null : remoteEntry);
    }
}
