// 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.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.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

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

  @NonNull
  public final CheckBox checkboxTaken;

  @NonNull
  public final TextView textMedDosage;

  @NonNull
  public final TextView textMedName;

  @NonNull
  public final TextView textMedNotes;

  @NonNull
  public final TextView textMedTime;

  private ItemMedicationBinding(@NonNull MaterialCardView rootView, @NonNull CheckBox checkboxTaken,
      @NonNull TextView textMedDosage, @NonNull TextView textMedName,
      @NonNull TextView textMedNotes, @NonNull TextView textMedTime) {
    this.rootView = rootView;
    this.checkboxTaken = checkboxTaken;
    this.textMedDosage = textMedDosage;
    this.textMedName = textMedName;
    this.textMedNotes = textMedNotes;
    this.textMedTime = textMedTime;
  }

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

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

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

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

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

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

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

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

      return new ItemMedicationBinding((MaterialCardView) rootView, checkboxTaken, textMedDosage,
          textMedName, textMedNotes, textMedTime);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
