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

import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes2.dex */
public final class f extends g {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f23894b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ ByteString f23895c;

    public f(ByteString byteString) {
        this.f23895c = byteString;
        this.f23894b = byteString.size();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.g
    public final byte a() {
        int i10 = this.f23893a;
        if (i10 >= this.f23894b) {
            throw new NoSuchElementException();
        }
        this.f23893a = i10 + 1;
        return this.f23895c.i(i10);
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f23893a < this.f23894b;
    }
}
