org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.AutoValue_MessagesWidget Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MessagesWidget extends MessagesWidget {
private final String id;
private final MessagesWidgetConfig config;
AutoValue_MessagesWidget(
String id,
MessagesWidgetConfig config) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (config == null) {
throw new NullPointerException("Null config");
}
this.config = config;
}
@JsonProperty("id")
@Override
public String id() {
return id;
}
@JsonProperty("config")
@Override
MessagesWidgetConfig config() {
return config;
}
@Override
public String toString() {
return "MessagesWidget{"
+ "id=" + id + ", "
+ "config=" + config
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MessagesWidget) {
MessagesWidget that = (MessagesWidget) o;
return this.id.equals(that.id())
&& this.config.equals(that.config());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= config.hashCode();
return h$;
}
}