// Generated by view binder compiler. Do not edit!
package com.android.samples.donuttracker.coffee.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewbinding.ViewBinding;
import com.android.samples.donuttracker.coffee.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class CoffeeItemBinding implements ViewBinding {
  @NonNull
  private final ConstraintLayout rootView;

  @NonNull
  public final ImageView deleteButton;

  @NonNull
  public final TextView description;

  @NonNull
  public final TextView name;

  @NonNull
  public final TextView rating;

  @NonNull
  public final ImageView thumbnail;

  private CoffeeItemBinding(@NonNull ConstraintLayout rootView, @NonNull ImageView deleteButton,
      @NonNull TextView description, @NonNull TextView name, @NonNull TextView rating,
      @NonNull ImageView thumbnail) {
    this.rootView = rootView;
    this.deleteButton = deleteButton;
    this.description = description;
    this.name = name;
    this.rating = rating;
    this.thumbnail = thumbnail;
  }

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

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

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

  @NonNull
  public static CoffeeItemBinding 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.deleteButton;
      ImageView deleteButton = rootView.findViewById(id);
      if (deleteButton == null) {
        break missingId;
      }

      id = R.id.description;
      TextView description = rootView.findViewById(id);
      if (description == null) {
        break missingId;
      }

      id = R.id.name;
      TextView name = rootView.findViewById(id);
      if (name == null) {
        break missingId;
      }

      id = R.id.rating;
      TextView rating = rootView.findViewById(id);
      if (rating == null) {
        break missingId;
      }

      id = R.id.thumbnail;
      ImageView thumbnail = rootView.findViewById(id);
      if (thumbnail == null) {
        break missingId;
      }

      return new CoffeeItemBinding((ConstraintLayout) rootView, deleteButton, description, name,
          rating, thumbnail);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
