package rg; import ac.u2; import com.google.api.client.googleapis.GoogleUtils; import ig.a; import java.io.IOException; import java.util.Objects; import jg.a; import kg.b0; import kg.g; import kg.h; import kg.p; import kg.q; import kg.r; import kg.u; import ln.r0; import pg.m; import pg.o; import ra.h0; public class a extends jg.a { /* renamed from: rg.a$a reason: collision with other inner class name */ public class C2614a { /* renamed from: rg.a$a$a reason: collision with other inner class name */ public class C2615a extends b<sg.a> { public C2615a(C2614a aVar) { super(a.this, "GET", "about", null, sg.a.class); } @Override // jg.b, ig.c, pg.m, rg.b public m f(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, ig.c, rg.b public ig.c l(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, rg.b public jg.b n(String str, Object obj) { super.n(str, obj); return this; } /* Return type fixed from 'rg.b' to match base method */ @Override // rg.b public b<sg.a> o(String str, Object obj) { super.n(str, obj); return this; } } public C2614a() { } } public static final class b extends a.AbstractC1418a { /* JADX WARNING: Illegal instructions before constructor call */ public b(u uVar, ng.b bVar, q qVar) { super(uVar, bVar, r0, "drive/v3/", qVar, false); String str; String str2 = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); str2 = str2 == null ? "auto" : str2; if (!"always".equals(str2)) { "auto".equals(str2); str = "https://www.googleapis.com/"; } else { str = "https://www.mtls.googleapis.com/"; } } @Override // ig.a.AbstractC1299a public a.AbstractC1299a a(String str) { super.c(str); return this; } @Override // ig.a.AbstractC1299a public a.AbstractC1299a b(String str) { super.d(str); return this; } } public class c { /* renamed from: rg.a$c$a reason: collision with other inner class name */ public class C2616a extends b<sg.c> { @o private Boolean enforceSingleParent; @o private Boolean ignoreDefaultVisibility; @o private String includePermissionsForView; @o private Boolean keepRevisionForever; @o private String ocrLanguage; @o private Boolean supportsAllDrives; @o private Boolean supportsTeamDrives; @o private Boolean useContentAsIndexableText; public C2616a(c cVar, sg.c cVar2, kg.b bVar) { super(a.this, "POST", r0.a(b.d.a("/upload/"), a.this.f87652c, "files"), cVar2, sg.c.class); p pVar = this.f87664d.f87650a; hg.b bVar2 = new hg.b(bVar, pVar.f102425a, pVar.f102426b); this.f87670j = bVar2; String str = this.f87665e; h0.f(str.equals("POST") || str.equals("PUT") || str.equals("PATCH")); bVar2.f81424g = str; h hVar = this.f87667g; if (hVar != null) { this.f87670j.f81421d = hVar; } } @Override // jg.b, ig.c, pg.m, rg.b public m f(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, ig.c, rg.b public ig.c l(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, rg.b public jg.b n(String str, Object obj) { super.n(str, obj); return this; } /* Return type fixed from 'rg.b' to match base method */ @Override // rg.b public b<sg.c> o(String str, Object obj) { super.n(str, obj); return this; } } public class b extends b<Void> { @o private Boolean enforceSingleParent; @o private String fileId; @o private Boolean supportsAllDrives; @o private Boolean supportsTeamDrives; public b(c cVar, String str) { super(a.this, "DELETE", "files/{fileId}", null, Void.class); h0.k(str, "Required parameter fileId must be specified."); this.fileId = str; } @Override // jg.b, ig.c, pg.m, rg.b public m f(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, ig.c, rg.b public ig.c l(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, rg.b public jg.b n(String str, Object obj) { super.n(str, obj); return this; } /* Return type fixed from 'rg.b' to match base method */ @Override // rg.b public b<Void> o(String str, Object obj) { super.n(str, obj); return this; } } /* renamed from: rg.a$c$c reason: collision with other inner class name */ public class C2617c extends b<sg.c> { @o private Boolean acknowledgeAbuse; @o private String fileId; @o private String includePermissionsForView; @o private Boolean supportsAllDrives; @o private Boolean supportsTeamDrives; public C2617c(String str) { super(a.this, "GET", "files/{fileId}", null, sg.c.class); h0.k(str, "Required parameter fileId must be specified."); this.fileId = str; Objects.requireNonNull(this.f87664d.f87650a.f102425a); } @Override // jg.b, ig.c, pg.m, rg.b public m f(String str, Object obj) { super.n(str, obj); return this; } @Override // ig.c public g g() { String str; if (!"media".equals(get("alt")) || this.f87670j != null) { a aVar = a.this; str = aVar.f87651b + aVar.f87652c; } else { str = a.this.f87651b + "download/" + a.this.f87652c; } return new g(b0.a(str, this.f87666f, this, true)); } @Override // jg.b, ig.c, rg.b public ig.c l(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, rg.b public jg.b n(String str, Object obj) { super.n(str, obj); return this; } /* Return type fixed from 'rg.b' to match base method */ @Override // rg.b public b<sg.c> o(String str, Object obj) { super.n(str, obj); return this; } public r q() throws IOException { l("alt", "media"); return i(); } } public class d extends b<sg.d> { @o private String corpora; @o private String corpus; @o private String driveId; @o private Boolean includeItemsFromAllDrives; @o private String includePermissionsForView; @o private Boolean includeTeamDriveItems; @o private String orderBy; @o private Integer pageSize; @o private String pageToken; @o /* renamed from: q reason: collision with root package name */ private String f137345q; @o private String spaces; @o private Boolean supportsAllDrives; @o private Boolean supportsTeamDrives; @o private String teamDriveId; public d(c cVar) { super(a.this, "GET", "files", null, sg.d.class); } @Override // jg.b, ig.c, pg.m, rg.b public m f(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, ig.c, rg.b public ig.c l(String str, Object obj) { super.n(str, obj); return this; } @Override // jg.b, rg.b public jg.b n(String str, Object obj) { super.n(str, obj); return this; } /* Return type fixed from 'rg.b' to match base method */ @Override // rg.b public b<sg.d> o(String str, Object obj) { super.n(str, obj); return this; } public d q(String str) { this.orderBy = str; return this; } public d r(String str) { this.f137345q = str; return this; } public d s(String str) { this.spaces = str; return this; } } public c() { } } /* JADX WARNING: Removed duplicated region for block: B:12:0x002f A[RETURN] */ /* JADX WARNING: Removed duplicated region for block: B:13:0x0030 */ static { boolean z14; if (GoogleUtils.f31366b.intValue() == 1) { Integer num = GoogleUtils.f31367c; if (num.intValue() >= 32 || (num.intValue() == 31 && GoogleUtils.f31368d.intValue() >= 1)) { z14 = true; Object[] objArr = {GoogleUtils.f31365a}; if (z14) { throw new IllegalStateException(u2.d("You are currently running with version %s of google-api-client. You need at least version 1.31.1 of google-api-client to run version 1.32.1 of the Drive API library.", objArr)); } return; } } z14 = false; Object[] objArr2 = {GoogleUtils.f31365a}; if (z14) { } } public a(b bVar) { super(bVar); } }