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

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets.AutoValue_TimeHistogramConfig Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final Interval interval;

  private AutoValue_TimeHistogramConfig(
      Interval interval) {
    this.interval = interval;
  }

  @JsonProperty("interval")
  @Override
  public Interval interval() {
    return interval;
  }

  @Override
  public String toString() {
    return "TimeHistogramConfig{"
        + "interval=" + interval
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TimeHistogramConfig) {
      TimeHistogramConfig that = (TimeHistogramConfig) o;
      return this.interval.equals(that.interval());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= interval.hashCode();
    return h$;
  }

  static final class Builder extends TimeHistogramConfig.Builder {
    private Interval interval;
    Builder() {
    }
    @Override
    public TimeHistogramConfig.Builder interval(Interval interval) {
      if (interval == null) {
        throw new NullPointerException("Null interval");
      }
      this.interval = interval;
      return this;
    }
    @Override
    public TimeHistogramConfig build() {
      String missing = "";
      if (this.interval == null) {
        missing += " interval";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_TimeHistogramConfig(
          this.interval);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy