73 lines
2.6 KiB
Java
73 lines
2.6 KiB
Java
|
package com.google.android.libraries.places.api.net;
|
||
|
|
||
|
import com.google.android.gms.tasks.CancellationToken;
|
||
|
import com.google.android.libraries.places.api.model.AutocompleteSessionToken;
|
||
|
import com.google.android.libraries.places.api.net.FetchPlaceRequest;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zze extends FetchPlaceRequest.Builder {
|
||
|
private String zza;
|
||
|
private List zzb;
|
||
|
private AutocompleteSessionToken zzc;
|
||
|
private CancellationToken zzd;
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.net.FetchPlaceRequest.Builder
|
||
|
final FetchPlaceRequest.Builder zza(List list) {
|
||
|
if (list == null) {
|
||
|
throw new NullPointerException("Null placeFields");
|
||
|
}
|
||
|
this.zzb = list;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final FetchPlaceRequest.Builder zzb(String str) {
|
||
|
if (str == null) {
|
||
|
throw new NullPointerException("Null placeId");
|
||
|
}
|
||
|
this.zza = str;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.net.FetchPlaceRequest.Builder
|
||
|
final FetchPlaceRequest zzc() {
|
||
|
List list;
|
||
|
String str = this.zza;
|
||
|
if (str == null || (list = this.zzb) == null) {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
if (this.zza == null) {
|
||
|
sb.append(" placeId");
|
||
|
}
|
||
|
if (this.zzb == null) {
|
||
|
sb.append(" placeFields");
|
||
|
}
|
||
|
throw new IllegalStateException("Missing required properties:".concat(sb.toString()));
|
||
|
}
|
||
|
return new zzg(str, list, this.zzc, this.zzd, null);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.net.FetchPlaceRequest.Builder
|
||
|
public final FetchPlaceRequest.Builder setSessionToken(AutocompleteSessionToken autocompleteSessionToken) {
|
||
|
this.zzc = autocompleteSessionToken;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.net.FetchPlaceRequest.Builder
|
||
|
public final FetchPlaceRequest.Builder setCancellationToken(CancellationToken cancellationToken) {
|
||
|
this.zzd = cancellationToken;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.net.FetchPlaceRequest.Builder
|
||
|
public final AutocompleteSessionToken getSessionToken() {
|
||
|
return this.zzc;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.libraries.places.api.net.FetchPlaceRequest.Builder
|
||
|
public final CancellationToken getCancellationToken() {
|
||
|
return this.zzd;
|
||
|
}
|
||
|
}
|