public static final class Span.Link extends GeneratedMessageV3 implements Span.LinkOrBuilder
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.Protobuf type
google.devtools.cloudtrace.v2.Span.Link| Modifier and Type | Class and Description |
|---|---|
static class |
Span.Link.Builder
A pointer from the current span to another span in the same trace or in a
different trace.
|
static class |
Span.Link.Type
The relationship of the current span relative to the linked span: child,
parent, or unspecified.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
SPAN_ID_FIELD_NUMBER |
static int |
TRACE_ID_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Span.Attributes |
getAttributes()
A set of attributes on the link.
|
Span.AttributesOrBuilder |
getAttributesOrBuilder()
A set of attributes on the link.
|
static Span.Link |
getDefaultInstance() |
Span.Link |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<Span.Link> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getSpanId()
The [SPAN_ID] for a span within a trace.
|
ByteString |
getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
|
java.lang.String |
getTraceId()
The [TRACE_ID] for a trace within a project.
|
ByteString |
getTraceIdBytes()
The [TRACE_ID] for a trace within a project.
|
Span.Link.Type |
getType()
The relationship of the current span relative to the linked span.
|
int |
getTypeValue()
The relationship of the current span relative to the linked span.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasAttributes()
A set of attributes on the link.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Span.Link.Builder |
newBuilder() |
static Span.Link.Builder |
newBuilder(Span.Link prototype) |
Span.Link.Builder |
newBuilderForType() |
protected Span.Link.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Span.Link |
parseDelimitedFrom(java.io.InputStream input) |
static Span.Link |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(byte[] data) |
static Span.Link |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(java.nio.ByteBuffer data) |
static Span.Link |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(ByteString data) |
static Span.Link |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(CodedInputStream input) |
static Span.Link |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(java.io.InputStream input) |
static Span.Link |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Span.Link> |
parser() |
Span.Link.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TRACE_ID_FIELD_NUMBER
public static final int SPAN_ID_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getTraceId()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;getTraceId in interface Span.LinkOrBuilderpublic ByteString getTraceIdBytes()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;getTraceIdBytes in interface Span.LinkOrBuilderpublic java.lang.String getSpanId()
The [SPAN_ID] for a span within a trace.
string span_id = 2;getSpanId in interface Span.LinkOrBuilderpublic ByteString getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
string span_id = 2;getSpanIdBytes in interface Span.LinkOrBuilderpublic int getTypeValue()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;getTypeValue in interface Span.LinkOrBuilderpublic Span.Link.Type getType()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;getType in interface Span.LinkOrBuilderpublic boolean hasAttributes()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;hasAttributes in interface Span.LinkOrBuilderpublic Span.Attributes getAttributes()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;getAttributes in interface Span.LinkOrBuilderpublic Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;getAttributesOrBuilder in interface Span.LinkOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Span.Link parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Span.Link.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Span.Link.Builder newBuilder()
public static Span.Link.Builder newBuilder(Span.Link prototype)
public Span.Link.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Span.Link.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Span.Link getDefaultInstance()
public Parser<Span.Link> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Span.Link getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder