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

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

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets;

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

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

  private final TimeRange timerange;

  private final String query;

  private final Optional streamId;

  private final String field;

  private final Integer limit;

  private final String sortOrder;

  private final String stackedFields;

  private final Optional interval;

  AutoValue_QuickValuesHistogramConfig(
      TimeRange timerange,
      String query,
      Optional streamId,
      String field,
      Integer limit,
      String sortOrder,
      String stackedFields,
      Optional interval) {
    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 (limit == null) {
      throw new NullPointerException("Null limit");
    }
    this.limit = limit;
    if (sortOrder == null) {
      throw new NullPointerException("Null sortOrder");
    }
    this.sortOrder = sortOrder;
    if (stackedFields == null) {
      throw new NullPointerException("Null stackedFields");
    }
    this.stackedFields = stackedFields;
    if (interval == null) {
      throw new NullPointerException("Null interval");
    }
    this.interval = interval;
  }

  @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 Integer limit() {
    return limit;
  }

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

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

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

  @Override
  public String toString() {
    return "QuickValuesHistogramConfig{"
        + "timerange=" + timerange + ", "
        + "query=" + query + ", "
        + "streamId=" + streamId + ", "
        + "field=" + field + ", "
        + "limit=" + limit + ", "
        + "sortOrder=" + sortOrder + ", "
        + "stackedFields=" + stackedFields + ", "
        + "interval=" + interval
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof QuickValuesHistogramConfig) {
      QuickValuesHistogramConfig that = (QuickValuesHistogramConfig) o;
      return this.timerange.equals(that.timerange())
          && this.query.equals(that.query())
          && this.streamId.equals(that.streamId())
          && this.field.equals(that.field())
          && this.limit.equals(that.limit())
          && this.sortOrder.equals(that.sortOrder())
          && this.stackedFields.equals(that.stackedFields())
          && this.interval.equals(that.interval());
    }
    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$ ^= limit.hashCode();
    h$ *= 1000003;
    h$ ^= sortOrder.hashCode();
    h$ *= 1000003;
    h$ ^= stackedFields.hashCode();
    h$ *= 1000003;
    h$ ^= interval.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy