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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

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

  @NonNull
  public final CheckBox checkboxInhalatory;

  @NonNull
  public final CheckBox checkboxOral;

  @NonNull
  public final CheckBox checkboxTopical;

  @NonNull
  public final TextInputEditText editMedName;

  @NonNull
  public final TextInputEditText editMedNotes;

  @NonNull
  public final TextView textMedTime;

  private DialogAddMedicationBinding(@NonNull LinearLayout rootView,
      @NonNull CheckBox checkboxInhalatory, @NonNull CheckBox checkboxOral,
      @NonNull CheckBox checkboxTopical, @NonNull TextInputEditText editMedName,
      @NonNull TextInputEditText editMedNotes, @NonNull TextView textMedTime) {
    this.rootView = rootView;
    this.checkboxInhalatory = checkboxInhalatory;
    this.checkboxOral = checkboxOral;
    this.checkboxTopical = checkboxTopical;
    this.editMedName = editMedName;
    this.editMedNotes = editMedNotes;
    this.textMedTime = textMedTime;
  }

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

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

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

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

      id = R.id.checkbox_oral;
      CheckBox checkboxOral = ViewBindings.findChildViewById(rootView, id);
      if (checkboxOral == null) {
        break missingId;
      }

      id = R.id.checkbox_topical;
      CheckBox checkboxTopical = ViewBindings.findChildViewById(rootView, id);
      if (checkboxTopical == null) {
        break missingId;
      }

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

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

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

      return new DialogAddMedicationBinding((LinearLayout) rootView, checkboxInhalatory,
          checkboxOral, checkboxTopical, editMedName, editMedNotes, textMedTime);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
