Class Span.TimeEvents.Builder (2.32.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.devtools.cloudtrace.v2.Span.TimeEvent>
Returns
TypeDescription
Span.TimeEvents.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvents.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSpan.TimeEvent
Returns
TypeDescription
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
NameDescription
builderForValueSpan.TimeEvent.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSpan.TimeEvent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpan.TimeEvent.Builder
Returns
TypeDescription
Span.TimeEvents.Builder

addTimeEventBuilder()

public Span.TimeEvent.Builder addTimeEventBuilder()

A collection of TimeEvents.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Span.TimeEvent.Builder

build()

public Span.TimeEvents build()
Returns
TypeDescription
Span.TimeEvents

buildPartial()

public Span.TimeEvents buildPartial()
Returns
TypeDescription
Span.TimeEvents

clear()

public Span.TimeEvents.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Span.TimeEvents.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Span.TimeEvents.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Span.TimeEvents.Builder

clone()

public Span.TimeEvents.Builder clone()
Returns
TypeDescription
Span.TimeEvents.Builder
Overrides

getDefaultInstanceForType()

public Span.TimeEvents getDefaultInstanceForType()
Returns
TypeDescription
Span.TimeEvents

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getTimeEventCount()

public int getTimeEventCount()

A collection of TimeEvents.

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

Returns
TypeDescription
int

getTimeEventList()

public List<Span.TimeEvent> getTimeEventList()

A collection of TimeEvents.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Span.TimeEventOrBuilder

getTimeEventOrBuilderList()

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

A collection of TimeEvents.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Span.TimeEvents other)

public Span.TimeEvents.Builder mergeFrom(Span.TimeEvents other)
Parameter
NameDescription
otherSpan.TimeEvents
Returns
TypeDescription
Span.TimeEvents.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Span.TimeEvents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Span.TimeEvents.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Span.TimeEvents.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueint

The droppedAnnotationsCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The droppedMessageEventsCount to set.

Returns
TypeDescription
Span.TimeEvents.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvents.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSpan.TimeEvent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpan.TimeEvent.Builder
Returns
TypeDescription
Span.TimeEvents.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Span.TimeEvents.Builder
Overrides