org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets.AutoValue_SearchResultChartConfig Maven / Gradle / Ivy
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_SearchResultChartConfig extends SearchResultChartConfig {
private final TimeRange timerange;
private final String query;
private final Optional streamId;
private final String interval;
AutoValue_SearchResultChartConfig(
TimeRange timerange,
String query,
Optional streamId,
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 (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 interval() {
return interval;
}
@Override
public String toString() {
return "SearchResultChartConfig{"
+ "timerange=" + timerange + ", "
+ "query=" + query + ", "
+ "streamId=" + streamId + ", "
+ "interval=" + interval
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchResultChartConfig) {
SearchResultChartConfig that = (SearchResultChartConfig) o;
return this.timerange.equals(that.timerange())
&& this.query.equals(that.query())
&& this.streamId.equals(that.streamId())
&& 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$ ^= interval.hashCode();
return h$;
}
}