Class Span.Links (2.29.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
TypeDescription
int
public static final int LINK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

public static Span.Links getDefaultInstance()
Returns
TypeDescription
Span.Links
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static Span.Links.Builder newBuilder()
Returns
TypeDescription
Span.Links.Builder
public static Span.Links.Builder newBuilder(Span.Links prototype)
Parameter
NameDescription
prototypeSpan.Links
Returns
TypeDescription
Span.Links.Builder
public static Span.Links parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
IOException
public static Span.Links parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
IOException
public static Span.Links parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Span.Links parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Span.Links parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Span.Links parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Span.Links parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
IOException
public static Span.Links parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
IOException
public static Span.Links parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
IOException
public static Span.Links parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
IOException
public static Span.Links parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Span.Links parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<Span.Links> parser()
Returns
TypeDescription
Parser<Links>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
public Span.Links getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
int

The droppedLinksCount.

public Span.Link getLink(int index)

A collection of links.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Span.Link
public int getLinkCount()

A collection of links.

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

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

A collection of links.

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

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

A collection of links.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Span.LinkOrBuilder
public List<? extends Span.LinkOrBuilder> getLinkOrBuilderList()

A collection of links.

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

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