org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.savedsearch.AutoValue_AbsoluteTimeRangeQuery Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.savedsearch;
import java.util.Optional;
import javax.annotation.processing.Generated;
import org.joda.time.DateTime;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AbsoluteTimeRangeQuery extends AbsoluteTimeRangeQuery {
private final String rangeType;
private final Optional fields;
private final String query;
private final Optional streamId;
private final DateTime from;
private final DateTime to;
AutoValue_AbsoluteTimeRangeQuery(
String rangeType,
Optional fields,
String query,
Optional streamId,
DateTime from,
DateTime to) {
if (rangeType == null) {
throw new NullPointerException("Null rangeType");
}
this.rangeType = rangeType;
if (fields == null) {
throw new NullPointerException("Null fields");
}
this.fields = fields;
if (query == null) {
throw new NullPointerException("Null query");
}
this.query = query;
if (streamId == null) {
throw new NullPointerException("Null streamId");
}
this.streamId = streamId;
if (from == null) {
throw new NullPointerException("Null from");
}
this.from = from;
if (to == null) {
throw new NullPointerException("Null to");
}
this.to = to;
}
@Override
String rangeType() {
return rangeType;
}
@Override
Optional fields() {
return fields;
}
@Override
public String query() {
return query;
}
@Override
public Optional streamId() {
return streamId;
}
@Override
public DateTime from() {
return from;
}
@Override
public DateTime to() {
return to;
}
@Override
public String toString() {
return "AbsoluteTimeRangeQuery{"
+ "rangeType=" + rangeType + ", "
+ "fields=" + fields + ", "
+ "query=" + query + ", "
+ "streamId=" + streamId + ", "
+ "from=" + from + ", "
+ "to=" + to
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AbsoluteTimeRangeQuery) {
AbsoluteTimeRangeQuery that = (AbsoluteTimeRangeQuery) o;
return this.rangeType.equals(that.rangeType())
&& this.fields.equals(that.fields())
&& this.query.equals(that.query())
&& this.streamId.equals(that.streamId())
&& this.from.equals(that.from())
&& this.to.equals(that.to());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= rangeType.hashCode();
h$ *= 1000003;
h$ ^= fields.hashCode();
h$ *= 1000003;
h$ ^= query.hashCode();
h$ *= 1000003;
h$ ^= streamId.hashCode();
h$ *= 1000003;
h$ ^= from.hashCode();
h$ *= 1000003;
h$ ^= to.hashCode();
return h$;
}
}