236 lines
7.9 KiB
Java
236 lines
7.9 KiB
Java
|
package com.google.android.libraries.places.internal;
|
||
|
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import com.google.android.libraries.places.api.model.LocationBias;
|
||
|
import com.google.android.libraries.places.api.model.LocationRestriction;
|
||
|
import com.google.android.libraries.places.api.model.TypeFilter;
|
||
|
import com.google.android.libraries.places.widget.model.AutocompleteActivityMode;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
abstract class zzgi extends zzgr {
|
||
|
private final AutocompleteActivityMode zza;
|
||
|
private final zziy zzb;
|
||
|
private final zzgp zzc;
|
||
|
private final String zzd;
|
||
|
private final String zze;
|
||
|
private final LocationBias zzf;
|
||
|
private final LocationRestriction zzg;
|
||
|
private final zziy zzh;
|
||
|
private final TypeFilter zzi;
|
||
|
private final zziy zzj;
|
||
|
private final int zzk;
|
||
|
private final int zzl;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public zzgi(AutocompleteActivityMode autocompleteActivityMode, zziy zziyVar, zzgp zzgpVar, String str, String str2, LocationBias locationBias, LocationRestriction locationRestriction, zziy zziyVar2, TypeFilter typeFilter, zziy zziyVar3, int i, int i2) {
|
||
|
if (autocompleteActivityMode == null) {
|
||
|
throw new NullPointerException("Null mode");
|
||
|
}
|
||
|
this.zza = autocompleteActivityMode;
|
||
|
if (zziyVar == null) {
|
||
|
throw new NullPointerException("Null placeFields");
|
||
|
}
|
||
|
this.zzb = zziyVar;
|
||
|
if (zzgpVar == null) {
|
||
|
throw new NullPointerException("Null origin");
|
||
|
}
|
||
|
this.zzc = zzgpVar;
|
||
|
this.zzd = str;
|
||
|
this.zze = str2;
|
||
|
this.zzf = locationBias;
|
||
|
this.zzg = locationRestriction;
|
||
|
if (zziyVar2 == null) {
|
||
|
throw new NullPointerException("Null countries");
|
||
|
}
|
||
|
this.zzh = zziyVar2;
|
||
|
this.zzi = typeFilter;
|
||
|
if (zziyVar3 == null) {
|
||
|
throw new NullPointerException("Null typesFilter");
|
||
|
}
|
||
|
this.zzj = zziyVar3;
|
||
|
this.zzk = i;
|
||
|
this.zzl = i2;
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (obj == this) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof zzgr)) {
|
||
|
return false;
|
||
|
}
|
||
|
zzgr zzgrVar = (zzgr) obj;
|
||
|
if (!this.zza.equals(zzgrVar.zzh()) || !this.zzb.equals(zzgrVar.zzj()) || !this.zzc.equals(zzgrVar.zzf())) {
|
||
|
return false;
|
||
|
}
|
||
|
String str = this.zzd;
|
||
|
if (str == null) {
|
||
|
if (zzgrVar.zzm() != null) {
|
||
|
return false;
|
||
|
}
|
||
|
} else if (!str.equals(zzgrVar.zzm())) {
|
||
|
return false;
|
||
|
}
|
||
|
String str2 = this.zze;
|
||
|
if (str2 == null) {
|
||
|
if (zzgrVar.zzl() != null) {
|
||
|
return false;
|
||
|
}
|
||
|
} else if (!str2.equals(zzgrVar.zzl())) {
|
||
|
return false;
|
||
|
}
|
||
|
LocationBias locationBias = this.zzf;
|
||
|
if (locationBias == null) {
|
||
|
if (zzgrVar.zzc() != null) {
|
||
|
return false;
|
||
|
}
|
||
|
} else if (!locationBias.equals(zzgrVar.zzc())) {
|
||
|
return false;
|
||
|
}
|
||
|
LocationRestriction locationRestriction = this.zzg;
|
||
|
if (locationRestriction == null) {
|
||
|
if (zzgrVar.zzd() != null) {
|
||
|
return false;
|
||
|
}
|
||
|
} else if (!locationRestriction.equals(zzgrVar.zzd())) {
|
||
|
return false;
|
||
|
}
|
||
|
if (!this.zzh.equals(zzgrVar.zzi())) {
|
||
|
return false;
|
||
|
}
|
||
|
TypeFilter typeFilter = this.zzi;
|
||
|
if (typeFilter == null) {
|
||
|
if (zzgrVar.zze() != null) {
|
||
|
return false;
|
||
|
}
|
||
|
} else if (!typeFilter.equals(zzgrVar.zze())) {
|
||
|
return false;
|
||
|
}
|
||
|
return this.zzj.equals(zzgrVar.zzk()) && this.zzk == zzgrVar.zza() && this.zzl == zzgrVar.zzb();
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
int hashCode = this.zza.hashCode();
|
||
|
int hashCode2 = this.zzb.hashCode();
|
||
|
int hashCode3 = this.zzc.hashCode();
|
||
|
String str = this.zzd;
|
||
|
int hashCode4 = str == null ? 0 : str.hashCode();
|
||
|
String str2 = this.zze;
|
||
|
int hashCode5 = str2 == null ? 0 : str2.hashCode();
|
||
|
LocationBias locationBias = this.zzf;
|
||
|
int hashCode6 = locationBias == null ? 0 : locationBias.hashCode();
|
||
|
LocationRestriction locationRestriction = this.zzg;
|
||
|
int hashCode7 = locationRestriction == null ? 0 : locationRestriction.hashCode();
|
||
|
int hashCode8 = this.zzh.hashCode();
|
||
|
TypeFilter typeFilter = this.zzi;
|
||
|
return ((((((((((((((((((((((hashCode ^ 1000003) * 1000003) ^ hashCode2) * 1000003) ^ hashCode3) * 1000003) ^ hashCode4) * 1000003) ^ hashCode5) * 1000003) ^ hashCode6) * 1000003) ^ hashCode7) * 1000003) ^ hashCode8) * 1000003) ^ (typeFilter != null ? typeFilter.hashCode() : 0)) * 1000003) ^ this.zzj.hashCode()) * 1000003) ^ this.zzk) * 1000003) ^ this.zzl;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
String obj = this.zza.toString();
|
||
|
String obj2 = this.zzb.toString();
|
||
|
String obj3 = this.zzc.toString();
|
||
|
String str = this.zzd;
|
||
|
String str2 = this.zze;
|
||
|
String valueOf = String.valueOf(this.zzf);
|
||
|
String valueOf2 = String.valueOf(this.zzg);
|
||
|
String obj4 = this.zzh.toString();
|
||
|
String valueOf3 = String.valueOf(this.zzi);
|
||
|
String obj5 = this.zzj.toString();
|
||
|
int i = this.zzk;
|
||
|
int i2 = this.zzl;
|
||
|
StringBuilder sb = new StringBuilder("AutocompleteOptions{mode=");
|
||
|
sb.append(obj);
|
||
|
sb.append(", placeFields=");
|
||
|
sb.append(obj2);
|
||
|
sb.append(", origin=");
|
||
|
sb.append(obj3);
|
||
|
sb.append(", initialQuery=");
|
||
|
sb.append(str);
|
||
|
sb.append(", hint=");
|
||
|
sb.append(str2);
|
||
|
sb.append(", locationBias=");
|
||
|
sb.append(valueOf);
|
||
|
sb.append(", locationRestriction=");
|
||
|
sb.append(valueOf2);
|
||
|
sb.append(", countries=");
|
||
|
sb.append(obj4);
|
||
|
sb.append(", typeFilter=");
|
||
|
sb.append(valueOf3);
|
||
|
sb.append(", typesFilter=");
|
||
|
sb.append(obj5);
|
||
|
sb.append(", primaryColor=");
|
||
|
sb.append(i);
|
||
|
sb.append(", primaryColorDark=");
|
||
|
sb.append(i2);
|
||
|
sb.append(UrlTreeKt.componentParamSuffix);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final String zzm() {
|
||
|
return this.zzd;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final String zzl() {
|
||
|
return this.zze;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final zziy zzk() {
|
||
|
return this.zzj;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final zziy zzj() {
|
||
|
return this.zzb;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final zziy zzi() {
|
||
|
return this.zzh;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final AutocompleteActivityMode zzh() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final zzgq zzg() {
|
||
|
return new zzgh(this, null);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final zzgp zzf() {
|
||
|
return this.zzc;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
@Deprecated
|
||
|
public final TypeFilter zze() {
|
||
|
return this.zzi;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final LocationRestriction zzd() {
|
||
|
return this.zzg;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final LocationBias zzc() {
|
||
|
return this.zzf;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final int zzb() {
|
||
|
return this.zzl;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.internal.zzgr
|
||
|
public final int zza() {
|
||
|
return this.zzk;
|
||
|
}
|
||
|
}
|