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

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets.AutoValue_FieldChartConfig 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.Generated;
import org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.TimeRange;

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

  private final TimeRange timerange;

  private final String query;

  private final Optional streamId;

  private final String valuetype;

  private final String renderer;

  private final String interpolation;

  private final String field;

  private final String interval;

  AutoValue_FieldChartConfig(
      TimeRange timerange,
      String query,
      Optional streamId,
      String valuetype,
      String renderer,
      String interpolation,
      String field,
      String 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 (valuetype == null) {
      throw new NullPointerException("Null valuetype");
    }
    this.valuetype = valuetype;
    if (renderer == null) {
      throw new NullPointerException("Null renderer");
    }
    this.renderer = renderer;
    if (interpolation == null) {
      throw new NullPointerException("Null interpolation");
    }
    this.interpolation = interpolation;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    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 valuetype() {
    return valuetype;
  }

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

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

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

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

  @Override
  public String toString() {
    return "FieldChartConfig{"
        + "timerange=" + timerange + ", "
        + "query=" + query + ", "
        + "streamId=" + streamId + ", "
        + "valuetype=" + valuetype + ", "
        + "renderer=" + renderer + ", "
        + "interpolation=" + interpolation + ", "
        + "field=" + field + ", "
        + "interval=" + interval
        + "}";
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy