package com.android.billingclient.api; import android.app.Activity; import android.content.Context; import com.android.billingclient.api.e; import n1.o0; /* loaded from: classes.dex */ public abstract class a { /* renamed from: com.android.billingclient.api.a$a, reason: collision with other inner class name */ public static final class C0062a { /* renamed from: a, reason: collision with root package name */ private volatile e f3901a; /* renamed from: b, reason: collision with root package name */ private final Context f3902b; /* renamed from: c, reason: collision with root package name */ private volatile n1.j f3903c; /* renamed from: d, reason: collision with root package name */ private volatile boolean f3904d; /* renamed from: e, reason: collision with root package name */ private volatile boolean f3905e; /* synthetic */ C0062a(Context context, o0 o0Var) { this.f3902b = context; } public a a() { if (this.f3902b == null) { throw new IllegalArgumentException("Please provide a valid Context."); } if (this.f3903c == null) { if (this.f3904d || this.f3905e) { return new b(null, this.f3902b, null, null); } throw new IllegalArgumentException("Please provide a valid listener for purchases updates."); } if (this.f3901a == null || !this.f3901a.a()) { throw new IllegalArgumentException("Pending purchases for one-time products must be supported."); } return this.f3903c != null ? new b(null, this.f3901a, this.f3902b, this.f3903c, null, null, null) : new b(null, this.f3901a, this.f3902b, null, null, null); } public C0062a b() { e.a c10 = e.c(); c10.b(); c(c10.a()); return this; } public C0062a c(e eVar) { this.f3901a = eVar; return this; } public C0062a d(n1.j jVar) { this.f3903c = jVar; return this; } } public static C0062a d(Context context) { return new C0062a(context, null); } public abstract void a(n1.a aVar, n1.b bVar); public abstract void b(n1.d dVar, n1.e eVar); public abstract d c(Activity activity, c cVar); public abstract void e(g gVar, n1.g gVar2); public abstract void f(n1.k kVar, n1.i iVar); public abstract void g(n1.c cVar); }