public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); }
public static Builder newBuilder(com.google.devtools.cloudtrace.v1.TraceSpan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
/** * 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)); } }