package com.google.android.libraries.places.api.net; import com.airbnb.deeplinkdispatch.UrlTreeKt; import com.google.android.gms.tasks.CancellationToken; import com.google.android.libraries.places.api.model.AutocompleteSessionToken; import com.google.android.libraries.places.api.model.Place; import java.util.List; /* loaded from: classes2.dex */ final class zzg extends FetchPlaceRequest { private final String zza; private final List zzb; private final AutocompleteSessionToken zzc; private final CancellationToken zzd; public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof FetchPlaceRequest)) { return false; } FetchPlaceRequest fetchPlaceRequest = (FetchPlaceRequest) obj; if (!this.zza.equals(fetchPlaceRequest.getPlaceId()) || !this.zzb.equals(fetchPlaceRequest.getPlaceFields())) { return false; } AutocompleteSessionToken autocompleteSessionToken = this.zzc; if (autocompleteSessionToken == null) { if (fetchPlaceRequest.getSessionToken() != null) { return false; } } else if (!autocompleteSessionToken.equals(fetchPlaceRequest.getSessionToken())) { return false; } CancellationToken cancellationToken = this.zzd; if (cancellationToken == null) { if (fetchPlaceRequest.getCancellationToken() != null) { return false; } } else if (!cancellationToken.equals(fetchPlaceRequest.getCancellationToken())) { return false; } return true; } public final int hashCode() { int hashCode = this.zza.hashCode(); int hashCode2 = this.zzb.hashCode(); AutocompleteSessionToken autocompleteSessionToken = this.zzc; int hashCode3 = autocompleteSessionToken == null ? 0 : autocompleteSessionToken.hashCode(); CancellationToken cancellationToken = this.zzd; return ((((((hashCode ^ 1000003) * 1000003) ^ hashCode2) * 1000003) ^ hashCode3) * 1000003) ^ (cancellationToken != null ? cancellationToken.hashCode() : 0); } public final String toString() { String str = this.zza; String obj = this.zzb.toString(); String valueOf = String.valueOf(this.zzc); String valueOf2 = String.valueOf(this.zzd); StringBuilder sb = new StringBuilder("FetchPlaceRequest{placeId="); sb.append(str); sb.append(", placeFields="); sb.append(obj); sb.append(", sessionToken="); sb.append(valueOf); sb.append(", cancellationToken="); sb.append(valueOf2); sb.append(UrlTreeKt.componentParamSuffix); return sb.toString(); } @Override // com.google.android.libraries.places.api.net.FetchPlaceRequest public final AutocompleteSessionToken getSessionToken() { return this.zzc; } @Override // com.google.android.libraries.places.api.net.FetchPlaceRequest public final String getPlaceId() { return this.zza; } @Override // com.google.android.libraries.places.api.net.FetchPlaceRequest public final List getPlaceFields() { return this.zzb; } @Override // com.google.android.libraries.places.api.net.FetchPlaceRequest, com.google.android.libraries.places.internal.zzft public final CancellationToken getCancellationToken() { return this.zzd; } /* JADX INFO: Access modifiers changed from: package-private */ public /* synthetic */ zzg(String str, List list, AutocompleteSessionToken autocompleteSessionToken, CancellationToken cancellationToken, zzf zzfVar) { this.zza = str; this.zzb = list; this.zzc = autocompleteSessionToken; this.zzd = cancellationToken; } }