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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ATTRIBUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SPAN_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TRACE_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Span.Link getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Span.Link.Builder newBuilder()
public static Span.Link.Builder newBuilder(Span.Link prototype)
public static Span.Link parseDelimitedFrom(InputStream input)
public static Span.Link parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Span.Link parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Span.Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Span.Link parseFrom(ByteString data)
public static Span.Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Span.Link parseFrom(CodedInputStream input)
public static Span.Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Span.Link parseFrom(InputStream input)
public static Span.Link parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Span.Link parseFrom(ByteBuffer data)
public static Span.Link parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Span.Link> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public Span.Attributes getAttributes()
A set of attributes on the link. Up to 32 attributes can be
specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
public Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the link. Up to 32 attributes can be
specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
public Span.Link getDefaultInstanceForType()
public Parser<Span.Link> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public String getSpanId()
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Returns |
---|
Type | Description |
String | The spanId.
|
public ByteString getSpanIdBytes()
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for spanId.
|
public String getTraceId()
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Returns |
---|
Type | Description |
String | The traceId.
|
public ByteString getTraceIdBytes()
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for traceId.
|
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;
public int getTypeValue()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for type.
|
public boolean hasAttributes()
A set of attributes on the link. Up to 32 attributes can be
specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Returns |
---|
Type | Description |
boolean | Whether the attributes field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Span.Link.Builder newBuilderForType()
protected Span.Link.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Span.Link.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides