Class Span.TimeEvents.Builder (2.43.0)

public static final class Span.TimeEvents.Builder extends GeneratedMessageV3.Builder<Span.TimeEvents.Builder> implements Span.TimeEventsOrBuilder

A collection of TimeEvents. A TimeEvent is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans.

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

Static Methods

getDescriptor()

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

Methods

addAllTimeEvent(Iterable<? extends Span.TimeEvent> values)

public Span.TimeEvents.Builder addAllTimeEvent(Iterable<? extends Span.TimeEvent> values)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
values Iterable<? extends com.google.devtools.cloudtrace.v2.Span.TimeEvent>
Returns
Type Description
Span.TimeEvents.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvents.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.TimeEvents.Builder
Overrides

addTimeEvent(Span.TimeEvent value)

public Span.TimeEvents.Builder addTimeEvent(Span.TimeEvent value)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
value Span.TimeEvent
Returns
Type Description
Span.TimeEvents.Builder

addTimeEvent(Span.TimeEvent.Builder builderForValue)

public Span.TimeEvents.Builder addTimeEvent(Span.TimeEvent.Builder builderForValue)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

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

addTimeEvent(int index, Span.TimeEvent value)

public Span.TimeEvents.Builder addTimeEvent(int index, Span.TimeEvent value)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

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

addTimeEvent(int index, Span.TimeEvent.Builder builderForValue)

public Span.TimeEvents.Builder addTimeEvent(int index, Span.TimeEvent.Builder builderForValue)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

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

addTimeEventBuilder()

public Span.TimeEvent.Builder addTimeEventBuilder()

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
Type Description
Span.TimeEvent.Builder

addTimeEventBuilder(int index)

public Span.TimeEvent.Builder addTimeEventBuilder(int index)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.TimeEvent.Builder

build()

public Span.TimeEvents build()
Returns
Type Description
Span.TimeEvents

buildPartial()

public Span.TimeEvents buildPartial()
Returns
Type Description
Span.TimeEvents

clear()

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

clearDroppedAnnotationsCount()

public Span.TimeEvents.Builder clearDroppedAnnotationsCount()

The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.

int32 dropped_annotations_count = 2;

Returns
Type Description
Span.TimeEvents.Builder

This builder for chaining.

clearDroppedMessageEventsCount()

public Span.TimeEvents.Builder clearDroppedMessageEventsCount()

The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.

int32 dropped_message_events_count = 3;

Returns
Type Description
Span.TimeEvents.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Span.TimeEvents.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Span.TimeEvents.Builder
Overrides

clearTimeEvent()

public Span.TimeEvents.Builder clearTimeEvent()

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
Type Description
Span.TimeEvents.Builder

clone()

public Span.TimeEvents.Builder clone()
Returns
Type Description
Span.TimeEvents.Builder
Overrides

getDefaultInstanceForType()

public Span.TimeEvents getDefaultInstanceForType()
Returns
Type Description
Span.TimeEvents

getDescriptorForType()

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

getDroppedAnnotationsCount()

public int getDroppedAnnotationsCount()

The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.

int32 dropped_annotations_count = 2;

Returns
Type Description
int

The droppedAnnotationsCount.

getDroppedMessageEventsCount()

public int getDroppedMessageEventsCount()

The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.

int32 dropped_message_events_count = 3;

Returns
Type Description
int

The droppedMessageEventsCount.

getTimeEvent(int index)

public Span.TimeEvent getTimeEvent(int index)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.TimeEvent

getTimeEventBuilder(int index)

public Span.TimeEvent.Builder getTimeEventBuilder(int index)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.TimeEvent.Builder

getTimeEventBuilderList()

public List<Span.TimeEvent.Builder> getTimeEventBuilderList()

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
Type Description
List<Builder>

getTimeEventCount()

public int getTimeEventCount()

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
Type Description
int

getTimeEventList()

public List<Span.TimeEvent> getTimeEventList()

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
Type Description
List<TimeEvent>

getTimeEventOrBuilder(int index)

public Span.TimeEventOrBuilder getTimeEventOrBuilder(int index)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.TimeEventOrBuilder

getTimeEventOrBuilderList()

public List<? extends Span.TimeEventOrBuilder> getTimeEventOrBuilderList()

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
Type Description
List<? extends com.google.devtools.cloudtrace.v2.Span.TimeEventOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Span.TimeEvents other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.TimeEvents.Builder
Overrides

removeTimeEvent(int index)

public Span.TimeEvents.Builder removeTimeEvent(int index)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
Name Description
index int
Returns
Type Description
Span.TimeEvents.Builder

setDroppedAnnotationsCount(int value)

public Span.TimeEvents.Builder setDroppedAnnotationsCount(int value)

The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.

int32 dropped_annotations_count = 2;

Parameter
Name Description
value int

The droppedAnnotationsCount to set.

Returns
Type Description
Span.TimeEvents.Builder

This builder for chaining.

setDroppedMessageEventsCount(int value)

public Span.TimeEvents.Builder setDroppedMessageEventsCount(int value)

The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.

int32 dropped_message_events_count = 3;

Parameter
Name Description
value int

The droppedMessageEventsCount to set.

Returns
Type Description
Span.TimeEvents.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvents.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.TimeEvents.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Span.TimeEvents.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Span.TimeEvents.Builder
Overrides

setTimeEvent(int index, Span.TimeEvent value)

public Span.TimeEvents.Builder setTimeEvent(int index, Span.TimeEvent value)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

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

setTimeEvent(int index, Span.TimeEvent.Builder builderForValue)

public Span.TimeEvents.Builder setTimeEvent(int index, Span.TimeEvent.Builder builderForValue)

A collection of TimeEvents.

repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.TimeEvents.Builder
Overrides