package com.google.android.gms.internal.ads; import android.os.RemoteException; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import com.google.android.gms.ads.MediaContent; import com.google.android.gms.ads.nativead.NativeAd; import com.google.android.gms.ads.nativead.NativeCustomFormatAd; import java.util.List; /* loaded from: classes3.dex */ public final class zzbss implements NativeCustomFormatAd { private final zzbgq zza; private NativeCustomFormatAd.DisplayOpenMeasurement zzb; @VisibleForTesting public zzbss(zzbgq zzbgqVar) { this.zza = zzbgqVar; } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd public final void destroy() { try { this.zza.zzl(); } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd @Nullable public final List getAvailableAssetNames() { try { return this.zza.zzk(); } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); return null; } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd @Nullable public final String getCustomFormatId() { try { return this.zza.zzi(); } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); return null; } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd public final NativeCustomFormatAd.DisplayOpenMeasurement getDisplayOpenMeasurement() { try { if (this.zzb == null && this.zza.zzq()) { this.zzb = new zzbsl(this.zza); } } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); } return this.zzb; } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd @Nullable public final NativeAd.Image getImage(String str) { try { zzbfw zzg = this.zza.zzg(str); if (zzg != null) { return new zzbsm(zzg); } return null; } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); return null; } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd @Nullable public final MediaContent getMediaContent() { try { if (this.zza.zzf() != null) { return new com.google.android.gms.ads.internal.client.zzfd(this.zza.zzf(), this.zza); } return null; } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); return null; } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd @Nullable public final CharSequence getText(String str) { try { return this.zza.zzj(str); } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); return null; } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd public final void performClick(String str) { try { this.zza.zzn(str); } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); } } @Override // com.google.android.gms.ads.nativead.NativeCustomFormatAd public final void recordImpression() { try { this.zza.zzo(); } catch (RemoteException e) { com.google.android.gms.ads.internal.util.client.zzo.zzh("", e); } } }