/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder clearSpans() { if (spansBuilder_ == null) { spans_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { spansBuilder_.clear(); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder addSpans(int index, com.google.devtools.cloudtrace.v1.TraceSpan value) { if (spansBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpansIsMutable(); spans_.add(index, value); onChanged(); } else { spansBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder addSpans(com.google.devtools.cloudtrace.v1.TraceSpan value) { if (spansBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpansIsMutable(); spans_.add(value); onChanged(); } else { spansBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder setSpans(int index, com.google.devtools.cloudtrace.v1.TraceSpan value) { if (spansBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpansIsMutable(); spans_.set(index, value); onChanged(); } else { spansBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder addSpans( int index, com.google.devtools.cloudtrace.v1.TraceSpan.Builder builderForValue) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.add(index, builderForValue.build()); onChanged(); } else { spansBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder setSpans( int index, com.google.devtools.cloudtrace.v1.TraceSpan.Builder builderForValue) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.set(index, builderForValue.build()); onChanged(); } else { spansBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder addAllSpans( java.lang.Iterable<? extends com.google.devtools.cloudtrace.v1.TraceSpan> values) { if (spansBuilder_ == null) { ensureSpansIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spans_); onChanged(); } else { spansBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder removeSpans(int index) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.remove(index); onChanged(); } else { spansBuilder_.remove(index); } return this; } /**
/** * * * <pre> * Globally unique identifier for the trace. This identifier is a 128-bit * numeric value formatted as a 32-byte hex string. * </pre> * * <code>string trace_id = 2;</code> */ public Builder setTraceId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } traceId_ = value; onChanged(); return this; } /**
/** * * * <pre> * Globally unique identifier for the trace. This identifier is a 128-bit * numeric value formatted as a 32-byte hex string. * </pre> * * <code>string trace_id = 2;</code> */ public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); traceId_ = value; onChanged(); return this; }
/** * * * <pre> * Collection of spans in the trace. * </pre> * * <code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code> */ public Builder addSpans(com.google.devtools.cloudtrace.v1.TraceSpan.Builder builderForValue) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.add(builderForValue.build()); onChanged(); } else { spansBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Project ID of the Cloud project where the trace data is stored. * </pre> * * <code>string project_id = 1;</code> */ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; onChanged(); return this; }
/** * * * <pre> * Project ID of the Cloud project where the trace data is stored. * </pre> * * <code>string project_id = 1;</code> */ public Builder setProjectId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; onChanged(); return this; } /**
/** * * * <pre> * Globally unique identifier for the trace. This identifier is a 128-bit * numeric value formatted as a 32-byte hex string. * </pre> * * <code>string trace_id = 2;</code> */ public Builder clearTraceId() { traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } /**
/** * * * <pre> * Project ID of the Cloud project where the trace data is stored. * </pre> * * <code>string project_id = 1;</code> */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /**