package com.google.android.gms.internal.atv_ads_framework;

/* JADX INFO: loaded from: classes2.dex */
public abstract class z extends androidx.datastore.preferences.protobuf.a {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public a0 f20005b;

    public z(a0 a0Var) {
        this.f20004a = a0Var;
        if (a0Var.b()) {
            throw new IllegalArgumentException("Default instance must be immutable.");
        }
        this.f20005b = a0Var.h();
    }

    /* JADX WARN: Code restructure failed: missing block: B:7:0x0026, code lost:
    
        if (r1 != false) goto L8;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final a0 a() {
        a0 a0VarB = b();
        byte bByteValue = ((Byte) a0VarB.d(1)).byteValue();
        if (bByteValue != 1) {
            if (bByteValue != 0) {
                boolean zD = a1.f19902c.a(a0VarB.getClass()).d(a0VarB);
                a0VarB.d(2);
            }
            throw new zzfo("Message was missing required fields.  (Lite runtime could not determine which fields were missing).");
        }
        return a0VarB;
    }

    public final a0 b() {
        if (!this.f20005b.b()) {
            return this.f20005b;
        }
        a0 a0Var = this.f20005b;
        a0Var.getClass();
        a1.f19902c.a(a0Var.getClass()).b(a0Var);
        a0Var.j();
        return this.f20005b;
    }

    public final void c() {
        if (this.f20005b.b()) {
            return;
        }
        a0 a0VarH = this.f20004a.h();
        a1.f19902c.a(a0VarH.getClass()).c(a0VarH, this.f20005b);
        this.f20005b = a0VarH;
    }

    public final Object clone() {
        z zVar = (z) this.f20004a.d(5);
        zVar.f20005b = b();
        return zVar;
    }
}
