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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
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 androidx.viewpager2.widget.ViewPager2;
import com.erwan.revwatch.R;
import com.erwan.revwatch.ui.NestedScrollableHost;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class PageGaugesBinding implements ViewBinding {
  @NonNull
  private final FrameLayout rootView;

  @NonNull
  public final ImageView deletePageBtn;

  @NonNull
  public final ImageView doneEditBtn;

  @NonNull
  public final View editOverlay;

  @NonNull
  public final FrameLayout editToolbar;

  @NonNull
  public final ImageView emptyAddButton;

  @NonNull
  public final LinearLayout emptyState;

  @NonNull
  public final NestedScrollableHost gaugeHost;

  @NonNull
  public final ViewPager2 gaugePager;

  @NonNull
  public final TextView layoutSelector;

  private PageGaugesBinding(@NonNull FrameLayout rootView, @NonNull ImageView deletePageBtn,
      @NonNull ImageView doneEditBtn, @NonNull View editOverlay, @NonNull FrameLayout editToolbar,
      @NonNull ImageView emptyAddButton, @NonNull LinearLayout emptyState,
      @NonNull NestedScrollableHost gaugeHost, @NonNull ViewPager2 gaugePager,
      @NonNull TextView layoutSelector) {
    this.rootView = rootView;
    this.deletePageBtn = deletePageBtn;
    this.doneEditBtn = doneEditBtn;
    this.editOverlay = editOverlay;
    this.editToolbar = editToolbar;
    this.emptyAddButton = emptyAddButton;
    this.emptyState = emptyState;
    this.gaugeHost = gaugeHost;
    this.gaugePager = gaugePager;
    this.layoutSelector = layoutSelector;
  }

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

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

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

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

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

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

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

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

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

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

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

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

      return new PageGaugesBinding((FrameLayout) rootView, deletePageBtn, doneEditBtn, editOverlay,
          editToolbar, emptyAddButton, emptyState, gaugeHost, gaugePager, layoutSelector);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
