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
Modifier and Type | Method and Description |
---|---|
Trace.Builder |
addAllSpans(java.lang.Iterable<? extends TraceSpan> values)
Collection of spans in the trace.
|
Trace.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Trace.Builder |
addSpans(int index,
TraceSpan.Builder builderForValue)
Collection of spans in the trace.
|
Trace.Builder |
addSpans(int index,
TraceSpan value)
Collection of spans in the trace.
|
Trace.Builder |
addSpans(TraceSpan.Builder builderForValue)
Collection of spans in the trace.
|
Trace.Builder |
addSpans(TraceSpan value)
Collection of spans in the trace.
|
TraceSpan.Builder |
addSpansBuilder()
Collection of spans in the trace.
|
TraceSpan.Builder |
addSpansBuilder(int index)
Collection of spans in the trace.
|
Trace |
build() |
Trace |
buildPartial() |
Trace.Builder |
clear() |
Trace.Builder |
clearField(Descriptors.FieldDescriptor field) |
Trace.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Trace.Builder |
clearProjectId()
Project ID of the Cloud project where the trace data is stored.
|
Trace.Builder |
clearSpans()
Collection of spans in the trace.
|
Trace.Builder |
clearTraceId()
Globally unique identifier for the trace.
|
Trace.Builder |
clone() |
Trace |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getProjectId()
Project ID of the Cloud project where the trace data is stored.
|
ByteString |
getProjectIdBytes()
Project ID of the Cloud project where the trace data is stored.
|
TraceSpan |
getSpans(int index)
Collection of spans in the trace.
|
TraceSpan.Builder |
getSpansBuilder(int index)
Collection of spans in the trace.
|
java.util.List<TraceSpan.Builder> |
getSpansBuilderList()
Collection of spans in the trace.
|
int |
getSpansCount()
Collection of spans in the trace.
|
java.util.List<TraceSpan> |
getSpansList()
Collection of spans in the trace.
|
TraceSpanOrBuilder |
getSpansOrBuilder(int index)
Collection of spans in the trace.
|
java.util.List<? extends TraceSpanOrBuilder> |
getSpansOrBuilderList()
Collection of spans in the trace.
|
java.lang.String |
getTraceId()
Globally unique identifier for the trace.
|
ByteString |
getTraceIdBytes()
Globally unique identifier for the trace.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Trace.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Trace.Builder |
mergeFrom(Message other) |
Trace.Builder |
mergeFrom(Trace other) |
Trace.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Trace.Builder |
removeSpans(int index)
Collection of spans in the trace.
|
Trace.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Trace.Builder |
setProjectId(java.lang.String value)
Project ID of the Cloud project where the trace data is stored.
|
Trace.Builder |
setProjectIdBytes(ByteString value)
Project ID of the Cloud project where the trace data is stored.
|
Trace.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Trace.Builder |
setSpans(int index,
TraceSpan.Builder builderForValue)
Collection of spans in the trace.
|
Trace.Builder |
setSpans(int index,
TraceSpan value)
Collection of spans in the trace.
|
Trace.Builder |
setTraceId(java.lang.String value)
Globally unique identifier for the trace.
|
Trace.Builder |
setTraceIdBytes(ByteString value)
Globally unique identifier for the trace.
|
Trace.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Trace.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Trace build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Trace buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Trace.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Trace.Builder>
public Trace.Builder mergeFrom(Trace other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Trace.Builder>
public Trace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Trace.Builder>
java.io.IOException
public java.lang.String getProjectId()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
getProjectId
in interface TraceOrBuilder
public ByteString getProjectIdBytes()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
getProjectIdBytes
in interface TraceOrBuilder
public Trace.Builder setProjectId(java.lang.String value)
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
public Trace.Builder clearProjectId()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
public Trace.Builder setProjectIdBytes(ByteString value)
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
public java.lang.String getTraceId()
Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string.
string trace_id = 2;
getTraceId
in interface TraceOrBuilder
public ByteString getTraceIdBytes()
Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string.
string trace_id = 2;
getTraceIdBytes
in interface TraceOrBuilder
public Trace.Builder setTraceId(java.lang.String value)
Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string.
string trace_id = 2;
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.
string trace_id = 2;
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.
string trace_id = 2;
public java.util.List<TraceSpan> getSpansList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansList
in interface TraceOrBuilder
public int getSpansCount()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansCount
in interface TraceOrBuilder
public TraceSpan getSpans(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpans
in interface TraceOrBuilder
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 addSpans(TraceSpan value)
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(TraceSpan.Builder builderForValue)
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 Trace.Builder addAllSpans(java.lang.Iterable<? extends TraceSpan> values)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder clearSpans()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public Trace.Builder removeSpans(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public TraceSpan.Builder getSpansBuilder(int index)
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;
getSpansOrBuilder
in interface TraceOrBuilder
public java.util.List<? extends TraceSpanOrBuilder> getSpansOrBuilderList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansOrBuilderList
in interface TraceOrBuilder
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;
public java.util.List<TraceSpan.Builder> getSpansBuilderList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
public final Trace.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Trace.Builder>
public final Trace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Trace.Builder>