org.graylog2.rest.models.search.responses.$AutoValue_TermsResult Maven / Gradle / Ivy
package org.graylog2.rest.models.search.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_TermsResult extends TermsResult {
private final long time;
private final Map terms;
private final Map>> termsMapping;
private final long missing;
private final long other;
private final long total;
private final String builtQuery;
$AutoValue_TermsResult(
long time,
Map terms,
Map>> termsMapping,
long missing,
long other,
long total,
String builtQuery) {
this.time = time;
if (terms == null) {
throw new NullPointerException("Null terms");
}
this.terms = terms;
if (termsMapping == null) {
throw new NullPointerException("Null termsMapping");
}
this.termsMapping = termsMapping;
this.missing = missing;
this.other = other;
this.total = total;
if (builtQuery == null) {
throw new NullPointerException("Null builtQuery");
}
this.builtQuery = builtQuery;
}
@JsonProperty
@Override
public long time() {
return time;
}
@JsonProperty
@Override
public Map terms() {
return terms;
}
@JsonProperty
@Override
public Map>> termsMapping() {
return termsMapping;
}
@JsonProperty
@Override
public long missing() {
return missing;
}
@JsonProperty
@Override
public long other() {
return other;
}
@JsonProperty
@Override
public long total() {
return total;
}
@JsonProperty
@Override
public String builtQuery() {
return builtQuery;
}
@Override
public String toString() {
return "TermsResult{"
+ "time=" + time + ", "
+ "terms=" + terms + ", "
+ "termsMapping=" + termsMapping + ", "
+ "missing=" + missing + ", "
+ "other=" + other + ", "
+ "total=" + total + ", "
+ "builtQuery=" + builtQuery
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TermsResult) {
TermsResult that = (TermsResult) o;
return this.time == that.time()
&& this.terms.equals(that.terms())
&& this.termsMapping.equals(that.termsMapping())
&& this.missing == that.missing()
&& this.other == that.other()
&& this.total == that.total()
&& this.builtQuery.equals(that.builtQuery());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (int) ((time >>> 32) ^ time);
h$ *= 1000003;
h$ ^= terms.hashCode();
h$ *= 1000003;
h$ ^= termsMapping.hashCode();
h$ *= 1000003;
h$ ^= (int) ((missing >>> 32) ^ missing);
h$ *= 1000003;
h$ ^= (int) ((other >>> 32) ^ other);
h$ *= 1000003;
h$ ^= (int) ((total >>> 32) ^ total);
h$ *= 1000003;
h$ ^= builtQuery.hashCode();
return h$;
}
}