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
opencensus.proto.trace.v1.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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
TRACESTATE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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() |
com.google.protobuf.ByteString |
getSpanId()
A unique identifier for the linked span.
|
com.google.protobuf.ByteString |
getTraceId()
A unique identifier of a trace that this linked span is part of.
|
Span.Tracestate |
getTracestate()
The Tracestate associated with the link.
|
Span.TracestateOrBuilder |
getTracestateOrBuilder()
The Tracestate associated with the link.
|
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() |
boolean |
hasTracestate()
The Tracestate associated with the link.
|
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) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Span.Link |
parseDelimitedFrom(InputStream input) |
static Span.Link |
parseDelimitedFrom(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(ByteBuffer data) |
static Span.Link |
parseFrom(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(InputStream input) |
static Span.Link |
parseFrom(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, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, 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 static final int TRACESTATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public 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 com.google.protobuf.ByteString getTraceId()
A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.
bytes trace_id = 1;getTraceId in interface Span.LinkOrBuilderpublic com.google.protobuf.ByteString getSpanId()
A unique identifier for the linked span. The ID is an 8-byte array.
bytes span_id = 2;getSpanId in interface Span.LinkOrBuilderpublic int getTypeValue()
The relationship of the current span relative to the linked span.
.opencensus.proto.trace.v1.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.
.opencensus.proto.trace.v1.Span.Link.Type type = 3;getType in interface Span.LinkOrBuilderpublic boolean hasAttributes()
A set of attributes on the link.
.opencensus.proto.trace.v1.Span.Attributes attributes = 4;hasAttributes in interface Span.LinkOrBuilderpublic Span.Attributes getAttributes()
A set of attributes on the link.
.opencensus.proto.trace.v1.Span.Attributes attributes = 4;getAttributes in interface Span.LinkOrBuilderpublic Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the link.
.opencensus.proto.trace.v1.Span.Attributes attributes = 4;getAttributesOrBuilder in interface Span.LinkOrBuilderpublic boolean hasTracestate()
The Tracestate associated with the link.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 5;hasTracestate in interface Span.LinkOrBuilderpublic Span.Tracestate getTracestate()
The Tracestate associated with the link.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 5;getTracestate in interface Span.LinkOrBuilderpublic Span.TracestateOrBuilder getTracestateOrBuilder()
The Tracestate associated with the link.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 5;getTracestateOrBuilder 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 IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Span.Link parseFrom(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(InputStream input) throws IOException
IOExceptionpublic static Span.Link parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Span.Link parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Span.Link parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Span.Link parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Span.Link parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
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.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.