// Generated by view binder compiler. Do not edit!
package com.example.wadi.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridLayout;
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.example.wadi.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class RowItemBinding implements ViewBinding {
  @NonNull
  private final GridLayout rootView;

  @NonNull
  public final ImageView imageViewFlag;

  @NonNull
  public final TextView textViewCapital;

  @NonNull
  public final TextView textViewCountry;

  private RowItemBinding(@NonNull GridLayout rootView, @NonNull ImageView imageViewFlag,
      @NonNull TextView textViewCapital, @NonNull TextView textViewCountry) {
    this.rootView = rootView;
    this.imageViewFlag = imageViewFlag;
    this.textViewCapital = textViewCapital;
    this.textViewCountry = textViewCountry;
  }

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

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

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

  @NonNull
  public static RowItemBinding 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.imageViewFlag;
      ImageView imageViewFlag = ViewBindings.findChildViewById(rootView, id);
      if (imageViewFlag == null) {
        break missingId;
      }

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

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

      return new RowItemBinding((GridLayout) rootView, imageViewFlag, textViewCapital,
          textViewCountry);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
