org.graylog.events.event.AutoValue_EventOriginContext_ESEventOriginContext Maven / Gradle / Ivy
package org.graylog.events.event;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EventOriginContext_ESEventOriginContext extends EventOriginContext.ESEventOriginContext {
private final String indexName;
private final String messageId;
AutoValue_EventOriginContext_ESEventOriginContext(
String indexName,
String messageId) {
if (indexName == null) {
throw new NullPointerException("Null indexName");
}
this.indexName = indexName;
if (messageId == null) {
throw new NullPointerException("Null messageId");
}
this.messageId = messageId;
}
@Override
public String indexName() {
return indexName;
}
@Override
public String messageId() {
return messageId;
}
@Override
public String toString() {
return "ESEventOriginContext{"
+ "indexName=" + indexName + ", "
+ "messageId=" + messageId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EventOriginContext.ESEventOriginContext) {
EventOriginContext.ESEventOriginContext that = (EventOriginContext.ESEventOriginContext) o;
return this.indexName.equals(that.indexName())
&& this.messageId.equals(that.messageId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= indexName.hashCode();
h$ *= 1000003;
h$ ^= messageId.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy