package androidx.datastore.preferences.protobuf;

import java.util.NoSuchElementException;

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

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

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

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

    public f(ByteString byteString) {
        this.f2066c = byteString;
        this.f2065b = byteString.size();
    }

    @Override // androidx.datastore.preferences.protobuf.g
    public final byte a() {
        int i10 = this.f2064a;
        if (i10 >= this.f2065b) {
            throw new NoSuchElementException();
        }
        this.f2064a = i10 + 1;
        return this.f2066c.i(i10);
    }

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