171 lines
5.8 KiB
Java
171 lines
5.8 KiB
Java
package com.google.android.libraries.places.internal;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzaes {
|
|
private static final zzaes zzb = new zzaes(true);
|
|
final zzahe zza = new zzagu(16);
|
|
private boolean zzc;
|
|
private boolean zzd;
|
|
|
|
private zzaes() {
|
|
}
|
|
|
|
public static zzaes zza() {
|
|
throw null;
|
|
}
|
|
|
|
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
|
|
/* JADX WARN: Failed to find 'out' block for switch in B:2:0x000f. Please report as an issue. */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static final void zzd(com.google.android.libraries.places.internal.zzaer r1, java.lang.Object r2) {
|
|
/*
|
|
com.google.android.libraries.places.internal.zzahx r0 = r1.zzb()
|
|
com.google.android.libraries.places.internal.zzafh.zze(r2)
|
|
com.google.android.libraries.places.internal.zzahy r0 = r0.zza()
|
|
int r0 = r0.ordinal()
|
|
switch(r0) {
|
|
case 0: goto L3d;
|
|
case 1: goto L3a;
|
|
case 2: goto L37;
|
|
case 3: goto L34;
|
|
case 4: goto L31;
|
|
case 5: goto L2e;
|
|
case 6: goto L25;
|
|
case 7: goto L1c;
|
|
case 8: goto L13;
|
|
default: goto L12;
|
|
}
|
|
L12:
|
|
goto L42
|
|
L13:
|
|
boolean r0 = r2 instanceof com.google.android.libraries.places.internal.zzagg
|
|
if (r0 != 0) goto L41
|
|
boolean r0 = r2 instanceof com.google.android.libraries.places.internal.zzafl
|
|
if (r0 == 0) goto L42
|
|
return
|
|
L1c:
|
|
boolean r0 = r2 instanceof java.lang.Integer
|
|
if (r0 != 0) goto L41
|
|
boolean r0 = r2 instanceof com.google.android.libraries.places.internal.zzafa
|
|
if (r0 == 0) goto L42
|
|
return
|
|
L25:
|
|
boolean r0 = r2 instanceof com.google.android.libraries.places.internal.zzaed
|
|
if (r0 != 0) goto L41
|
|
boolean r0 = r2 instanceof byte[]
|
|
if (r0 == 0) goto L42
|
|
return
|
|
L2e:
|
|
boolean r0 = r2 instanceof java.lang.String
|
|
goto L3f
|
|
L31:
|
|
boolean r0 = r2 instanceof java.lang.Boolean
|
|
goto L3f
|
|
L34:
|
|
boolean r0 = r2 instanceof java.lang.Double
|
|
goto L3f
|
|
L37:
|
|
boolean r0 = r2 instanceof java.lang.Float
|
|
goto L3f
|
|
L3a:
|
|
boolean r0 = r2 instanceof java.lang.Long
|
|
goto L3f
|
|
L3d:
|
|
boolean r0 = r2 instanceof java.lang.Integer
|
|
L3f:
|
|
if (r0 == 0) goto L42
|
|
L41:
|
|
return
|
|
L42:
|
|
int r0 = r1.zza()
|
|
com.google.android.libraries.places.internal.zzahx r1 = r1.zzb()
|
|
com.google.android.libraries.places.internal.zzahy r1 = r1.zza()
|
|
java.lang.Class r2 = r2.getClass()
|
|
java.lang.String r2 = r2.getName()
|
|
java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
|
|
java.lang.Object[] r1 = new java.lang.Object[]{r0, r1, r2}
|
|
java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException
|
|
java.lang.String r0 = "Wrong object type used with protocol message reflection.\nField number: %d, field java type: %s, value type: %s\n"
|
|
java.lang.String r1 = java.lang.String.format(r0, r1)
|
|
r2.<init>(r1)
|
|
throw r2
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzaes.zzd(com.google.android.libraries.places.internal.zzaer, java.lang.Object):void");
|
|
}
|
|
|
|
public final /* synthetic */ Object clone() throws CloneNotSupportedException {
|
|
zzaes zzaesVar = new zzaes();
|
|
for (int i = 0; i < this.zza.zzb(); i++) {
|
|
Map.Entry zzg = this.zza.zzg(i);
|
|
zzaesVar.zzc((zzaer) zzg.getKey(), zzg.getValue());
|
|
}
|
|
for (Map.Entry entry : this.zza.zzc()) {
|
|
zzaesVar.zzc((zzaer) entry.getKey(), entry.getValue());
|
|
}
|
|
zzaesVar.zzd = this.zzd;
|
|
return zzaesVar;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj instanceof zzaes) {
|
|
return this.zza.equals(((zzaes) obj).zza);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return this.zza.hashCode();
|
|
}
|
|
|
|
public final void zzb() {
|
|
if (this.zzc) {
|
|
return;
|
|
}
|
|
for (int i = 0; i < this.zza.zzb(); i++) {
|
|
Map.Entry zzg = this.zza.zzg(i);
|
|
if (zzg.getValue() instanceof zzaey) {
|
|
((zzaey) zzg.getValue()).zzG();
|
|
}
|
|
}
|
|
this.zza.zza();
|
|
this.zzc = true;
|
|
}
|
|
|
|
public final void zzc(zzaer zzaerVar, Object obj) {
|
|
if (zzaerVar.zzc()) {
|
|
if (!(obj instanceof List)) {
|
|
throw new IllegalArgumentException("Wrong object type used with protocol message reflection.");
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.addAll((List) obj);
|
|
int size = arrayList.size();
|
|
for (int i = 0; i < size; i++) {
|
|
zzd(zzaerVar, arrayList.get(i));
|
|
}
|
|
obj = arrayList;
|
|
} else {
|
|
zzd(zzaerVar, obj);
|
|
}
|
|
if (obj instanceof zzafl) {
|
|
this.zzd = true;
|
|
}
|
|
this.zza.put(zzaerVar, obj);
|
|
}
|
|
|
|
private zzaes(boolean z) {
|
|
zzb();
|
|
zzb();
|
|
}
|
|
}
|