Send feedback
Class Span.Link (2.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.5.0 keyboard_arrow_down
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
Static Fields
public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
public static final int SPAN_ID_FIELD_NUMBER
Field Value
public static final int TRACE_ID_FIELD_NUMBER
Field Value
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
public static Span . Link getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static Span . Link . Builder newBuilder ()
Returns
public static Span . Link . Builder newBuilder ( Span . Link prototype )
Parameter
Returns
public static Span . Link parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Span . Link parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Span . Link parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
public static Span . Link parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Span . Link parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static Span . Link parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Span . Link parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static Span . Link parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Span . Link parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Span . Link parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Span . Link parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static Span . Link parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<Span . Link > parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
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;
Returns
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;
Returns
public Span . Link getDefaultInstanceForType ()
Returns
public Parser<Span . Link > getParserForType ()
Returns
Overrides
public int getSerializedSize ()
Returns
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
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
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;
Returns
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 final UnknownFieldSet getUnknownFields ()
Returns
Overrides
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;
Returns
Type Description boolean Whether the attributes field is set.
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public Span . Link . Builder newBuilderForType ()
Returns
protected Span . Link . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public Span . Link . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]