org.graylog.plugins.pipelineprocessor.simulator.AutoValue_PipelineInterpreterTrace Maven / Gradle / Ivy
package org.graylog.plugins.pipelineprocessor.simulator;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PipelineInterpreterTrace extends PipelineInterpreterTrace {
private final long time;
private final String message;
AutoValue_PipelineInterpreterTrace(
long time,
String message) {
this.time = time;
if (message == null) {
throw new NullPointerException("Null message");
}
this.message = message;
}
@JsonProperty
@Override
public long time() {
return time;
}
@JsonProperty
@Override
public String message() {
return message;
}
@Override
public String toString() {
return "PipelineInterpreterTrace{"
+ "time=" + time + ", "
+ "message=" + message
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PipelineInterpreterTrace) {
PipelineInterpreterTrace that = (PipelineInterpreterTrace) o;
return (this.time == that.time())
&& (this.message.equals(that.message()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (int) ((time >>> 32) ^ time);
h$ *= 1000003;
h$ ^= message.hashCode();
return h$;
}
}