org.graylog.plugins.views.search.engine.suggestions.AutoValue_SuggestionError Maven / Gradle / Ivy
package org.graylog.plugins.views.search.engine.suggestions;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SuggestionError extends SuggestionError {
private final String type;
private final String reason;
AutoValue_SuggestionError(
String type,
String reason) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (reason == null) {
throw new NullPointerException("Null reason");
}
this.reason = reason;
}
@Override
public String type() {
return type;
}
@Override
public String reason() {
return reason;
}
@Override
public String toString() {
return "SuggestionError{"
+ "type=" + type + ", "
+ "reason=" + reason
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SuggestionError) {
SuggestionError that = (SuggestionError) o;
return this.type.equals(that.type())
&& this.reason.equals(that.reason());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= reason.hashCode();
return h$;
}
}