org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets.AutoValue_WorldMapConfig 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_WorldMapConfig extends WorldMapConfig {
private final TimeRange timerange;
private final String query;
private final String field;
private final Optional streamId;
AutoValue_WorldMapConfig(
TimeRange timerange,
String query,
String field,
Optional streamId) {
if (timerange == null) {
throw new NullPointerException("Null timerange");
}
this.timerange = timerange;
if (query == null) {
throw new NullPointerException("Null query");
}
this.query = query;
if (field == null) {
throw new NullPointerException("Null field");
}
this.field = field;
if (streamId == null) {
throw new NullPointerException("Null streamId");
}
this.streamId = streamId;
}
@Override
public TimeRange timerange() {
return timerange;
}
@Override
public String query() {
return query;
}
@Override
public String field() {
return field;
}
@Override
public Optional streamId() {
return streamId;
}
@Override
public String toString() {
return "WorldMapConfig{"
+ "timerange=" + timerange + ", "
+ "query=" + query + ", "
+ "field=" + field + ", "
+ "streamId=" + streamId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof WorldMapConfig) {
WorldMapConfig that = (WorldMapConfig) o;
return this.timerange.equals(that.timerange())
&& this.query.equals(that.query())
&& this.field.equals(that.field())
&& this.streamId.equals(that.streamId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= timerange.hashCode();
h$ *= 1000003;
h$ ^= query.hashCode();
h$ *= 1000003;
h$ ^= field.hashCode();
h$ *= 1000003;
h$ ^= streamId.hashCode();
return h$;
}
}