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

180 lines
5.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.android.gms.common.api.Status;
import com.google.android.libraries.places.api.model.AutocompletePrediction;
import com.google.android.libraries.places.api.model.Place;
/* loaded from: classes2.dex */
final class zzgn extends zzgt {
private final String zza;
private final zziy zzb;
private final Place zzc;
private final AutocompletePrediction zzd;
private final Status zze;
private final int zzf;
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof zzgt)) {
return false;
}
zzgt zzgtVar = (zzgt) obj;
if (this.zzf != zzgtVar.zzf()) {
return false;
}
String str = this.zza;
if (str == null) {
if (zzgtVar.zze() != null) {
return false;
}
} else if (!str.equals(zzgtVar.zze())) {
return false;
}
zziy zziyVar = this.zzb;
if (zziyVar == null) {
if (zzgtVar.zzd() != null) {
return false;
}
} else if (!zziyVar.equals(zzgtVar.zzd())) {
return false;
}
Place place = this.zzc;
if (place == null) {
if (zzgtVar.zzc() != null) {
return false;
}
} else if (!place.equals(zzgtVar.zzc())) {
return false;
}
AutocompletePrediction autocompletePrediction = this.zzd;
if (autocompletePrediction == null) {
if (zzgtVar.zzb() != null) {
return false;
}
} else if (!autocompletePrediction.equals(zzgtVar.zzb())) {
return false;
}
Status status = this.zze;
if (status == null) {
if (zzgtVar.zza() != null) {
return false;
}
} else if (!status.equals(zzgtVar.zza())) {
return false;
}
return true;
}
public final int hashCode() {
int i = this.zzf;
String str = this.zza;
int hashCode = str == null ? 0 : str.hashCode();
zziy zziyVar = this.zzb;
int hashCode2 = zziyVar == null ? 0 : zziyVar.hashCode();
Place place = this.zzc;
int hashCode3 = place == null ? 0 : place.hashCode();
AutocompletePrediction autocompletePrediction = this.zzd;
int hashCode4 = autocompletePrediction == null ? 0 : autocompletePrediction.hashCode();
Status status = this.zze;
return ((((((((((i ^ 1000003) * 1000003) ^ hashCode) * 1000003) ^ hashCode2) * 1000003) ^ hashCode3) * 1000003) ^ hashCode4) * 1000003) ^ (status != null ? status.hashCode() : 0);
}
public final String toString() {
String str;
switch (this.zzf) {
case 1:
str = "START";
break;
case 2:
str = "RESET";
break;
case 3:
str = "LOADING";
break;
case 4:
str = "TRY_AGAIN_PROGRESS_LOADING";
break;
case 5:
str = "SUCCESS_PREDICTIONS";
break;
case 6:
str = "FAILURE_NO_PREDICTIONS";
break;
case 7:
str = "FAILURE_PREDICTIONS";
break;
case 8:
str = "SUCCESS_SELECTION";
break;
case 9:
str = "FAILURE_SELECTION";
break;
default:
str = "FAILURE_UNRESOLVABLE";
break;
}
String str2 = this.zza;
String valueOf = String.valueOf(this.zzb);
String valueOf2 = String.valueOf(this.zzc);
String valueOf3 = String.valueOf(this.zzd);
String valueOf4 = String.valueOf(this.zze);
StringBuilder sb = new StringBuilder("AutocompleteState{type=");
sb.append(str);
sb.append(", query=");
sb.append(str2);
sb.append(", predictions=");
sb.append(valueOf);
sb.append(", place=");
sb.append(valueOf2);
sb.append(", prediction=");
sb.append(valueOf3);
sb.append(", status=");
sb.append(valueOf4);
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
@Override // com.google.android.libraries.places.internal.zzgt
public final int zzf() {
return this.zzf;
}
@Override // com.google.android.libraries.places.internal.zzgt
public final String zze() {
return this.zza;
}
@Override // com.google.android.libraries.places.internal.zzgt
public final zziy zzd() {
return this.zzb;
}
@Override // com.google.android.libraries.places.internal.zzgt
public final Place zzc() {
return this.zzc;
}
@Override // com.google.android.libraries.places.internal.zzgt
public final AutocompletePrediction zzb() {
return this.zzd;
}
@Override // com.google.android.libraries.places.internal.zzgt
public final Status zza() {
return this.zze;
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzgn(int i, String str, zziy zziyVar, Place place, AutocompletePrediction autocompletePrediction, Status status, zzgm zzgmVar) {
this.zzf = i;
this.zza = str;
this.zzb = zziyVar;
this.zzc = place;
this.zzd = autocompletePrediction;
this.zze = status;
}
}