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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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>
|
public Span.TimeEvents.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Span.TimeEvents.Builder addTimeEvent(Span.TimeEvent value)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
public Span.TimeEvents.Builder addTimeEvent(Span.TimeEvent.Builder builderForValue)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
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;
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;
public Span.TimeEvent.Builder addTimeEventBuilder()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
public Span.TimeEvent.Builder addTimeEventBuilder(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter |
---|
Name | Description |
index | int
|
public Span.TimeEvents build()
public Span.TimeEvents buildPartial()
public Span.TimeEvents.Builder clear()
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;
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;
public Span.TimeEvents.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Span.TimeEvents.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Span.TimeEvents.Builder clearTimeEvent()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
public Span.TimeEvents.Builder clone()
Overrides
public Span.TimeEvents getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
public Span.TimeEvent.Builder getTimeEventBuilder(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<Span.TimeEvent.Builder> getTimeEventBuilderList()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
public int getTimeEventCount()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Returns |
---|
Type | Description |
int | |
public List<Span.TimeEvent> getTimeEventList()
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
public Span.TimeEventOrBuilder getTimeEventOrBuilder(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter |
---|
Name | Description |
index | int
|
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()
Overrides
public final boolean isInitialized()
Overrides
public Span.TimeEvents.Builder mergeFrom(Span.TimeEvents other)
public Span.TimeEvents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Span.TimeEvents.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Span.TimeEvents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Span.TimeEvents.Builder removeTimeEvent(int index)
A collection of TimeEvent
s.
repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
Parameter |
---|
Name | Description |
index | int
|
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.
|
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.
|
public Span.TimeEvents.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Span.TimeEvents.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
public final Span.TimeEvents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides