// Generated by view binder compiler. Do not edit!
package com.mtc.goldenVendor.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.SwitchCompat;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewbinding.ViewBinding;
import com.mtc.goldenVendor.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

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

  @NonNull
  public final LinearLayout lin;

  @NonNull
  public final LinearLayout lin2;

  @NonNull
  public final ImageView productImg;

  @NonNull
  public final SwitchCompat swStatus;

  @NonNull
  public final TextView tvAmount;

  @NonNull
  public final TextView tvCategory;

  @NonNull
  public final TextView tvCurrency;

  @NonNull
  public final TextView tvPercent;

  @NonNull
  public final TextView tvPrice;

  @NonNull
  public final TextView tvProductName;

  private ProductItemBinding(@NonNull ConstraintLayout rootView, @NonNull LinearLayout lin,
      @NonNull LinearLayout lin2, @NonNull ImageView productImg, @NonNull SwitchCompat swStatus,
      @NonNull TextView tvAmount, @NonNull TextView tvCategory, @NonNull TextView tvCurrency,
      @NonNull TextView tvPercent, @NonNull TextView tvPrice, @NonNull TextView tvProductName) {
    this.rootView = rootView;
    this.lin = lin;
    this.lin2 = lin2;
    this.productImg = productImg;
    this.swStatus = swStatus;
    this.tvAmount = tvAmount;
    this.tvCategory = tvCategory;
    this.tvCurrency = tvCurrency;
    this.tvPercent = tvPercent;
    this.tvPrice = tvPrice;
    this.tvProductName = tvProductName;
  }

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

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

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

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

      id = R.id.lin2;
      LinearLayout lin2 = rootView.findViewById(id);
      if (lin2 == null) {
        break missingId;
      }

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

      id = R.id.sw_status;
      SwitchCompat swStatus = rootView.findViewById(id);
      if (swStatus == null) {
        break missingId;
      }

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

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

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

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

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

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

      return new ProductItemBinding((ConstraintLayout) rootView, lin, lin2, productImg, swStatus,
          tvAmount, tvCategory, tvCurrency, tvPercent, tvPrice, tvProductName);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
