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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
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.orderly.R;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class ItemCartBinding implements ViewBinding {
  @NonNull
  private final MaterialCardView rootView;

  @NonNull
  public final ImageButton btnDecrease;

  @NonNull
  public final ImageButton btnIncrease;

  @NonNull
  public final MaterialCardView cvCartImage;

  @NonNull
  public final ImageView ivCartProduct;

  @NonNull
  public final TextView tvCartProductName;

  @NonNull
  public final TextView tvCartProductPrice;

  @NonNull
  public final TextView tvQuantity;

  private ItemCartBinding(@NonNull MaterialCardView rootView, @NonNull ImageButton btnDecrease,
      @NonNull ImageButton btnIncrease, @NonNull MaterialCardView cvCartImage,
      @NonNull ImageView ivCartProduct, @NonNull TextView tvCartProductName,
      @NonNull TextView tvCartProductPrice, @NonNull TextView tvQuantity) {
    this.rootView = rootView;
    this.btnDecrease = btnDecrease;
    this.btnIncrease = btnIncrease;
    this.cvCartImage = cvCartImage;
    this.ivCartProduct = ivCartProduct;
    this.tvCartProductName = tvCartProductName;
    this.tvCartProductPrice = tvCartProductPrice;
    this.tvQuantity = tvQuantity;
  }

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

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

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

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

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

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

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

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

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

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

      return new ItemCartBinding((MaterialCardView) rootView, btnDecrease, btnIncrease, cvCartImage,
          ivCartProduct, tvCartProductName, tvCartProductPrice, tvQuantity);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
