Class Span.Builder (0.1.0)

public static final class Span.Builder extends GeneratedMessage.Builder<Span.Builder> implements SpanOrBuilder

A span is a unit of work or a single operation during the request processing.

Protobuf type google.cloud.ces.v1.Span

Implements

SpanOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllChildSpans(Iterable<? extends Span> values)

public Span.Builder addAllChildSpans(Iterable<? extends Span> values)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1.Span>
Returns
Type Description
Span.Builder

addChildSpans(Span value)

public Span.Builder addChildSpans(Span value)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Span
Returns
Type Description
Span.Builder

addChildSpans(Span.Builder builderForValue)

public Span.Builder addChildSpans(Span.Builder builderForValue)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Span.Builder
Returns
Type Description
Span.Builder

addChildSpans(int index, Span value)

public Span.Builder addChildSpans(int index, Span value)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Span
Returns
Type Description
Span.Builder

addChildSpans(int index, Span.Builder builderForValue)

public Span.Builder addChildSpans(int index, Span.Builder builderForValue)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Span.Builder
Returns
Type Description
Span.Builder

addChildSpansBuilder()

public Span.Builder addChildSpansBuilder()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

addChildSpansBuilder(int index)

public Span.Builder addChildSpansBuilder(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Span.Builder

build()

public Span build()
Returns
Type Description
Span

buildPartial()

public Span buildPartial()
Returns
Type Description
Span

clear()

public Span.Builder clear()
Returns
Type Description
Span.Builder
Overrides

clearAttributes()

public Span.Builder clearAttributes()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

clearChildSpans()

public Span.Builder clearChildSpans()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

clearDuration()

public Span.Builder clearDuration()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

clearEndTime()

public Span.Builder clearEndTime()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

clearName()

public Span.Builder clearName()

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

This builder for chaining.

clearStartTime()

public Span.Builder clearStartTime()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Span.Builder

getAttributes()

public Struct getAttributes()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The attributes.

getAttributesBuilder()

public Struct.Builder getAttributesBuilder()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getAttributesOrBuilder()

public StructOrBuilder getAttributesOrBuilder()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

getChildSpans(int index)

public Span getChildSpans(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Span

getChildSpansBuilder(int index)

public Span.Builder getChildSpansBuilder(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Span.Builder

getChildSpansBuilderList()

public List<Span.Builder> getChildSpansBuilderList()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getChildSpansCount()

public int getChildSpansCount()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getChildSpansList()

public List<Span> getChildSpansList()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Span>

getChildSpansOrBuilder(int index)

public SpanOrBuilder getChildSpansOrBuilder(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SpanOrBuilder

getChildSpansOrBuilderList()

public List<? extends SpanOrBuilder> getChildSpansOrBuilderList()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1.SpanOrBuilder>

getDefaultInstanceForType()

public Span getDefaultInstanceForType()
Returns
Type Description
Span

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDuration()

public Duration getDuration()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAttributes()

public boolean hasAttributes()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the attributes field is set.

hasDuration()

public boolean hasDuration()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the duration field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttributes(Struct value)

public Span.Builder mergeAttributes(Struct value)

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
Span.Builder

mergeDuration(Duration value)

public Span.Builder mergeDuration(Duration value)

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
Span.Builder

mergeEndTime(Timestamp value)

public Span.Builder mergeEndTime(Timestamp value)

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Span.Builder

mergeFrom(Span other)

public Span.Builder mergeFrom(Span other)
Parameter
Name Description
other Span
Returns
Type Description
Span.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Span.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Span.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Span.Builder
Overrides

mergeStartTime(Timestamp value)

public Span.Builder mergeStartTime(Timestamp value)

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Span.Builder

removeChildSpans(int index)

public Span.Builder removeChildSpans(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Span.Builder

setAttributes(Struct value)

public Span.Builder setAttributes(Struct value)

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
Span.Builder

setAttributes(Struct.Builder builderForValue)

public Span.Builder setAttributes(Struct.Builder builderForValue)

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Span.Builder

setChildSpans(int index, Span value)

public Span.Builder setChildSpans(int index, Span value)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Span
Returns
Type Description
Span.Builder

setChildSpans(int index, Span.Builder builderForValue)

public Span.Builder setChildSpans(int index, Span.Builder builderForValue)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Span.Builder
Returns
Type Description
Span.Builder

setDuration(Duration value)

public Span.Builder setDuration(Duration value)

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
Span.Builder

setDuration(Duration.Builder builderForValue)

public Span.Builder setDuration(Duration.Builder builderForValue)

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Span.Builder

setEndTime(Timestamp value)

public Span.Builder setEndTime(Timestamp value)

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Span.Builder

setEndTime(Timestamp.Builder builderForValue)

public Span.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Span.Builder

setName(String value)

public Span.Builder setName(String value)

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Span.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Span.Builder setNameBytes(ByteString value)

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Span.Builder

This builder for chaining.

setStartTime(Timestamp value)

public Span.Builder setStartTime(Timestamp value)

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Span.Builder

setStartTime(Timestamp.Builder builderForValue)

public Span.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Span.Builder