74 lines
2.6 KiB
Java
74 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.PhotoMetadata;
|
|
import com.google.android.libraries.places.api.net.FetchPhotoRequest;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zza extends FetchPhotoRequest.Builder {
|
|
private Integer zza;
|
|
private Integer zzb;
|
|
private PhotoMetadata zzc;
|
|
private CancellationToken zzd;
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
final PhotoMetadata zza() {
|
|
PhotoMetadata photoMetadata = this.zzc;
|
|
if (photoMetadata != null) {
|
|
return photoMetadata;
|
|
}
|
|
throw new IllegalStateException("Property \"photoMetadata\" has not been set");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final FetchPhotoRequest.Builder zzb(PhotoMetadata photoMetadata) {
|
|
if (photoMetadata == null) {
|
|
throw new NullPointerException("Null photoMetadata");
|
|
}
|
|
this.zzc = photoMetadata;
|
|
return this;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
final FetchPhotoRequest zzc() {
|
|
PhotoMetadata photoMetadata = this.zzc;
|
|
if (photoMetadata != null) {
|
|
return new zzc(this.zza, this.zzb, photoMetadata, this.zzd, null);
|
|
}
|
|
throw new IllegalStateException("Missing required properties: photoMetadata");
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
public final FetchPhotoRequest.Builder setMaxWidth(Integer num) {
|
|
this.zza = num;
|
|
return this;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
public final FetchPhotoRequest.Builder setMaxHeight(Integer num) {
|
|
this.zzb = num;
|
|
return this;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
public final FetchPhotoRequest.Builder setCancellationToken(CancellationToken cancellationToken) {
|
|
this.zzd = cancellationToken;
|
|
return this;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
public final Integer getMaxWidth() {
|
|
return this.zza;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
public final Integer getMaxHeight() {
|
|
return this.zzb;
|
|
}
|
|
|
|
@Override // com.google.android.libraries.places.api.net.FetchPhotoRequest.Builder
|
|
public final CancellationToken getCancellationToken() {
|
|
return this.zzd;
|
|
}
|
|
}
|