package com.google.crypto.tink.shaded.protobuf;

/* JADX INFO: loaded from: classes3.dex */
public final class K implements P {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public P[] f13731a;

    @Override // com.google.crypto.tink.shaded.protobuf.P
    public final b0 a(Class cls) {
        for (P p6 : this.f13731a) {
            if (p6.b(cls)) {
                return p6.a(cls);
            }
        }
        throw new UnsupportedOperationException("No factory is available for message type: ".concat(cls.getName()));
    }

    @Override // com.google.crypto.tink.shaded.protobuf.P
    public final boolean b(Class cls) {
        for (P p6 : this.f13731a) {
            if (p6.b(cls)) {
                return true;
            }
        }
        return false;
    }
}
