org.graylog.plugins.views.search.AutoValue_GlobalOverride Maven / Gradle / Ivy
package org.graylog.plugins.views.search;
import java.util.Optional;
import javax.annotation.processing.Generated;
import org.graylog.plugins.views.search.engine.BackendQuery;
import org.graylog2.plugin.indexer.searches.timeranges.TimeRange;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GlobalOverride extends GlobalOverride {
private final Optional timerange;
private final Optional query;
private AutoValue_GlobalOverride(
Optional timerange,
Optional query) {
this.timerange = timerange;
this.query = query;
}
@Override
public Optional timerange() {
return timerange;
}
@Override
public Optional query() {
return query;
}
@Override
public String toString() {
return "GlobalOverride{"
+ "timerange=" + timerange + ", "
+ "query=" + query
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GlobalOverride) {
GlobalOverride that = (GlobalOverride) o;
return this.timerange.equals(that.timerange())
&& this.query.equals(that.query());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= timerange.hashCode();
h$ *= 1000003;
h$ ^= query.hashCode();
return h$;
}
@Override
public GlobalOverride.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends GlobalOverride.Builder {
private Optional timerange = Optional.empty();
private Optional query = Optional.empty();
Builder() {
}
private Builder(GlobalOverride source) {
this.timerange = source.timerange();
this.query = source.query();
}
@Override
public GlobalOverride.Builder timerange(TimeRange timerange) {
this.timerange = Optional.of(timerange);
return this;
}
@Override
public GlobalOverride.Builder query(BackendQuery query) {
this.query = Optional.of(query);
return this;
}
@Override
public GlobalOverride build() {
return new AutoValue_GlobalOverride(
this.timerange,
this.query);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy