what-the-bank/sources/com/google/android/libraries/places/api/model/PhotoMetadata.java

54 lines
1.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.api.model;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.android.libraries.places.internal.zzig;
/* loaded from: classes2.dex */
public abstract class PhotoMetadata implements Parcelable {
/* loaded from: classes2.dex */
public static abstract class Builder {
public PhotoMetadata build() {
PhotoMetadata zzb = zzb();
int width = zzb.getWidth();
zzig.zzj(width >= 0, "Width must not be < 0, but was: %s.", width);
int height = zzb.getHeight();
zzig.zzj(height >= 0, "Height must not be < 0, but was: %s.", height);
zzig.zzi(!TextUtils.isEmpty(zzb.zza()), "PhotoReference must not be null or empty.");
return zzb;
}
public abstract String getAttributions();
public abstract int getHeight();
public abstract int getWidth();
public abstract Builder setAttributions(String str);
public abstract Builder setHeight(int i);
public abstract Builder setWidth(int i);
abstract PhotoMetadata zzb();
}
public static Builder builder(String str) {
zzo zzoVar = new zzo();
zzoVar.zza(str);
zzoVar.setWidth(0);
zzoVar.setHeight(0);
zzoVar.setAttributions("");
return zzoVar;
}
public abstract String getAttributions();
public abstract int getHeight();
public abstract int getWidth();
public abstract String zza();
}