Class Span.TimeEvents (2.40.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
TypeDescription
int

DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER

public static final int DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_EVENT_FIELD_NUMBER

public static final int TIME_EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Span.TimeEvents getDefaultInstance()
Returns
TypeDescription
Span.TimeEvents

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Span.TimeEvents.Builder newBuilder()
Returns
TypeDescription
Span.TimeEvents.Builder

newBuilder(Span.TimeEvents prototype)

public static Span.TimeEvents.Builder newBuilder(Span.TimeEvents prototype)
Parameter
NameDescription
prototypeSpan.TimeEvents
Returns
TypeDescription
Span.TimeEvents.Builder

parseDelimitedFrom(InputStream input)

public static Span.TimeEvents parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Span.TimeEvents parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Span.TimeEvents parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Span.TimeEvents parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Span.TimeEvents parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Span.TimeEvents parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvents parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvents
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Span.TimeEvent

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>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Span.TimeEvents.Builder newBuilderForType()
Returns
TypeDescription
Span.TimeEvents.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Span.TimeEvents.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Span.TimeEvents.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Span.TimeEvents.Builder toBuilder()
Returns
TypeDescription
Span.TimeEvents.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException