// 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.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
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.button.MaterialButton;
import com.google.android.material.card.MaterialCardView;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class BottomSheetAddProductBinding implements ViewBinding {
  @NonNull
  private final LinearLayout rootView;

  @NonNull
  public final MaterialButton btnSaveProduct;

  @NonNull
  public final MaterialCardView cvAddPhoto;

  @NonNull
  public final TextInputEditText etProductDesc;

  @NonNull
  public final TextInputEditText etProductName;

  @NonNull
  public final TextInputEditText etProductPrice;

  @NonNull
  public final ImageView ivPreview;

  @NonNull
  public final RadioButton rbDrink;

  @NonNull
  public final RadioButton rbFood;

  @NonNull
  public final RadioGroup rgType;

  private BottomSheetAddProductBinding(@NonNull LinearLayout rootView,
      @NonNull MaterialButton btnSaveProduct, @NonNull MaterialCardView cvAddPhoto,
      @NonNull TextInputEditText etProductDesc, @NonNull TextInputEditText etProductName,
      @NonNull TextInputEditText etProductPrice, @NonNull ImageView ivPreview,
      @NonNull RadioButton rbDrink, @NonNull RadioButton rbFood, @NonNull RadioGroup rgType) {
    this.rootView = rootView;
    this.btnSaveProduct = btnSaveProduct;
    this.cvAddPhoto = cvAddPhoto;
    this.etProductDesc = etProductDesc;
    this.etProductName = etProductName;
    this.etProductPrice = etProductPrice;
    this.ivPreview = ivPreview;
    this.rbDrink = rbDrink;
    this.rbFood = rbFood;
    this.rgType = rgType;
  }

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

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

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

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

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

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

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

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

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

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

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

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

      return new BottomSheetAddProductBinding((LinearLayout) rootView, btnSaveProduct, cvAddPhoto,
          etProductDesc, etProductName, etProductPrice, ivPreview, rbDrink, rbFood, rgType);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
