hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SPAN_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSpanId()); hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + kind_;
@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; }
/** * Adds a trace span message to this span buffer. * * @param span the trace span message to add to this buffer. */ public void put(TraceSpan span) { long spanId = span.getSpanId(); TraceSpan.Builder builder = spanMap.get(spanId); if (builder == null) { spanMap.put(spanId, span.toBuilder()); } else { spanMap.put(spanId, builder.mergeFrom(span)); } }
/** * Adds a trace span message to this span buffer. * * @param span the trace span message to add to this buffer. */ public void put(TraceSpan span) { long spanId = span.getSpanId(); TraceSpan.Builder builder = spanMap.get(spanId); if (builder == null) { spanMap.put(spanId, span.toBuilder()); } else { spanMap.put(spanId, builder.mergeFrom(span)); } }
/** * Adds a trace span message to this span buffer. * * @param span the trace span message to add to this buffer. */ public void put(TraceSpan span) { long spanId = span.getSpanId(); TraceSpan.Builder builder = spanMap.get(spanId); if (builder == null) { spanMap.put(spanId, span.toBuilder()); } else { spanMap.put(spanId, builder.mergeFrom(span)); } }
/** * Adds a trace span message to this span buffer. * * @param span the trace span message to add to this buffer. */ public void put(TraceSpan span) { long spanId = span.getSpanId(); TraceSpan.Builder builder = spanMap.get(spanId); if (builder == null) { spanMap.put(spanId, span.toBuilder()); } else { spanMap.put(spanId, builder.mergeFrom(span)); } }