package com.google.protobuf;

import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes3.dex */
public final class G0 extends AbstractC1312j {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public AbstractC1312j f14185b = b();

    public G0(I0 i02) {
        this.f14184a = new H0(i02);
    }

    @Override // com.google.protobuf.AbstractC1312j
    public final byte a() {
        AbstractC1312j abstractC1312j = this.f14185b;
        if (abstractC1312j == null) {
            throw new NoSuchElementException();
        }
        byte bA = abstractC1312j.a();
        if (!this.f14185b.hasNext()) {
            this.f14185b = b();
        }
        return bA;
    }

    public final C1310i b() {
        H0 h0 = this.f14184a;
        if (h0.hasNext()) {
            return new C1310i(h0.a());
        }
        return null;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f14185b != null;
    }
}
