Class Span
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.cloudtrace.v2.Span
-
- All Implemented Interfaces:
SpanOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Span extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.devtools.cloudtrace.v2.Span- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpan.AttributesA set of attributes as key-value pairs.static interfaceSpan.AttributesOrBuilderstatic classSpan.BuilderA span represents a single operation within a trace.static classSpan.LinkA pointer from the current span to another span in the same trace or in a different trace.static interfaceSpan.LinkOrBuilderstatic classSpan.LinksA collection of links, which are references from this span to a span in the same or different trace.static interfaceSpan.LinksOrBuilderstatic classSpan.SpanKindType of span.static classSpan.TimeEventA time-stamped annotation or message event in the Span.static interfaceSpan.TimeEventOrBuilderstatic classSpan.TimeEventsA collection of `TimeEvent`s.static interfaceSpan.TimeEventsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_FIELD_NUMBERstatic intCHILD_SPAN_COUNT_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intEND_TIME_FIELD_NUMBERstatic intLINKS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPARENT_SPAN_ID_FIELD_NUMBERstatic intSAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBERstatic intSPAN_ID_FIELD_NUMBERstatic intSPAN_KIND_FIELD_NUMBERstatic intSTACK_TRACE_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBERstatic intSTATUS_FIELD_NUMBERstatic intTIME_EVENTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Span.AttributesgetAttributes()A set of attributes on the span.Span.AttributesOrBuildergetAttributesOrBuilder()A set of attributes on the span.com.google.protobuf.Int32ValuegetChildSpanCount()Optional.com.google.protobuf.Int32ValueOrBuildergetChildSpanCountOrBuilder()Optional.static SpangetDefaultInstance()SpangetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()TruncatableStringgetDisplayName()Required.TruncatableStringOrBuildergetDisplayNameOrBuilder()Required.com.google.protobuf.TimestampgetEndTime()Required.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()Required.Span.LinksgetLinks()Links associated with the span.Span.LinksOrBuildergetLinksOrBuilder()Links associated with the span.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetParentSpanId()The `[SPAN_ID]` of this span's parent span.com.google.protobuf.ByteStringgetParentSpanIdBytes()The `[SPAN_ID]` of this span's parent span.com.google.protobuf.Parser<Span>getParserForType()com.google.protobuf.BoolValuegetSameProcessAsParentSpan()Optional.com.google.protobuf.BoolValueOrBuildergetSameProcessAsParentSpanOrBuilder()Optional.intgetSerializedSize()StringgetSpanId()Required.com.google.protobuf.ByteStringgetSpanIdBytes()Required.Span.SpanKindgetSpanKind()Optional.intgetSpanKindValue()Optional.StackTracegetStackTrace()Stack trace captured at the start of the span.StackTraceOrBuildergetStackTraceOrBuilder()Stack trace captured at the start of the span.com.google.protobuf.TimestampgetStartTime()Required.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()Required.com.google.rpc.StatusgetStatus()Optional.com.google.rpc.StatusOrBuildergetStatusOrBuilder()Optional.Span.TimeEventsgetTimeEvents()A set of time events.Span.TimeEventsOrBuildergetTimeEventsOrBuilder()A set of time events.booleanhasAttributes()A set of attributes on the span.booleanhasChildSpanCount()Optional.booleanhasDisplayName()Required.booleanhasEndTime()Required.inthashCode()booleanhasLinks()Links associated with the span.booleanhasSameProcessAsParentSpan()Optional.booleanhasStackTrace()Stack trace captured at the start of the span.booleanhasStartTime()Required.booleanhasStatus()Optional.booleanhasTimeEvents()A set of time events.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Span.BuildernewBuilder()static Span.BuildernewBuilder(Span prototype)Span.BuildernewBuilderForType()protected Span.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SpanparseDelimitedFrom(InputStream input)static SpanparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(byte[] data)static SpanparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(com.google.protobuf.ByteString data)static SpanparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(com.google.protobuf.CodedInputStream input)static SpanparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(InputStream input)static SpanparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(ByteBuffer data)static SpanparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Span>parser()Span.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPAN_ID_FIELD_NUMBER
public static final int SPAN_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARENT_SPAN_ID_FIELD_NUMBER
public static final int PARENT_SPAN_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STACK_TRACE_FIELD_NUMBER
public static final int STACK_TRACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_EVENTS_FIELD_NUMBER
public static final int TIME_EVENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LINKS_FIELD_NUMBER
public static final int LINKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER
public static final int SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHILD_SPAN_COUNT_FIELD_NUMBER
public static final int CHILD_SPAN_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPAN_KIND_FIELD_NUMBER
public static final int SPAN_KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public 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];- Specified by:
getNamein interfaceSpanOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceSpanOrBuilder- Returns:
- The bytes for name.
-
getSpanId
public String getSpanId()
Required. The `[SPAN_ID]` portion of the span's resource name.
string span_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSpanIdin interfaceSpanOrBuilder- Returns:
- The spanId.
-
getSpanIdBytes
public 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];- Specified by:
getSpanIdBytesin interfaceSpanOrBuilder- Returns:
- The bytes for spanId.
-
getParentSpanId
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;- Specified by:
getParentSpanIdin interfaceSpanOrBuilder- Returns:
- The parentSpanId.
-
getParentSpanIdBytes
public 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;- Specified by:
getParentSpanIdBytesin interfaceSpanOrBuilder- Returns:
- The bytes for parentSpanId.
-
hasDisplayName
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];- Specified by:
hasDisplayNamein interfaceSpanOrBuilder- Returns:
- Whether the displayName field is set.
-
getDisplayName
public 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];- Specified by:
getDisplayNamein interfaceSpanOrBuilder- Returns:
- The displayName.
-
getDisplayNameOrBuilder
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];- Specified by:
getDisplayNameOrBuilderin interfaceSpanOrBuilder
-
hasStartTime
public 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];- Specified by:
hasStartTimein interfaceSpanOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public 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];- Specified by:
getStartTimein interfaceSpanOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
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];- Specified by:
getStartTimeOrBuilderin interfaceSpanOrBuilder
-
hasEndTime
public 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];- Specified by:
hasEndTimein interfaceSpanOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public 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];- Specified by:
getEndTimein interfaceSpanOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
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];- Specified by:
getEndTimeOrBuilderin interfaceSpanOrBuilder
-
hasAttributes
public 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;- Specified by:
hasAttributesin interfaceSpanOrBuilder- Returns:
- Whether the attributes field is set.
-
getAttributes
public 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;- Specified by:
getAttributesin interfaceSpanOrBuilder- Returns:
- The attributes.
-
getAttributesOrBuilder
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;- Specified by:
getAttributesOrBuilderin interfaceSpanOrBuilder
-
hasStackTrace
public boolean hasStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;- Specified by:
hasStackTracein interfaceSpanOrBuilder- Returns:
- Whether the stackTrace field is set.
-
getStackTrace
public StackTrace getStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;- Specified by:
getStackTracein interfaceSpanOrBuilder- Returns:
- The stackTrace.
-
getStackTraceOrBuilder
public StackTraceOrBuilder getStackTraceOrBuilder()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;- Specified by:
getStackTraceOrBuilderin interfaceSpanOrBuilder
-
hasTimeEvents
public 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;- Specified by:
hasTimeEventsin interfaceSpanOrBuilder- Returns:
- Whether the timeEvents field is set.
-
getTimeEvents
public 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;- Specified by:
getTimeEventsin interfaceSpanOrBuilder- Returns:
- The timeEvents.
-
getTimeEventsOrBuilder
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;- Specified by:
getTimeEventsOrBuilderin interfaceSpanOrBuilder
-
hasLinks
public boolean hasLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;- Specified by:
hasLinksin interfaceSpanOrBuilder- Returns:
- Whether the links field is set.
-
getLinks
public 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;- Specified by:
getLinksin interfaceSpanOrBuilder- Returns:
- The links.
-
getLinksOrBuilder
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;- Specified by:
getLinksOrBuilderin interfaceSpanOrBuilder
-
hasStatus
public boolean hasStatus()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStatusin interfaceSpanOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public com.google.rpc.Status getStatus()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatusin interfaceSpanOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatusOrBuilderin interfaceSpanOrBuilder
-
hasSameProcessAsParentSpan
public 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];- Specified by:
hasSameProcessAsParentSpanin interfaceSpanOrBuilder- Returns:
- Whether the sameProcessAsParentSpan field is set.
-
getSameProcessAsParentSpan
public 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];- Specified by:
getSameProcessAsParentSpanin interfaceSpanOrBuilder- Returns:
- The sameProcessAsParentSpan.
-
getSameProcessAsParentSpanOrBuilder
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];- Specified by:
getSameProcessAsParentSpanOrBuilderin interfaceSpanOrBuilder
-
hasChildSpanCount
public 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];- Specified by:
hasChildSpanCountin interfaceSpanOrBuilder- Returns:
- Whether the childSpanCount field is set.
-
getChildSpanCount
public 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];- Specified by:
getChildSpanCountin interfaceSpanOrBuilder- Returns:
- The childSpanCount.
-
getChildSpanCountOrBuilder
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];- Specified by:
getChildSpanCountOrBuilderin interfaceSpanOrBuilder
-
getSpanKindValue
public 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];- Specified by:
getSpanKindValuein interfaceSpanOrBuilder- Returns:
- The enum numeric value on the wire for spanKind.
-
getSpanKind
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];- Specified by:
getSpanKindin interfaceSpanOrBuilder- Returns:
- The spanKind.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Span parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Span parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Span parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Span parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Span parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Span parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Span.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Span.Builder newBuilder()
-
newBuilder
public static Span.Builder newBuilder(Span prototype)
-
toBuilder
public Span.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Span.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Span getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Span> parser()
-
getParserForType
public com.google.protobuf.Parser<Span> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Span getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-