Class Span.TimeEvent (2.1.13)

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
TypeDescription
int

MESSAGE_EVENT_FIELD_NUMBER

public static final int MESSAGE_EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_FIELD_NUMBER

public static final int TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Span.TimeEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Span.TimeEvent.AnnotationOrBuilder

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTime()

public Timestamp getTime()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
TypeDescription
Timestamp

The time.

getTimeOrBuilder()

public TimestampOrBuilder getTimeOrBuilder()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
TypeDescription
TimestampOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValueCase()

public Span.TimeEvent.ValueCase getValueCase()
Returns
TypeDescription
Span.TimeEvent.ValueCase

hasAnnotation()

public boolean hasAnnotation()

Text annotation with a set of attributes.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the time field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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