All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets.AutoValue_QuickValuesConfig Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version


package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets;

import java.util.Optional;
import javax.annotation.Generated;
import org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.TimeRange;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_QuickValuesConfig extends QuickValuesConfig {

  private final TimeRange timerange;

  private final String query;

  private final Optional streamId;

  private final String field;

  private final Boolean showDataTable;

  private final Boolean showPieChart;

  private final Optional limit;

  private final Optional dataTableLimit;

  private final Optional sortOrder;

  private final Optional stackedFields;

  AutoValue_QuickValuesConfig(
      TimeRange timerange,
      String query,
      Optional streamId,
      String field,
      Boolean showDataTable,
      Boolean showPieChart,
      Optional limit,
      Optional dataTableLimit,
      Optional sortOrder,
      Optional stackedFields) {
    if (timerange == null) {
      throw new NullPointerException("Null timerange");
    }
    this.timerange = timerange;
    if (query == null) {
      throw new NullPointerException("Null query");
    }
    this.query = query;
    if (streamId == null) {
      throw new NullPointerException("Null streamId");
    }
    this.streamId = streamId;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    if (showDataTable == null) {
      throw new NullPointerException("Null showDataTable");
    }
    this.showDataTable = showDataTable;
    if (showPieChart == null) {
      throw new NullPointerException("Null showPieChart");
    }
    this.showPieChart = showPieChart;
    if (limit == null) {
      throw new NullPointerException("Null limit");
    }
    this.limit = limit;
    if (dataTableLimit == null) {
      throw new NullPointerException("Null dataTableLimit");
    }
    this.dataTableLimit = dataTableLimit;
    if (sortOrder == null) {
      throw new NullPointerException("Null sortOrder");
    }
    this.sortOrder = sortOrder;
    if (stackedFields == null) {
      throw new NullPointerException("Null stackedFields");
    }
    this.stackedFields = stackedFields;
  }

  @Override
  public TimeRange timerange() {
    return timerange;
  }

  @Override
  public String query() {
    return query;
  }

  @Override
  public Optional streamId() {
    return streamId;
  }

  @Override
  public String field() {
    return field;
  }

  @Override
  public Boolean showDataTable() {
    return showDataTable;
  }

  @Override
  public Boolean showPieChart() {
    return showPieChart;
  }

  @Override
  public Optional limit() {
    return limit;
  }

  @Override
  public Optional dataTableLimit() {
    return dataTableLimit;
  }

  @Override
  public Optional sortOrder() {
    return sortOrder;
  }

  @Override
  public Optional stackedFields() {
    return stackedFields;
  }

  @Override
  public String toString() {
    return "QuickValuesConfig{"
         + "timerange=" + timerange + ", "
         + "query=" + query + ", "
         + "streamId=" + streamId + ", "
         + "field=" + field + ", "
         + "showDataTable=" + showDataTable + ", "
         + "showPieChart=" + showPieChart + ", "
         + "limit=" + limit + ", "
         + "dataTableLimit=" + dataTableLimit + ", "
         + "sortOrder=" + sortOrder + ", "
         + "stackedFields=" + stackedFields
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof QuickValuesConfig) {
      QuickValuesConfig that = (QuickValuesConfig) o;
      return (this.timerange.equals(that.timerange()))
           && (this.query.equals(that.query()))
           && (this.streamId.equals(that.streamId()))
           && (this.field.equals(that.field()))
           && (this.showDataTable.equals(that.showDataTable()))
           && (this.showPieChart.equals(that.showPieChart()))
           && (this.limit.equals(that.limit()))
           && (this.dataTableLimit.equals(that.dataTableLimit()))
           && (this.sortOrder.equals(that.sortOrder()))
           && (this.stackedFields.equals(that.stackedFields()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= timerange.hashCode();
    h$ *= 1000003;
    h$ ^= query.hashCode();
    h$ *= 1000003;
    h$ ^= streamId.hashCode();
    h$ *= 1000003;
    h$ ^= field.hashCode();
    h$ *= 1000003;
    h$ ^= showDataTable.hashCode();
    h$ *= 1000003;
    h$ ^= showPieChart.hashCode();
    h$ *= 1000003;
    h$ ^= limit.hashCode();
    h$ *= 1000003;
    h$ ^= dataTableLimit.hashCode();
    h$ *= 1000003;
    h$ ^= sortOrder.hashCode();
    h$ *= 1000003;
    h$ ^= stackedFields.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy