public static final class Span.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder> implements SpanOrBuilder
A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous. There might be gaps or overlaps between spans in a trace.Protobuf type
google.devtools.cloudtrace.v2.Span| Modifier and Type | Method and Description |
|---|---|
Span.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Span |
build() |
Span |
buildPartial() |
Span.Builder |
clear() |
Span.Builder |
clearAttributes()
A set of attributes on the span.
|
Span.Builder |
clearChildSpanCount()
Optional.
|
Span.Builder |
clearDisplayName()
Required.
|
Span.Builder |
clearEndTime()
Required.
|
Span.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Span.Builder |
clearLinks()
Links associated with the span.
|
Span.Builder |
clearName()
Required.
|
Span.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Span.Builder |
clearParentSpanId()
The `[SPAN_ID]` of this span's parent span.
|
Span.Builder |
clearSameProcessAsParentSpan()
Optional.
|
Span.Builder |
clearSpanId()
Required.
|
Span.Builder |
clearSpanKind()
Optional.
|
Span.Builder |
clearStackTrace()
Stack trace captured at the start of the span.
|
Span.Builder |
clearStartTime()
Required.
|
Span.Builder |
clearStatus()
Optional.
|
Span.Builder |
clearTimeEvents()
A set of time events.
|
Span.Builder |
clone() |
Span.Attributes |
getAttributes()
A set of attributes on the span.
|
Span.Attributes.Builder |
getAttributesBuilder()
A set of attributes on the span.
|
Span.AttributesOrBuilder |
getAttributesOrBuilder()
A set of attributes on the span.
|
com.google.protobuf.Int32Value |
getChildSpanCount()
Optional.
|
com.google.protobuf.Int32Value.Builder |
getChildSpanCountBuilder()
Optional.
|
com.google.protobuf.Int32ValueOrBuilder |
getChildSpanCountOrBuilder()
Optional.
|
Span |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TruncatableString |
getDisplayName()
Required.
|
TruncatableString.Builder |
getDisplayNameBuilder()
Required.
|
TruncatableStringOrBuilder |
getDisplayNameOrBuilder()
Required.
|
com.google.protobuf.Timestamp |
getEndTime()
Required.
|
com.google.protobuf.Timestamp.Builder |
getEndTimeBuilder()
Required.
|
com.google.protobuf.TimestampOrBuilder |
getEndTimeOrBuilder()
Required.
|
Span.Links |
getLinks()
Links associated with the span.
|
Span.Links.Builder |
getLinksBuilder()
Links associated with the span.
|
Span.LinksOrBuilder |
getLinksOrBuilder()
Links associated with the span.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
String |
getParentSpanId()
The `[SPAN_ID]` of this span's parent span.
|
com.google.protobuf.ByteString |
getParentSpanIdBytes()
The `[SPAN_ID]` of this span's parent span.
|
com.google.protobuf.BoolValue |
getSameProcessAsParentSpan()
Optional.
|
com.google.protobuf.BoolValue.Builder |
getSameProcessAsParentSpanBuilder()
Optional.
|
com.google.protobuf.BoolValueOrBuilder |
getSameProcessAsParentSpanOrBuilder()
Optional.
|
String |
getSpanId()
Required.
|
com.google.protobuf.ByteString |
getSpanIdBytes()
Required.
|
Span.SpanKind |
getSpanKind()
Optional.
|
int |
getSpanKindValue()
Optional.
|
StackTrace |
getStackTrace()
Stack trace captured at the start of the span.
|
StackTrace.Builder |
getStackTraceBuilder()
Stack trace captured at the start of the span.
|
StackTraceOrBuilder |
getStackTraceOrBuilder()
Stack trace captured at the start of the span.
|
com.google.protobuf.Timestamp |
getStartTime()
Required.
|
com.google.protobuf.Timestamp.Builder |
getStartTimeBuilder()
Required.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
Required.
|
com.google.rpc.Status |
getStatus()
Optional.
|
com.google.rpc.Status.Builder |
getStatusBuilder()
Optional.
|
com.google.rpc.StatusOrBuilder |
getStatusOrBuilder()
Optional.
|
Span.TimeEvents |
getTimeEvents()
A set of time events.
|
Span.TimeEvents.Builder |
getTimeEventsBuilder()
A set of time events.
|
Span.TimeEventsOrBuilder |
getTimeEventsOrBuilder()
A set of time events.
|
boolean |
hasAttributes()
A set of attributes on the span.
|
boolean |
hasChildSpanCount()
Optional.
|
boolean |
hasDisplayName()
Required.
|
boolean |
hasEndTime()
Required.
|
boolean |
hasLinks()
Links associated with the span.
|
boolean |
hasSameProcessAsParentSpan()
Optional.
|
boolean |
hasStackTrace()
Stack trace captured at the start of the span.
|
boolean |
hasStartTime()
Required.
|
boolean |
hasStatus()
Optional.
|
boolean |
hasTimeEvents()
A set of time events.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Span.Builder |
mergeAttributes(Span.Attributes value)
A set of attributes on the span.
|
Span.Builder |
mergeChildSpanCount(com.google.protobuf.Int32Value value)
Optional.
|
Span.Builder |
mergeDisplayName(TruncatableString value)
Required.
|
Span.Builder |
mergeEndTime(com.google.protobuf.Timestamp value)
Required.
|
Span.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Span.Builder |
mergeFrom(com.google.protobuf.Message other) |
Span.Builder |
mergeFrom(Span other) |
Span.Builder |
mergeLinks(Span.Links value)
Links associated with the span.
|
Span.Builder |
mergeSameProcessAsParentSpan(com.google.protobuf.BoolValue value)
Optional.
|
Span.Builder |
mergeStackTrace(StackTrace value)
Stack trace captured at the start of the span.
|
Span.Builder |
mergeStartTime(com.google.protobuf.Timestamp value)
Required.
|
Span.Builder |
mergeStatus(com.google.rpc.Status value)
Optional.
|
Span.Builder |
mergeTimeEvents(Span.TimeEvents value)
A set of time events.
|
Span.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Span.Builder |
setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the span.
|
Span.Builder |
setAttributes(Span.Attributes value)
A set of attributes on the span.
|
Span.Builder |
setChildSpanCount(com.google.protobuf.Int32Value.Builder builderForValue)
Optional.
|
Span.Builder |
setChildSpanCount(com.google.protobuf.Int32Value value)
Optional.
|
Span.Builder |
setDisplayName(TruncatableString.Builder builderForValue)
Required.
|
Span.Builder |
setDisplayName(TruncatableString value)
Required.
|
Span.Builder |
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
Required.
|
Span.Builder |
setEndTime(com.google.protobuf.Timestamp value)
Required.
|
Span.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Span.Builder |
setLinks(Span.Links.Builder builderForValue)
Links associated with the span.
|
Span.Builder |
setLinks(Span.Links value)
Links associated with the span.
|
Span.Builder |
setName(String value)
Required.
|
Span.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
Span.Builder |
setParentSpanId(String value)
The `[SPAN_ID]` of this span's parent span.
|
Span.Builder |
setParentSpanIdBytes(com.google.protobuf.ByteString value)
The `[SPAN_ID]` of this span's parent span.
|
Span.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Span.Builder |
setSameProcessAsParentSpan(com.google.protobuf.BoolValue.Builder builderForValue)
Optional.
|
Span.Builder |
setSameProcessAsParentSpan(com.google.protobuf.BoolValue value)
Optional.
|
Span.Builder |
setSpanId(String value)
Required.
|
Span.Builder |
setSpanIdBytes(com.google.protobuf.ByteString value)
Required.
|
Span.Builder |
setSpanKind(Span.SpanKind value)
Optional.
|
Span.Builder |
setSpanKindValue(int value)
Optional.
|
Span.Builder |
setStackTrace(StackTrace.Builder builderForValue)
Stack trace captured at the start of the span.
|
Span.Builder |
setStackTrace(StackTrace value)
Stack trace captured at the start of the span.
|
Span.Builder |
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Required.
|
Span.Builder |
setStartTime(com.google.protobuf.Timestamp value)
Required.
|
Span.Builder |
setStatus(com.google.rpc.Status.Builder builderForValue)
Optional.
|
Span.Builder |
setStatus(com.google.rpc.Status value)
Optional.
|
Span.Builder |
setTimeEvents(Span.TimeEvents.Builder builderForValue)
A set of time events.
|
Span.Builder |
setTimeEvents(Span.TimeEvents value)
A set of time events.
|
Span.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Span build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Span buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Span.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Span.Builder>public Span.Builder mergeFrom(Span other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public Span.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Span.Builder>IOExceptionpublic String getName()
Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface SpanOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface SpanOrBuilderpublic Span.Builder setName(String value)
Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The name to set.public Span.Builder clearName()
Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
string name = 1 [(.google.api.field_behavior) = REQUIRED];public Span.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for name to set.public String getSpanId()
Required. The `[SPAN_ID]` portion of the span's resource name.
string span_id = 2 [(.google.api.field_behavior) = REQUIRED];getSpanId in interface SpanOrBuilderpublic com.google.protobuf.ByteString getSpanIdBytes()
Required. The `[SPAN_ID]` portion of the span's resource name.
string span_id = 2 [(.google.api.field_behavior) = REQUIRED];getSpanIdBytes in interface SpanOrBuilderpublic Span.Builder setSpanId(String value)
Required. The `[SPAN_ID]` portion of the span's resource name.
string span_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The spanId to set.public Span.Builder clearSpanId()
Required. The `[SPAN_ID]` portion of the span's resource name.
string span_id = 2 [(.google.api.field_behavior) = REQUIRED];public Span.Builder setSpanIdBytes(com.google.protobuf.ByteString value)
Required. The `[SPAN_ID]` portion of the span's resource name.
string span_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for spanId to set.public String getParentSpanId()
The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;getParentSpanId in interface SpanOrBuilderpublic com.google.protobuf.ByteString getParentSpanIdBytes()
The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;getParentSpanIdBytes in interface SpanOrBuilderpublic Span.Builder setParentSpanId(String value)
The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;value - The parentSpanId to set.public Span.Builder clearParentSpanId()
The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;public Span.Builder setParentSpanIdBytes(com.google.protobuf.ByteString value)
The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;value - The bytes for parentSpanId to set.public boolean hasDisplayName()
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
hasDisplayName in interface SpanOrBuilderpublic TruncatableString getDisplayName()
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
getDisplayName in interface SpanOrBuilderpublic Span.Builder setDisplayName(TruncatableString value)
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder setDisplayName(TruncatableString.Builder builderForValue)
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder mergeDisplayName(TruncatableString value)
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder clearDisplayName()
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
public TruncatableString.Builder getDisplayNameBuilder()
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
public TruncatableStringOrBuilder getDisplayNameOrBuilder()
Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
getDisplayNameOrBuilder in interface SpanOrBuilderpublic boolean hasStartTime()
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
hasStartTime in interface SpanOrBuilderpublic com.google.protobuf.Timestamp getStartTime()
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
getStartTime in interface SpanOrBuilderpublic Span.Builder setStartTime(com.google.protobuf.Timestamp value)
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder mergeStartTime(com.google.protobuf.Timestamp value)
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder clearStartTime()
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
getStartTimeOrBuilder in interface SpanOrBuilderpublic boolean hasEndTime()
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
hasEndTime in interface SpanOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
getEndTime in interface SpanOrBuilderpublic Span.Builder setEndTime(com.google.protobuf.Timestamp value)
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder mergeEndTime(com.google.protobuf.Timestamp value)
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
public Span.Builder clearEndTime()
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
getEndTimeOrBuilder in interface SpanOrBuilderpublic boolean hasAttributes()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;hasAttributes in interface SpanOrBuilderpublic Span.Attributes getAttributes()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;getAttributes in interface SpanOrBuilderpublic Span.Builder setAttributes(Span.Attributes value)
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;public Span.Builder setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;public Span.Builder mergeAttributes(Span.Attributes value)
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;public Span.Builder clearAttributes()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;public Span.Attributes.Builder getAttributesBuilder()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;public Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;getAttributesOrBuilder in interface SpanOrBuilderpublic boolean hasStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;hasStackTrace in interface SpanOrBuilderpublic StackTrace getStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;getStackTrace in interface SpanOrBuilderpublic Span.Builder setStackTrace(StackTrace value)
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;public Span.Builder setStackTrace(StackTrace.Builder builderForValue)
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;public Span.Builder mergeStackTrace(StackTrace value)
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;public Span.Builder clearStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;public StackTrace.Builder getStackTraceBuilder()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;public StackTraceOrBuilder getStackTraceOrBuilder()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;getStackTraceOrBuilder in interface SpanOrBuilderpublic boolean hasTimeEvents()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;hasTimeEvents in interface SpanOrBuilderpublic Span.TimeEvents getTimeEvents()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;getTimeEvents in interface SpanOrBuilderpublic Span.Builder setTimeEvents(Span.TimeEvents value)
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;public Span.Builder setTimeEvents(Span.TimeEvents.Builder builderForValue)
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;public Span.Builder mergeTimeEvents(Span.TimeEvents value)
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;public Span.Builder clearTimeEvents()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;public Span.TimeEvents.Builder getTimeEventsBuilder()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;public Span.TimeEventsOrBuilder getTimeEventsOrBuilder()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;getTimeEventsOrBuilder in interface SpanOrBuilderpublic boolean hasLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;hasLinks in interface SpanOrBuilderpublic Span.Links getLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;getLinks in interface SpanOrBuilderpublic Span.Builder setLinks(Span.Links value)
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;public Span.Builder setLinks(Span.Links.Builder builderForValue)
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;public Span.Builder mergeLinks(Span.Links value)
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;public Span.Builder clearLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;public Span.Links.Builder getLinksBuilder()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;public Span.LinksOrBuilder getLinksOrBuilder()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;getLinksOrBuilder in interface SpanOrBuilderpublic boolean hasStatus()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];hasStatus in interface SpanOrBuilderpublic com.google.rpc.Status getStatus()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];getStatus in interface SpanOrBuilderpublic Span.Builder setStatus(com.google.rpc.Status value)
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];public Span.Builder setStatus(com.google.rpc.Status.Builder builderForValue)
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];public Span.Builder mergeStatus(com.google.rpc.Status value)
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];public Span.Builder clearStatus()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];public com.google.rpc.Status.Builder getStatusBuilder()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];getStatusOrBuilder in interface SpanOrBuilderpublic boolean hasSameProcessAsParentSpan()
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
hasSameProcessAsParentSpan in interface SpanOrBuilderpublic com.google.protobuf.BoolValue getSameProcessAsParentSpan()
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
getSameProcessAsParentSpan in interface SpanOrBuilderpublic Span.Builder setSameProcessAsParentSpan(com.google.protobuf.BoolValue value)
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
public Span.Builder setSameProcessAsParentSpan(com.google.protobuf.BoolValue.Builder builderForValue)
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
public Span.Builder mergeSameProcessAsParentSpan(com.google.protobuf.BoolValue value)
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
public Span.Builder clearSameProcessAsParentSpan()
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.BoolValue.Builder getSameProcessAsParentSpanBuilder()
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.BoolValueOrBuilder getSameProcessAsParentSpanOrBuilder()
Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
getSameProcessAsParentSpanOrBuilder in interface SpanOrBuilderpublic boolean hasChildSpanCount()
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
hasChildSpanCount in interface SpanOrBuilderpublic com.google.protobuf.Int32Value getChildSpanCount()
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
getChildSpanCount in interface SpanOrBuilderpublic Span.Builder setChildSpanCount(com.google.protobuf.Int32Value value)
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
public Span.Builder setChildSpanCount(com.google.protobuf.Int32Value.Builder builderForValue)
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
public Span.Builder mergeChildSpanCount(com.google.protobuf.Int32Value value)
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
public Span.Builder clearChildSpanCount()
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.Int32Value.Builder getChildSpanCountBuilder()
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.Int32ValueOrBuilder getChildSpanCountOrBuilder()
Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
getChildSpanCountOrBuilder in interface SpanOrBuilderpublic int getSpanKindValue()
Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
.google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
getSpanKindValue in interface SpanOrBuilderpublic Span.Builder setSpanKindValue(int value)
Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
.google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for spanKind to set.public Span.SpanKind getSpanKind()
Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
.google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
getSpanKind in interface SpanOrBuilderpublic Span.Builder setSpanKind(Span.SpanKind value)
Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
.google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
value - The spanKind to set.public Span.Builder clearSpanKind()
Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
.google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
public final Span.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>public final Span.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>Copyright © 2024 Google LLC. All rights reserved.