Class Span.TimeEvent (2.46.0)

public static final class Span.TimeEvent extends GeneratedMessageV3 implements Span.TimeEventOrBuilder

A time-stamped annotation or message event in the Span.

Protobuf type google.devtools.cloudtrace.v2.Span.TimeEvent

Static Fields

ANNOTATION_FIELD_NUMBER

public static final int ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_EVENT_FIELD_NUMBER

public static final int MESSAGE_EVENT_FIELD_NUMBER
Field Value
Type Description
int

TIME_FIELD_NUMBER

public static final int TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Span.TimeEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAnnotation()

public Span.TimeEvent.Annotation getAnnotation()

Text annotation with a set of attributes.

.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation annotation = 2;

Returns
Type Description
Span.TimeEvent.Annotation

The annotation.

getAnnotationOrBuilder()

public Span.TimeEvent.AnnotationOrBuilder getAnnotationOrBuilder()

Text annotation with a set of attributes.

.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation annotation = 2;

Returns
Type Description
Span.TimeEvent.AnnotationOrBuilder

getDefaultInstanceForType()

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

getMessageEvent()

public Span.TimeEvent.MessageEvent getMessageEvent()

An event describing a message sent/received between Spans.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent message_event = 3;

Returns
Type Description
Span.TimeEvent.MessageEvent

The messageEvent.

getMessageEventOrBuilder()

public Span.TimeEvent.MessageEventOrBuilder getMessageEventOrBuilder()

An event describing a message sent/received between Spans.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent message_event = 3;

Returns
Type Description
Span.TimeEvent.MessageEventOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTime()

public Timestamp getTime()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
Type Description
Timestamp

The time.

getTimeOrBuilder()

public TimestampOrBuilder getTimeOrBuilder()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
Type Description
TimestampOrBuilder

getValueCase()

public Span.TimeEvent.ValueCase getValueCase()
Returns
Type Description
Span.TimeEvent.ValueCase

hasAnnotation()

public boolean hasAnnotation()

Text annotation with a set of attributes.

.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation annotation = 2;

Returns
Type Description
boolean

Whether the annotation field is set.

hasMessageEvent()

public boolean hasMessageEvent()

An event describing a message sent/received between Spans.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent message_event = 3;

Returns
Type Description
boolean

Whether the messageEvent field is set.

hasTime()

public boolean hasTime()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
Type Description
boolean

Whether the time field is set.

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.TimeEvent.Builder newBuilderForType()
Returns
Type Description
Span.TimeEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Span.TimeEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Span.TimeEvent.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.TimeEvent.Builder toBuilder()
Returns
Type Description
Span.TimeEvent.Builder

writeTo(CodedOutputStream output)

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