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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getTraceId()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;
getTraceId
in interface Span.LinkOrBuilder
public ByteString getTraceIdBytes()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;
getTraceIdBytes
in interface Span.LinkOrBuilder
public java.lang.String getSpanId()
The [SPAN_ID] for a span within a trace.
string span_id = 2;
getSpanId
in interface Span.LinkOrBuilder
public ByteString getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
string span_id = 2;
getSpanIdBytes
in interface Span.LinkOrBuilder
public 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.LinkOrBuilder
public 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.LinkOrBuilder
public 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.LinkOrBuilder
public 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.LinkOrBuilder
public 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.LinkOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Span.Link parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Link parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Link parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Link parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Link parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Span.Link parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Span.Link parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Span.Link parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Span.Link parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Span.Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Span.Link.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Span.Link.Builder newBuilder()
public static Span.Link.Builder newBuilder(Span.Link prototype)
public Span.Link.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Span.Link.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Span.Link getDefaultInstance()
public Parser<Span.Link> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Span.Link getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder