/** * * * <pre> * Name of the span. Must be less than 128 bytes. The span name is sanitized * and displayed in the Stackdriver Trace tool in the * {% dynamic print site_values.console_name %}. * The name may be a method name or some other per-call site name. * For the same executable and the same call point, a best practice is * to use a consistent name, which makes it easier to correlate * cross-trace spans. * </pre> * * <code>string name = 3;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
hash = (53 * hash) + kind_; hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.cloudtrace.v1.TraceSpan)) { return super.equals(obj); } com.google.devtools.cloudtrace.v1.TraceSpan other = (com.google.devtools.cloudtrace.v1.TraceSpan) obj; boolean result = true; result = result && (getSpanId() == other.getSpanId()); result = result && kind_ == other.kind_; result = result && getName().equals(other.getName()); result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } result = result && (getParentSpanId() == other.getParentSpanId()); result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v1.TraceSpan other) { if (other == com.google.devtools.cloudtrace.v1.TraceSpan.getDefaultInstance()) return this; if (other.getSpanId() != 0L) { setSpanId(other.getSpanId()); } if (other.kind_ != 0) { setKindValue(other.getKindValue()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.getParentSpanId() != 0L) { setParentSpanId(other.getParentSpanId()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private int spanSize(TraceSpan span) { int size = 0; size += 8; // For span_id. size += 4; // For kind. size += span.getName().length(); size += 16; // For start_time. size += 16; // For end_time. size += 8; // For parent_span_id. size += labelsSize(span); return size; }
private int spanSize(TraceSpan span) { int size = 0; size += 8; // For span_id. size += 4; // For kind. size += span.getName().length(); size += 16; // For start_time. size += 16; // For end_time. size += 8; // For parent_span_id. size += labelsSize(span); return size; }
private int spanSize(TraceSpan span) { int size = 0; size += 8; // For span_id. size += 4; // For kind. size += span.getName().length(); size += 16; // For start_time. size += 16; // For end_time. size += 8; // For parent_span_id. size += labelsSize(span); return size; }
private int spanSize(TraceSpan span) { int size = 0; size += 8; // For span_id. size += 4; // For kind. size += span.getName().length(); size += 16; // For start_time. size += 16; // For end_time. size += 8; // For parent_span_id. size += labelsSize(span); return size; }