// Generated by view binder compiler. Do not edit!
package com.jordanbot.autoride.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ScrollView;
import android.widget.Switch;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.jordanbot.autoride.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class ActivitySettingsBinding implements ViewBinding {
  @NonNull
  private final ScrollView rootView;

  @NonNull
  public final Button btnSaveSettings;

  @NonNull
  public final CheckBox cbCareem;

  @NonNull
  public final CheckBox cbJeeny;

  @NonNull
  public final CheckBox cbUber;

  @NonNull
  public final EditText etMaxMinutes;

  @NonNull
  public final EditText etMinPrice;

  @NonNull
  public final Switch switchAutoAccept;

  @NonNull
  public final Switch switchDarkMode;

  private ActivitySettingsBinding(@NonNull ScrollView rootView, @NonNull Button btnSaveSettings,
      @NonNull CheckBox cbCareem, @NonNull CheckBox cbJeeny, @NonNull CheckBox cbUber,
      @NonNull EditText etMaxMinutes, @NonNull EditText etMinPrice,
      @NonNull Switch switchAutoAccept, @NonNull Switch switchDarkMode) {
    this.rootView = rootView;
    this.btnSaveSettings = btnSaveSettings;
    this.cbCareem = cbCareem;
    this.cbJeeny = cbJeeny;
    this.cbUber = cbUber;
    this.etMaxMinutes = etMaxMinutes;
    this.etMinPrice = etMinPrice;
    this.switchAutoAccept = switchAutoAccept;
    this.switchDarkMode = switchDarkMode;
  }

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

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

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

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

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

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

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

      id = R.id.et_max_minutes;
      EditText etMaxMinutes = ViewBindings.findChildViewById(rootView, id);
      if (etMaxMinutes == null) {
        break missingId;
      }

      id = R.id.et_min_price;
      EditText etMinPrice = ViewBindings.findChildViewById(rootView, id);
      if (etMinPrice == null) {
        break missingId;
      }

      id = R.id.switch_auto_accept;
      Switch switchAutoAccept = ViewBindings.findChildViewById(rootView, id);
      if (switchAutoAccept == null) {
        break missingId;
      }

      id = R.id.switch_dark_mode;
      Switch switchDarkMode = ViewBindings.findChildViewById(rootView, id);
      if (switchDarkMode == null) {
        break missingId;
      }

      return new ActivitySettingsBinding((ScrollView) rootView, btnSaveSettings, cbCareem, cbJeeny,
          cbUber, etMaxMinutes, etMinPrice, switchAutoAccept, switchDarkMode);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
