public static final class Span.TimeEvents.Builder extends GeneratedMessageV3.Builder<Span.TimeEvents.Builder> implements Span.TimeEventsOrBuilder
A collection of TimeEvent
s. 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Span.TimeEvents.Builder addAllTimeEvent(Iterable<? extends Span.TimeEvent> values)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.devtools.cloudtrace.v2.Span.TimeEvent>
|
Returns
public Span.TimeEvents.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Span.TimeEvents.Builder addTimeEvent(Span.TimeEvent value)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
public Span.TimeEvents.Builder addTimeEvent(Span.TimeEvent.Builder builderForValue)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
public Span.TimeEvents.Builder addTimeEvent(int index, Span.TimeEvent value)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameters
Returns
public Span.TimeEvents.Builder addTimeEvent(int index, Span.TimeEvent.Builder builderForValue)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameters
Returns
public Span.TimeEvent.Builder addTimeEventBuilder()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns
public Span.TimeEvent.Builder addTimeEventBuilder(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
public Span.TimeEvents build()
Returns
public Span.TimeEvents buildPartial()
Returns
public Span.TimeEvents.Builder clear()
Returns
Overrides
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
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
public Span.TimeEvents.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Span.TimeEvents.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Span.TimeEvents.Builder clearTimeEvent()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns
public Span.TimeEvents.Builder clone()
Returns
Overrides
public Span.TimeEvents getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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.
|
public Span.TimeEvent getTimeEvent(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
public Span.TimeEvent.Builder getTimeEventBuilder(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
public List<Span.TimeEvent.Builder> getTimeEventBuilderList()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns
public int getTimeEventCount()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns
public List<Span.TimeEvent> getTimeEventList()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns
public Span.TimeEventOrBuilder getTimeEventOrBuilder(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
public List<? extends Span.TimeEventOrBuilder> getTimeEventOrBuilderList()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns
Type | Description |
List<? extends com.google.devtools.cloudtrace.v2.Span.TimeEventOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Span.TimeEvents.Builder mergeFrom(Span.TimeEvents other)
Parameter
Returns
public Span.TimeEvents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Span.TimeEvents.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Span.TimeEvents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Span.TimeEvents.Builder removeTimeEvent(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter
Returns
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
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
public Span.TimeEvents.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Span.TimeEvents.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public Span.TimeEvents.Builder setTimeEvent(int index, Span.TimeEvent value)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameters
Returns
public Span.TimeEvents.Builder setTimeEvent(int index, Span.TimeEvent.Builder builderForValue)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameters
Returns
public final Span.TimeEvents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides