public static final class Trace.Builder extends GeneratedMessageV3.Builder<Trace.Builder> implements TraceOrBuilder
A trace describes how long it takes for an application to perform an
operation. It consists of a set of spans, each of which represent a single
timed event within the operation.
Protobuf type google.devtools.cloudtrace.v1.Trace
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public Trace.Builder addAllSpans(Iterable<? extends TraceSpan> values)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.devtools.cloudtrace.v1.TraceSpan>
|
public Trace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Trace.Builder addSpans(TraceSpan value)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder addSpans(TraceSpan.Builder builderForValue)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder addSpans(int index, TraceSpan value)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder addSpans(int index, TraceSpan.Builder builderForValue)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public TraceSpan.Builder addSpansBuilder()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public TraceSpan.Builder addSpansBuilder(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Parameter |
---|
Name | Description |
index | int
|
Returns |
---|
Type | Description |
Trace | |
public Trace buildPartial()
Returns |
---|
Type | Description |
Trace | |
public Trace.Builder clear()
Overrides
public Trace.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Trace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Trace.Builder clearProjectId()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
public Trace.Builder clearSpans()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder clearTraceId()
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string. For example,
382d4f4c6b7bb2f4a972559d9085001d
.
string trace_id = 2;
public Trace.Builder clone()
Overrides
public Trace getDefaultInstanceForType()
Returns |
---|
Type | Description |
Trace | |
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getProjectId()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
Returns |
---|
Type | Description |
String | The projectId.
|
public ByteString getProjectIdBytes()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for projectId.
|
public TraceSpan getSpans(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Parameter |
---|
Name | Description |
index | int
|
public TraceSpan.Builder getSpansBuilder(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Parameter |
---|
Name | Description |
index | int
|
public List<TraceSpan.Builder> getSpansBuilderList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public int getSpansCount()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Returns |
---|
Type | Description |
int | |
public List<TraceSpan> getSpansList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public TraceSpanOrBuilder getSpansOrBuilder(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends TraceSpanOrBuilder> getSpansOrBuilderList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Returns |
---|
Type | Description |
List<? extends com.google.devtools.cloudtrace.v1.TraceSpanOrBuilder> | |
public String getTraceId()
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string. For example,
382d4f4c6b7bb2f4a972559d9085001d
.
string trace_id = 2;
Returns |
---|
Type | Description |
String | The traceId.
|
public ByteString getTraceIdBytes()
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string. For example,
382d4f4c6b7bb2f4a972559d9085001d
.
string trace_id = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for traceId.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Trace.Builder mergeFrom(Trace other)
Parameter |
---|
Name | Description |
other | Trace
|
public Trace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Trace.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Trace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Trace.Builder removeSpans(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
Parameter |
---|
Name | Description |
index | int
|
public Trace.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Trace.Builder setProjectId(String value)
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
Parameter |
---|
Name | Description |
value | String
The projectId to set.
|
public Trace.Builder setProjectIdBytes(ByteString value)
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for projectId to set.
|
public Trace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public Trace.Builder setSpans(int index, TraceSpan value)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder setSpans(int index, TraceSpan.Builder builderForValue)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder setTraceId(String value)
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string. For example,
382d4f4c6b7bb2f4a972559d9085001d
.
string trace_id = 2;
Parameter |
---|
Name | Description |
value | String
The traceId to set.
|
public Trace.Builder setTraceIdBytes(ByteString value)
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string. For example,
382d4f4c6b7bb2f4a972559d9085001d
.
string trace_id = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for traceId to set.
|
public final Trace.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides