Class Span.Links (2.46.0)

public static final class Span.Links extends GeneratedMessageV3 implements Span.LinksOrBuilder

A collection of links, which are references from this span to a span in the same or different trace.

Protobuf type google.devtools.cloudtrace.v2.Span.Links

Implements

Span.LinksOrBuilder

Static Fields

public static final int DROPPED_LINKS_COUNT_FIELD_NUMBER
Field Value
Type Description
int
public static final int LINK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static Span.Links getDefaultInstance()
Returns
Type Description
Span.Links
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static Span.Links.Builder newBuilder()
Returns
Type Description
Span.Links.Builder
public static Span.Links.Builder newBuilder(Span.Links prototype)
Parameter
Name Description
prototype Span.Links
Returns
Type Description
Span.Links.Builder
public static Span.Links parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Span.Links
Exceptions
Type Description
IOException
public static Span.Links parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links
Exceptions
Type Description
IOException
public static Span.Links parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Span.Links
Exceptions
Type Description
InvalidProtocolBufferException
public static Span.Links parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links
Exceptions
Type Description
InvalidProtocolBufferException
public static Span.Links parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Span.Links
Exceptions
Type Description
InvalidProtocolBufferException
public static Span.Links parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links
Exceptions
Type Description
InvalidProtocolBufferException
public static Span.Links parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Span.Links
Exceptions
Type Description
IOException
public static Span.Links parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links
Exceptions
Type Description
IOException
public static Span.Links parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Span.Links
Exceptions
Type Description
IOException
public static Span.Links parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links
Exceptions
Type Description
IOException
public static Span.Links parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Span.Links
Exceptions
Type Description
InvalidProtocolBufferException
public static Span.Links parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<Span.Links> parser()
Returns
Type Description
Parser<Links>

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides
public Span.Links getDefaultInstanceForType()
Returns
Type Description
Span.Links
public int getDroppedLinksCount()

The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped.

int32 dropped_links_count = 2;

Returns
Type Description
int

The droppedLinksCount.

public Span.Link getLink(int index)

A collection of links.

repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.Link
public int getLinkCount()

A collection of links.

repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;

Returns
Type Description
int
public List<Span.Link> getLinkList()

A collection of links.

repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;

Returns
Type Description
List<Link>
public Span.LinkOrBuilder getLinkOrBuilder(int index)

A collection of links.

repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.LinkOrBuilder
public List<? extends Span.LinkOrBuilder> getLinkOrBuilderList()

A collection of links.

repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;

Returns
Type Description
List<? extends com.google.devtools.cloudtrace.v2.Span.LinkOrBuilder>
public Parser<Span.Links> getParserForType()
Returns
Type Description
Parser<Links>
Overrides
public int getSerializedSize()
Returns
Type Description
int
Overrides
public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Span.Links.Builder newBuilderForType()
Returns
Type Description
Span.Links.Builder
protected Span.Links.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Span.Links.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public Span.Links.Builder toBuilder()
Returns
Type Description
Span.Links.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException