zipkin2.storage.cassandra.v1.AutoValue_InsertTrace_Input Maven / Gradle / Ivy
package zipkin2.storage.cassandra.v1;
import java.nio.ByteBuffer;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_InsertTrace_Input extends InsertTrace.Input {
private final long trace_id;
private final long ts;
private final String span_name;
private final ByteBuffer span;
AutoValue_InsertTrace_Input(
long trace_id,
long ts,
String span_name,
ByteBuffer span) {
this.trace_id = trace_id;
this.ts = ts;
if (span_name == null) {
throw new NullPointerException("Null span_name");
}
this.span_name = span_name;
if (span == null) {
throw new NullPointerException("Null span");
}
this.span = span;
}
@Override
long trace_id() {
return trace_id;
}
@Override
long ts() {
return ts;
}
@Override
String span_name() {
return span_name;
}
@Override
ByteBuffer span() {
return span;
}
@Override
public String toString() {
return "Input{"
+ "trace_id=" + trace_id + ", "
+ "ts=" + ts + ", "
+ "span_name=" + span_name + ", "
+ "span=" + span
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof InsertTrace.Input) {
InsertTrace.Input that = (InsertTrace.Input) o;
return this.trace_id == that.trace_id()
&& this.ts == that.ts()
&& this.span_name.equals(that.span_name())
&& this.span.equals(that.span());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (int) ((trace_id >>> 32) ^ trace_id);
h$ *= 1000003;
h$ ^= (int) ((ts >>> 32) ^ ts);
h$ *= 1000003;
h$ ^= span_name.hashCode();
h$ *= 1000003;
h$ ^= span.hashCode();
return h$;
}
}