public static final class Span.Link extends com.google.protobuf.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.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 |
| 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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Span.Link> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getSpanId()
The [SPAN_ID] for a span within a trace.
|
com.google.protobuf.ByteString |
getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
|
java.lang.String |
getTraceId()
The [TRACE_ID] for a trace within a project.
|
com.google.protobuf.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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAttributes()
A set of attributes on the link.
|
int |
hashCode() |
protected com.google.protobuf.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(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Span.Link |
parseDelimitedFrom(java.io.InputStream input) |
static Span.Link |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(byte[] data) |
static Span.Link |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(java.nio.ByteBuffer data) |
static Span.Link |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(com.google.protobuf.ByteString data) |
static Span.Link |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Span.Link |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Span.Link |
parseFrom(java.io.InputStream input) |
static Span.Link |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Span.Link> |
parser() |
Span.Link.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.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, waitpublic 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 com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getTraceId()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;getTraceId in interface Span.LinkOrBuilderpublic com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Span.Link parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseFrom(java.io.InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Link parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Span.Link.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Span.Link.Builder newBuilder()
public static Span.Link.Builder newBuilder(Span.Link prototype)
public Span.Link.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Span.Link.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Span.Link getDefaultInstance()
public static com.google.protobuf.Parser<Span.Link> parser()
public com.google.protobuf.Parser<Span.Link> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Span.Link getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder