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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ScrollView;
import android.widget.Spinner;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.obdwidgets.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

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

  @NonNull
  public final Button buttonSave;

  @NonNull
  public final EditText editCustomLabel;

  @NonNull
  public final EditText editFontSize;

  @NonNull
  public final EditText editLabelColor;

  @NonNull
  public final EditText editMaxValue;

  @NonNull
  public final EditText editMinValue;

  @NonNull
  public final EditText editNeedleColor;

  @NonNull
  public final EditText editScaleColor;

  @NonNull
  public final EditText editValueColor;

  @NonNull
  public final Spinner spinnerParameter;

  @NonNull
  public final Spinner spinnerWidgetType;

  @NonNull
  public final TextView textUnit;

  private ActivityWidgetConfigBinding(@NonNull ScrollView rootView, @NonNull Button buttonSave,
      @NonNull EditText editCustomLabel, @NonNull EditText editFontSize,
      @NonNull EditText editLabelColor, @NonNull EditText editMaxValue,
      @NonNull EditText editMinValue, @NonNull EditText editNeedleColor,
      @NonNull EditText editScaleColor, @NonNull EditText editValueColor,
      @NonNull Spinner spinnerParameter, @NonNull Spinner spinnerWidgetType,
      @NonNull TextView textUnit) {
    this.rootView = rootView;
    this.buttonSave = buttonSave;
    this.editCustomLabel = editCustomLabel;
    this.editFontSize = editFontSize;
    this.editLabelColor = editLabelColor;
    this.editMaxValue = editMaxValue;
    this.editMinValue = editMinValue;
    this.editNeedleColor = editNeedleColor;
    this.editScaleColor = editScaleColor;
    this.editValueColor = editValueColor;
    this.spinnerParameter = spinnerParameter;
    this.spinnerWidgetType = spinnerWidgetType;
    this.textUnit = textUnit;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      return new ActivityWidgetConfigBinding((ScrollView) rootView, buttonSave, editCustomLabel,
          editFontSize, editLabelColor, editMaxValue, editMinValue, editNeedleColor, editScaleColor,
          editValueColor, spinnerParameter, spinnerWidgetType, textUnit);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
