com.github.kristofa.brave.AutoValue_TraceData Maven / Gradle / Ivy
package com.github.kristofa.brave;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TraceData extends TraceData {
private final SpanId spanId;
private final Boolean sample;
private AutoValue_TraceData(
@com.github.kristofa.brave.internal.Nullable SpanId spanId,
@com.github.kristofa.brave.internal.Nullable Boolean sample) {
this.spanId = spanId;
this.sample = sample;
}
@com.github.kristofa.brave.internal.Nullable
@Override
public SpanId getSpanId() {
return spanId;
}
@com.github.kristofa.brave.internal.Nullable
@Override
public Boolean getSample() {
return sample;
}
@Override
public String toString() {
return "TraceData{"
+ "spanId=" + spanId + ", "
+ "sample=" + sample
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TraceData) {
TraceData that = (TraceData) o;
return ((this.spanId == null) ? (that.getSpanId() == null) : this.spanId.equals(that.getSpanId()))
&& ((this.sample == null) ? (that.getSample() == null) : this.sample.equals(that.getSample()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (spanId == null) ? 0 : spanId.hashCode();
h *= 1000003;
h ^= (sample == null) ? 0 : sample.hashCode();
return h;
}
static final class Builder implements TraceData.Builder {
private SpanId spanId;
private Boolean sample;
Builder() {
}
Builder(TraceData source) {
this.spanId = source.getSpanId();
this.sample = source.getSample();
}
@Override
public TraceData.Builder spanId(SpanId spanId) {
this.spanId = spanId;
return this;
}
@Override
public TraceData.Builder sample(Boolean sample) {
this.sample = sample;
return this;
}
@Override
public TraceData build() {
return new AutoValue_TraceData(
this.spanId,
this.sample);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy