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

/* JADX INFO: loaded from: classes2.dex */
public final class oi1 {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f15081c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public byte f15082d;

    public final pi1 a() {
        if (this.f15082d == 1 && this.f15080b != null && this.f15079a != 0 && this.f15081c != 0) {
            return new pi1(this.f15080b, this.f15079a, this.f15081c);
        }
        StringBuilder sb = new StringBuilder();
        if (this.f15080b == null) {
            sb.append(" fileOwner");
        }
        if (this.f15082d == 0) {
            sb.append(" hasDifferentDmaOwner");
        }
        if (this.f15079a == 0) {
            sb.append(" fileChecks");
        }
        if (this.f15081c == 0) {
            sb.append(" filePurpose");
        }
        throw new IllegalStateException("Missing required properties:".concat(sb.toString()));
    }

    public final rp1 b() {
        if (this.f15082d == 3) {
            return new rp1(this.f15080b, this.f15079a, this.f15081c);
        }
        StringBuilder sb = new StringBuilder();
        if ((this.f15082d & 1) == 0) {
            sb.append(" statusCode");
        }
        if ((this.f15082d & 2) == 0) {
            sb.append(" uiMode");
        }
        throw new IllegalStateException("Missing required properties:".concat(sb.toString()));
    }
}
