Class Span.Links.Builder (2.45.0)

public static final class Span.Links.Builder extends GeneratedMessageV3.Builder<Span.Links.Builder> 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 Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

public Span.Links.Builder addAllLink(Iterable<? extends Span.Link> values)

A collection of links.

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

Parameter
Name Description
values Iterable<? extends com.google.devtools.cloudtrace.v2.Span.Link>
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder addLink(Span.Link value)

A collection of links.

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

Parameter
Name Description
value Span.Link
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder addLink(Span.Link.Builder builderForValue)

A collection of links.

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

Parameter
Name Description
builderForValue Span.Link.Builder
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder addLink(int index, Span.Link value)

A collection of links.

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

Parameters
Name Description
index int
value Span.Link
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder addLink(int index, Span.Link.Builder builderForValue)

A collection of links.

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

Parameters
Name Description
index int
builderForValue Span.Link.Builder
Returns
Type Description
Span.Links.Builder
public Span.Link.Builder addLinkBuilder()

A collection of links.

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

Returns
Type Description
Span.Link.Builder
public Span.Link.Builder addLinkBuilder(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.Builder
public Span.Links.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links build()
Returns
Type Description
Span.Links
public Span.Links buildPartial()
Returns
Type Description
Span.Links
public Span.Links.Builder clear()
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links.Builder clearDroppedLinksCount()

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
Span.Links.Builder

This builder for chaining.

public Span.Links.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links.Builder clearLink()

A collection of links.

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

Returns
Type Description
Span.Links.Builder
public Span.Links.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links.Builder clone()
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links getDefaultInstanceForType()
Returns
Type Description
Span.Links
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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 Span.Link.Builder getLinkBuilder(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.Builder
public List<Span.Link.Builder> getLinkBuilderList()

A collection of links.

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

Returns
Type Description
List<Builder>
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>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Span.Links.Builder mergeFrom(Span.Links other)
Parameter
Name Description
other Span.Links
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Links.Builder
Overrides
Exceptions
Type Description
IOException
public Span.Links.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Span.Links.Builder
Overrides
public final Span.Links.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links.Builder removeLink(int index)

A collection of links.

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

Parameter
Name Description
index int
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder setDroppedLinksCount(int value)

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;

Parameter
Name Description
value int

The droppedLinksCount to set.

Returns
Type Description
Span.Links.Builder

This builder for chaining.

public Span.Links.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.Links.Builder
Overrides
public Span.Links.Builder setLink(int index, Span.Link value)

A collection of links.

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

Parameters
Name Description
index int
value Span.Link
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder setLink(int index, Span.Link.Builder builderForValue)

A collection of links.

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

Parameters
Name Description
index int
builderForValue Span.Link.Builder
Returns
Type Description
Span.Links.Builder
public Span.Links.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Span.Links.Builder
Overrides
public final Span.Links.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.Links.Builder
Overrides