// Generated by view binder compiler. Do not edit!
package com.ElyStudio.leGaou.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.ElyStudio.leGaou.R;
import com.google.android.gms.ads.nativead.NativeAdView;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class MediumNativeAdLayoutBinding implements ViewBinding {
  @NonNull
  private final NativeAdView rootView;

  @NonNull
  public final TextView adAdvertiserMedium;

  @NonNull
  public final TextView adBodyMedium;

  @NonNull
  public final TextView adHeadlineMedium;

  @NonNull
  public final ImageView adIconMedium;

  @NonNull
  public final MaterialCardView adIconsCardMedium;

  @NonNull
  public final TextView adTag;

  @NonNull
  public final Button callToActionButtonMedium;

  private MediumNativeAdLayoutBinding(@NonNull NativeAdView rootView,
      @NonNull TextView adAdvertiserMedium, @NonNull TextView adBodyMedium,
      @NonNull TextView adHeadlineMedium, @NonNull ImageView adIconMedium,
      @NonNull MaterialCardView adIconsCardMedium, @NonNull TextView adTag,
      @NonNull Button callToActionButtonMedium) {
    this.rootView = rootView;
    this.adAdvertiserMedium = adAdvertiserMedium;
    this.adBodyMedium = adBodyMedium;
    this.adHeadlineMedium = adHeadlineMedium;
    this.adIconMedium = adIconMedium;
    this.adIconsCardMedium = adIconsCardMedium;
    this.adTag = adTag;
    this.callToActionButtonMedium = callToActionButtonMedium;
  }

  @Override
  @NonNull
  public NativeAdView getRoot() {
    return rootView;
  }

  @NonNull
  public static MediumNativeAdLayoutBinding inflate(@NonNull LayoutInflater inflater) {
    return inflate(inflater, null, false);
  }

  @NonNull
  public static MediumNativeAdLayoutBinding inflate(@NonNull LayoutInflater inflater,
      @Nullable ViewGroup parent, boolean attachToParent) {
    View root = inflater.inflate(R.layout.medium_native_ad_layout, parent, false);
    if (attachToParent) {
      parent.addView(root);
    }
    return bind(root);
  }

  @NonNull
  public static MediumNativeAdLayoutBinding bind(@NonNull View rootView) {
    // The body of this method is generated in a way you would not otherwise write.
    // This is done to optimize the compiled bytecode for size and performance.
    int id;
    missingId: {
      id = R.id.adAdvertiserMedium;
      TextView adAdvertiserMedium = ViewBindings.findChildViewById(rootView, id);
      if (adAdvertiserMedium == null) {
        break missingId;
      }

      id = R.id.adBodyMedium;
      TextView adBodyMedium = ViewBindings.findChildViewById(rootView, id);
      if (adBodyMedium == null) {
        break missingId;
      }

      id = R.id.adHeadlineMedium;
      TextView adHeadlineMedium = ViewBindings.findChildViewById(rootView, id);
      if (adHeadlineMedium == null) {
        break missingId;
      }

      id = R.id.adIconMedium;
      ImageView adIconMedium = ViewBindings.findChildViewById(rootView, id);
      if (adIconMedium == null) {
        break missingId;
      }

      id = R.id.adIconsCardMedium;
      MaterialCardView adIconsCardMedium = ViewBindings.findChildViewById(rootView, id);
      if (adIconsCardMedium == null) {
        break missingId;
      }

      id = R.id.adTag;
      TextView adTag = ViewBindings.findChildViewById(rootView, id);
      if (adTag == null) {
        break missingId;
      }

      id = R.id.callToActionButtonMedium;
      Button callToActionButtonMedium = ViewBindings.findChildViewById(rootView, id);
      if (callToActionButtonMedium == null) {
        break missingId;
      }

      return new MediumNativeAdLayoutBinding((NativeAdView) rootView, adAdvertiserMedium,
          adBodyMedium, adHeadlineMedium, adIconMedium, adIconsCardMedium, adTag,
          callToActionButtonMedium);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
