Class Span.TimeEvents (2.49.0)

public static final class Span.TimeEvents extends GeneratedMessageV3 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 Fields

DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER

public static final int DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER
Field Value
Type Description
int

DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER

public static final int DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TIME_EVENT_FIELD_NUMBER

public static final int TIME_EVENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Span.TimeEvents getDefaultInstance()
Returns
Type Description
Span.TimeEvents

getDescriptor()

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

newBuilder()

public static Span.TimeEvents.Builder newBuilder()
Returns
Type Description
Span.TimeEvents.Builder

newBuilder(Span.TimeEvents prototype)

public static Span.TimeEvents.Builder newBuilder(Span.TimeEvents prototype)
Parameter
Name Description
prototype Span.TimeEvents
Returns
Type Description
Span.TimeEvents.Builder

parseDelimitedFrom(InputStream input)

public static Span.TimeEvents parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Span.TimeEvents parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Span.TimeEvents parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Span.TimeEvents parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Span.TimeEvents parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Span.TimeEvents parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvents
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Span.TimeEvents> parser()
Returns
Type Description
Parser<TimeEvents>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Span.TimeEvents> getParserForType()
Returns
Type Description
Parser<TimeEvents>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Span.TimeEvents.Builder newBuilderForType()
Returns
Type Description
Span.TimeEvents.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Span.TimeEvents.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Span.TimeEvents.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Span.TimeEvents.Builder toBuilder()
Returns
Type Description
Span.TimeEvents.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException