package com.google.android.gms.identitycredentials; import android.os.Parcel; import android.os.Parcelable; import androidx.annotation.NonNull; import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import java.util.Collection; import java.util.Iterator; import java.util.List; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; import kotlin.text.StringsKt__StringsJVMKt; @SafeParcelable.Class(creator = "RegistrationRequestCreator") @SourceDebugExtension({"SMAP\nRegistrationRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RegistrationRequest.kt\ncom/google/android/gms/identitycredentials/RegistrationRequest\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,66:1\n1734#2,3:67\n*S KotlinDebug\n*F\n+ 1 RegistrationRequest.kt\ncom/google/android/gms/identitycredentials/RegistrationRequest\n*L\n47#1:67,3\n*E\n"}) /* loaded from: classes2.dex */ public final class RegistrationRequest extends AbstractSafeParcelable { public static final String TAG = "RegistrationRequest"; @SafeParcelable.Field(getter = "getCredentials", id = 1) private final byte[] credentials; @SafeParcelable.Field(getter = "getMatcher", id = 2) private final byte[] matcher; @SafeParcelable.Field(defaultValueUnchecked = "java.util.Collections.emptyList()", getter = "getProtocolTypes", id = 5) private final List protocolTypes; @SafeParcelable.Field(defaultValue = "", getter = "getRequestType", id = 4) private final String requestType; @SafeParcelable.Field(defaultValue = "", getter = "getType", id = 3) private final String type; public static final Companion Companion = new Companion(null); public static final Parcelable.Creator CREATOR = new RegistrationRequestCreator(); public static final class Companion { private Companion() { } public /* synthetic */ Companion(@NonNull DefaultConstructorMarker defaultConstructorMarker) { this(); } } @SafeParcelable.Constructor public RegistrationRequest(@NonNull @SafeParcelable.Param(id = 1) byte[] credentials, @NonNull @SafeParcelable.Param(id = 2) byte[] matcher, @NonNull @SafeParcelable.Param(id = 3) String type, @NonNull @SafeParcelable.Param(id = 4) String requestType, @NonNull @SafeParcelable.Param(id = 5) List protocolTypes) { boolean z; Intrinsics.checkNotNullParameter(credentials, "credentials"); Intrinsics.checkNotNullParameter(matcher, "matcher"); Intrinsics.checkNotNullParameter(type, "type"); Intrinsics.checkNotNullParameter(requestType, "requestType"); Intrinsics.checkNotNullParameter(protocolTypes, "protocolTypes"); this.credentials = credentials; this.matcher = matcher; this.type = type; this.requestType = requestType; this.protocolTypes = protocolTypes; if (!StringsKt__StringsJVMKt.isBlank(requestType) && !protocolTypes.isEmpty()) { List list = protocolTypes; if (!(list instanceof Collection) || !list.isEmpty()) { Iterator it = list.iterator(); while (it.hasNext()) { if (!StringsKt__StringsJVMKt.isBlank((String) it.next())) { z = true; break; } } } } z = false; boolean z2 = !StringsKt__StringsJVMKt.isBlank(this.type) && this.requestType.length() == 0 && this.protocolTypes.isEmpty(); if (z || z2) { return; } throw new IllegalArgumentException("Either type: " + this.type + ", or requestType: " + this.requestType + " and protocolTypes: " + this.protocolTypes + " must be specified, but all were blank, or for protocolTypes, empty or full of blank elements."); } public final byte[] getCredentials() { return this.credentials; } public final byte[] getMatcher() { return this.matcher; } public final List getProtocolTypes() { return this.protocolTypes; } public final String getRequestType() { return this.requestType; } public final String getType() { return this.type; } @Override // android.os.Parcelable public void writeToParcel(@NonNull Parcel dest, int i) { Intrinsics.checkNotNullParameter(dest, "dest"); RegistrationRequestCreator.writeToParcel(this, dest, i); } }