Class Span.Links.Builder (2.21.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.devtools.cloudtrace.v2.Span.Link>
Returns
TypeDescription
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
NameDescription
valueSpan.Link
Returns
TypeDescription
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
NameDescription
builderForValueSpan.Link.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSpan.Link
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpan.Link.Builder
Returns
TypeDescription
Span.Links.Builder
public Span.Link.Builder addLinkBuilder()

A collection of links.

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

Returns
TypeDescription
Span.Link.Builder
public Span.Link.Builder addLinkBuilder(int index)

A collection of links.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Span.Link.Builder
public Span.Links.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Span.Links.Builder
Overrides
public Span.Links build()
Returns
TypeDescription
Span.Links
public Span.Links buildPartial()
Returns
TypeDescription
Span.Links
public Span.Links.Builder clear()
Returns
TypeDescription
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
TypeDescription
Span.Links.Builder

This builder for chaining.

public Span.Links.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Span.Links.Builder
Overrides
public Span.Links.Builder clearLink()

A collection of links.

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

Returns
TypeDescription
Span.Links.Builder
public Span.Links.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Span.Links.Builder
Overrides
public Span.Links.Builder clone()
Returns
TypeDescription
Span.Links.Builder
Overrides
public Span.Links getDefaultInstanceForType()
Returns
TypeDescription
Span.Links
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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 Span.Link.Builder getLinkBuilder(int index)

A collection of links.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Span.Link.Builder
public List<Span.Link.Builder> getLinkBuilderList()

A collection of links.

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

Returns
TypeDescription
List<Builder>
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>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public Span.Links.Builder mergeFrom(Span.Links other)
Parameter
NameDescription
otherSpan.Links
Returns
TypeDescription
Span.Links.Builder
public Span.Links.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.Links.Builder
Overrides
Exceptions
TypeDescription
IOException
public Span.Links.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Span.Links.Builder
Overrides
public final Span.Links.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueint

The droppedLinksCount to set.

Returns
TypeDescription
Span.Links.Builder

This builder for chaining.

public Span.Links.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSpan.Link
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpan.Link.Builder
Returns
TypeDescription
Span.Links.Builder
public Span.Links.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Span.Links.Builder
Overrides
public final Span.Links.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Span.Links.Builder
Overrides