what-the-bank/sources/com/google/android/libraries/places/internal/zzagt.java

566 lines
17 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.io.IOException;
import java.util.List;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zzagt {
private static final Class zza;
private static final zzahi zzb;
private static final zzahi zzc;
private static final zzahi zzd;
static {
Class<?> cls;
try {
cls = Class.forName("com.google.protobuf.GeneratedMessage");
} catch (Throwable unused) {
cls = null;
}
zza = cls;
zzb = zzZ(false);
zzc = zzZ(true);
zzd = new zzahk();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzC(zzaeo zzaeoVar, Object obj, Object obj2) {
zzaeoVar.zza(obj2);
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzD(zzahi zzahiVar, Object obj, Object obj2) {
zzahiVar.zzf(obj, zzahiVar.zzd(zzahiVar.zzc(obj), zzahiVar.zzc(obj2)));
}
public static void zzE(Class cls) {
Class cls2;
if (!zzaey.class.isAssignableFrom(cls) && (cls2 = zza) != null && !cls2.isAssignableFrom(cls)) {
throw new IllegalArgumentException("Message classes must extend GeneratedMessage or GeneratedMessageLite");
}
}
public static void zzF(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzc(i, list, z);
}
public static void zzG(int i, List list, zzahz zzahzVar) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zze(i, list);
}
public static void zzH(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzg(i, list, z);
}
public static void zzI(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzi(i, list, z);
}
public static void zzJ(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzk(i, list, z);
}
public static void zzK(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzm(i, list, z);
}
public static void zzL(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzo(i, list, z);
}
public static void zzM(int i, List list, zzahz zzahzVar, zzagr zzagrVar) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
for (int i2 = 0; i2 < list.size(); i2++) {
((zzaem) zzahzVar).zzp(i, list.get(i2), zzagrVar);
}
}
public static void zzN(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzr(i, list, z);
}
public static void zzO(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzt(i, list, z);
}
public static void zzP(int i, List list, zzahz zzahzVar, zzagr zzagrVar) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
for (int i2 = 0; i2 < list.size(); i2++) {
((zzaem) zzahzVar).zzu(i, list.get(i2), zzagrVar);
}
}
public static void zzQ(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzw(i, list, z);
}
public static void zzR(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzy(i, list, z);
}
public static void zzS(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzA(i, list, z);
}
public static void zzT(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzC(i, list, z);
}
public static void zzU(int i, List list, zzahz zzahzVar) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzE(i, list);
}
public static void zzV(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzG(i, list, z);
}
public static void zzW(int i, List list, zzahz zzahzVar, boolean z) throws IOException {
if (list == null || list.isEmpty()) {
return;
}
zzahzVar.zzI(i, list, z);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzX(Object obj, Object obj2) {
if (obj != obj2) {
return obj != null && obj.equals(obj2);
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzY(zzagb zzagbVar, Object obj, Object obj2, long j) {
zzaga zzagaVar = (zzaga) zzahs.zzf(obj, j);
zzaga zzagaVar2 = (zzaga) zzahs.zzf(obj2, j);
if (!zzagaVar2.isEmpty()) {
if (!zzagaVar.zzd()) {
zzagaVar = zzagaVar.zza();
}
zzagaVar.zzc(zzagaVar2);
}
zzahs.zzs(obj, j, zzagaVar);
}
private static zzahi zzZ(boolean z) {
Class<?> cls;
try {
cls = Class.forName("com.google.protobuf.UnknownFieldSetSchema");
} catch (Throwable unused) {
cls = null;
}
if (cls == null) {
return null;
}
try {
return (zzahi) cls.getConstructor(Boolean.TYPE).newInstance(Boolean.valueOf(z));
} catch (Throwable unused2) {
return null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zza(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return size * (zzael.zzA(i << 3) + 1);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzb(List list) {
return list.size();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzc(int i, List list) {
int size = list.size();
if (size == 0) {
return 0;
}
int zzz = size * zzael.zzz(i);
for (int i2 = 0; i2 < list.size(); i2++) {
zzz += zzael.zzt((zzaed) list.get(i2));
}
return zzz;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzd(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return zze(list) + (size * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zze(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzaez) {
zzaez zzaezVar = (zzaez) list;
for (int i2 = 0; i2 < size; i2++) {
i += zzael.zzv(zzaezVar.zzd(i2));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
i += zzael.zzv(((Integer) list.get(i3)).intValue());
}
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzf(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return size * (zzael.zzA(i << 3) + 4);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzg(List list) {
return list.size() << 2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzh(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return size * (zzael.zzA(i << 3) + 8);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzi(List list) {
return list.size() << 3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzj(int i, List list, zzagr zzagrVar) {
int size = list.size();
if (size == 0) {
return 0;
}
int i2 = 0;
for (int i3 = 0; i3 < size; i3++) {
i2 += zzael.zzu(i, (zzagg) list.get(i3), zzagrVar);
}
return i2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzk(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return zzl(list) + (size * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzl(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzaez) {
zzaez zzaezVar = (zzaez) list;
for (int i2 = 0; i2 < size; i2++) {
i += zzael.zzv(zzaezVar.zzd(i2));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
i += zzael.zzv(((Integer) list.get(i3)).intValue());
}
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzm(int i, List list, boolean z) {
if (list.size() == 0) {
return 0;
}
return zzn(list) + (list.size() * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzn(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzafv) {
zzafv zzafvVar = (zzafv) list;
for (int i2 = 0; i2 < size; i2++) {
i += zzael.zzB(zzafvVar.zzd(i2));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
i += zzael.zzB(((Long) list.get(i3)).longValue());
}
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzo(int i, Object obj, zzagr zzagrVar) {
if (obj instanceof zzafm) {
int zza2 = ((zzafm) obj).zza();
return zzael.zzA(i << 3) + zzael.zzA(zza2) + zza2;
}
return zzael.zzA(i << 3) + zzael.zzx((zzagg) obj, zzagrVar);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzp(int i, List list, zzagr zzagrVar) {
int zzx;
int size = list.size();
if (size == 0) {
return 0;
}
int zzz = zzael.zzz(i) * size;
for (int i2 = 0; i2 < size; i2++) {
Object obj = list.get(i2);
if (obj instanceof zzafm) {
zzx = zzael.zzw((zzafm) obj);
} else {
zzx = zzael.zzx((zzagg) obj, zzagrVar);
}
zzz += zzx;
}
return zzz;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzq(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return zzr(list) + (size * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzr(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzaez) {
zzaez zzaezVar = (zzaez) list;
for (int i2 = 0; i2 < size; i2++) {
int zzd2 = zzaezVar.zzd(i2);
i += zzael.zzA((zzd2 + zzd2) ^ (zzd2 >> 31));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
int intValue = ((Integer) list.get(i3)).intValue();
i += zzael.zzA((intValue + intValue) ^ (intValue >> 31));
}
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzs(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return zzt(list) + (size * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzt(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzafv) {
zzafv zzafvVar = (zzafv) list;
for (int i2 = 0; i2 < size; i2++) {
long zzd2 = zzafvVar.zzd(i2);
i += zzael.zzB((zzd2 + zzd2) ^ (zzd2 >> 63));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
long longValue = ((Long) list.get(i3)).longValue();
i += zzael.zzB((longValue + longValue) ^ (longValue >> 63));
}
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzu(int i, List list) {
int zzy;
int zzy2;
int size = list.size();
int i2 = 0;
if (size == 0) {
return 0;
}
boolean z = list instanceof zzafo;
int zzz = zzael.zzz(i) * size;
if (z) {
zzafo zzafoVar = (zzafo) list;
while (i2 < size) {
Object zze = zzafoVar.zze(i2);
if (zze instanceof zzaed) {
zzy2 = zzael.zzt((zzaed) zze);
} else {
zzy2 = zzael.zzy((String) zze);
}
zzz += zzy2;
i2++;
}
} else {
while (i2 < size) {
Object obj = list.get(i2);
if (obj instanceof zzaed) {
zzy = zzael.zzt((zzaed) obj);
} else {
zzy = zzael.zzy((String) obj);
}
zzz += zzy;
i2++;
}
}
return zzz;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzv(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return zzw(list) + (size * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzw(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzaez) {
zzaez zzaezVar = (zzaez) list;
for (int i2 = 0; i2 < size; i2++) {
i += zzael.zzA(zzaezVar.zzd(i2));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
i += zzael.zzA(((Integer) list.get(i3)).intValue());
}
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzx(int i, List list, boolean z) {
int size = list.size();
if (size == 0) {
return 0;
}
return zzy(list) + (size * zzael.zzz(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzy(List list) {
int size = list.size();
int i = 0;
if (size == 0) {
return 0;
}
if (list instanceof zzafv) {
zzafv zzafvVar = (zzafv) list;
for (int i2 = 0; i2 < size; i2++) {
i += zzael.zzB(zzafvVar.zzd(i2));
}
} else {
for (int i3 = 0; i3 < size; i3++) {
i += zzael.zzB(((Long) list.get(i3)).longValue());
}
}
return i;
}
public static zzahi zzz() {
return zzb;
}
public static zzahi zzB() {
return zzd;
}
public static zzahi zzA() {
return zzc;
}
}