org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AutoValue_Query Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;
import javax.annotation.Nonnull;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Query extends Query {
private final String id;
private final TimeRange timerange;
private final ElasticsearchQueryString query;
private final Set searchTypes;
AutoValue_Query(
String id,
TimeRange timerange,
ElasticsearchQueryString query,
Set searchTypes) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (timerange == null) {
throw new NullPointerException("Null timerange");
}
this.timerange = timerange;
if (query == null) {
throw new NullPointerException("Null query");
}
this.query = query;
if (searchTypes == null) {
throw new NullPointerException("Null searchTypes");
}
this.searchTypes = searchTypes;
}
@JsonProperty
@Override
public String id() {
return id;
}
@JsonProperty
@Override
public TimeRange timerange() {
return timerange;
}
@Nonnull
@JsonProperty
@Override
public ElasticsearchQueryString query() {
return query;
}
@Nonnull
@JsonProperty("search_types")
@Override
public Set searchTypes() {
return searchTypes;
}
@Override
public String toString() {
return "Query{"
+ "id=" + id + ", "
+ "timerange=" + timerange + ", "
+ "query=" + query + ", "
+ "searchTypes=" + searchTypes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Query) {
Query that = (Query) o;
return this.id.equals(that.id())
&& this.timerange.equals(that.timerange())
&& this.query.equals(that.query())
&& this.searchTypes.equals(that.searchTypes());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= timerange.hashCode();
h$ *= 1000003;
h$ ^= query.hashCode();
h$ *= 1000003;
h$ ^= searchTypes.hashCode();
return h$;
}
}