package k4; /* loaded from: classes2.dex */ class i implements h4.g { /* renamed from: a, reason: collision with root package name */ private boolean f11215a = false; /* renamed from: b, reason: collision with root package name */ private boolean f11216b = false; /* renamed from: c, reason: collision with root package name */ private h4.c f11217c; /* renamed from: d, reason: collision with root package name */ private final f f11218d; i(f fVar) { this.f11218d = fVar; } private void a() { if (this.f11215a) { throw new h4.b("Cannot encode a second value in the ValueEncoderContext"); } this.f11215a = true; } void b(h4.c cVar, boolean z10) { this.f11215a = false; this.f11217c = cVar; this.f11216b = z10; } @Override // h4.g public h4.g d(String str) { a(); this.f11218d.g(this.f11217c, str, this.f11216b); return this; } @Override // h4.g public h4.g e(boolean z10) { a(); this.f11218d.l(this.f11217c, z10, this.f11216b); return this; } }