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 class
Span.Attributes
A set of attributes as key-value pairs.static interface
Span.AttributesOrBuilder
static class
Span.Builder
A span represents a single operation within a trace.static class
Span.Link
A pointer from the current span to another span in the same trace or in a different trace.static interface
Span.LinkOrBuilder
static class
Span.Links
A collection of links, which are references from this span to a span in the same or different trace.static interface
Span.LinksOrBuilder
static class
Span.SpanKind
Type of span.static class
Span.TimeEvent
A time-stamped annotation or message event in the Span.static interface
Span.TimeEventOrBuilder
static class
Span.TimeEvents
A collection of `TimeEvent`s.static interface
Span.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 int
ATTRIBUTES_FIELD_NUMBER
static int
CHILD_SPAN_COUNT_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
LINKS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PARENT_SPAN_ID_FIELD_NUMBER
static int
SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER
static int
SPAN_ID_FIELD_NUMBER
static int
SPAN_KIND_FIELD_NUMBER
static int
STACK_TRACE_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
STATUS_FIELD_NUMBER
static int
TIME_EVENTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Span.Attributes
getAttributes()
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.Int32ValueOrBuilder
getChildSpanCountOrBuilder()
Optional.static Span
getDefaultInstance()
Span
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
TruncatableString
getDisplayName()
Required.TruncatableStringOrBuilder
getDisplayNameOrBuilder()
Required.com.google.protobuf.Timestamp
getEndTime()
Required.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
Required.Span.Links
getLinks()
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.Parser<Span>
getParserForType()
com.google.protobuf.BoolValue
getSameProcessAsParentSpan()
Optional.com.google.protobuf.BoolValueOrBuilder
getSameProcessAsParentSpanOrBuilder()
Optional.int
getSerializedSize()
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.StackTraceOrBuilder
getStackTraceOrBuilder()
Stack trace captured at the start of the span.com.google.protobuf.Timestamp
getStartTime()
Required.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
Required.com.google.rpc.Status
getStatus()
Optional.com.google.rpc.StatusOrBuilder
getStatusOrBuilder()
Optional.Span.TimeEvents
getTimeEvents()
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.int
hashCode()
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()
static Span.Builder
newBuilder()
static Span.Builder
newBuilder(Span prototype)
Span.Builder
newBuilderForType()
protected Span.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Span
parseDelimitedFrom(InputStream input)
static Span
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Span
parseFrom(byte[] data)
static Span
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Span
parseFrom(com.google.protobuf.ByteString data)
static Span
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Span
parseFrom(com.google.protobuf.CodedInputStream input)
static Span
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Span
parseFrom(InputStream input)
static Span
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Span
parseFrom(ByteBuffer data)
static Span
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Span>
parser()
Span.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
getSpanId
in 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:
getSpanIdBytes
in 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:
getParentSpanId
in 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:
getParentSpanIdBytes
in 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:
hasDisplayName
in 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:
getDisplayName
in 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:
getDisplayNameOrBuilder
in 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:
hasStartTime
in 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:
getStartTime
in 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:
getStartTimeOrBuilder
in 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:
hasEndTime
in 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:
getEndTime
in 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:
getEndTimeOrBuilder
in 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:
hasAttributes
in 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:
getAttributes
in 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:
getAttributesOrBuilder
in interfaceSpanOrBuilder
-
hasStackTrace
public boolean hasStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
- Specified by:
hasStackTrace
in 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:
getStackTrace
in 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:
getStackTraceOrBuilder
in 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:
hasTimeEvents
in 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:
getTimeEvents
in 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:
getTimeEventsOrBuilder
in 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:
hasLinks
in 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:
getLinks
in 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:
getLinksOrBuilder
in interfaceSpanOrBuilder
-
hasStatus
public boolean hasStatus()
Optional. The final status for this span.
.google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasStatus
in 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:
getStatus
in 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:
getStatusOrBuilder
in 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:
hasSameProcessAsParentSpan
in 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:
getSameProcessAsParentSpan
in 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:
getSameProcessAsParentSpanOrBuilder
in 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:
hasChildSpanCount
in 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:
getChildSpanCount
in 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:
getChildSpanCountOrBuilder
in 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:
getSpanKindValue
in 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:
getSpanKind
in interfaceSpanOrBuilder
- Returns:
- The spanKind.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Span.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Span getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-