Class Span.TimeEvent.Builder (2.23.0)

public static final class Span.TimeEvent.Builder extends GeneratedMessageV3.Builder<Span.TimeEvent.Builder> implements Span.TimeEventOrBuilder

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

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

build()

public Span.TimeEvent build()
Returns
TypeDescription
Span.TimeEvent

buildPartial()

public Span.TimeEvent buildPartial()
Returns
TypeDescription
Span.TimeEvent

clear()

public Span.TimeEvent.Builder clear()
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

clearAnnotation()

public Span.TimeEvent.Builder clearAnnotation()

Text annotation with a set of attributes.

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

Returns
TypeDescription
Span.TimeEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public Span.TimeEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

clearMessageEvent()

public Span.TimeEvent.Builder clearMessageEvent()

An event describing a message sent/received between Spans.

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

Returns
TypeDescription
Span.TimeEvent.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Span.TimeEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

clearTime()

public Span.TimeEvent.Builder clearTime()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
TypeDescription
Span.TimeEvent.Builder

clearValue()

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

clone()

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

getAnnotationBuilder()

public Span.TimeEvent.Annotation.Builder getAnnotationBuilder()

Text annotation with a set of attributes.

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

Returns
TypeDescription
Span.TimeEvent.Annotation.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getMessageEventBuilder()

public Span.TimeEvent.MessageEvent.Builder getMessageEventBuilder()

An event describing a message sent/received between Spans.

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

Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

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

getTime()

public Timestamp getTime()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
TypeDescription
Timestamp

The time.

getTimeBuilder()

public Timestamp.Builder getTimeBuilder()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
TypeDescription
Builder

getTimeOrBuilder()

public TimestampOrBuilder getTimeOrBuilder()

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Returns
TypeDescription
TimestampOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnnotation(Span.TimeEvent.Annotation value)

public Span.TimeEvent.Builder mergeAnnotation(Span.TimeEvent.Annotation value)

Text annotation with a set of attributes.

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

Parameter
NameDescription
valueSpan.TimeEvent.Annotation
Returns
TypeDescription
Span.TimeEvent.Builder

mergeFrom(Span.TimeEvent other)

public Span.TimeEvent.Builder mergeFrom(Span.TimeEvent other)
Parameter
NameDescription
otherSpan.TimeEvent
Returns
TypeDescription
Span.TimeEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Span.TimeEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Span.TimeEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

mergeMessageEvent(Span.TimeEvent.MessageEvent value)

public Span.TimeEvent.Builder mergeMessageEvent(Span.TimeEvent.MessageEvent value)

An event describing a message sent/received between Spans.

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

Parameter
NameDescription
valueSpan.TimeEvent.MessageEvent
Returns
TypeDescription
Span.TimeEvent.Builder

mergeTime(Timestamp value)

public Span.TimeEvent.Builder mergeTime(Timestamp value)

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Span.TimeEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

setAnnotation(Span.TimeEvent.Annotation value)

public Span.TimeEvent.Builder setAnnotation(Span.TimeEvent.Annotation value)

Text annotation with a set of attributes.

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

Parameter
NameDescription
valueSpan.TimeEvent.Annotation
Returns
TypeDescription
Span.TimeEvent.Builder

setAnnotation(Span.TimeEvent.Annotation.Builder builderForValue)

public Span.TimeEvent.Builder setAnnotation(Span.TimeEvent.Annotation.Builder builderForValue)

Text annotation with a set of attributes.

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

Parameter
NameDescription
builderForValueSpan.TimeEvent.Annotation.Builder
Returns
TypeDescription
Span.TimeEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

setMessageEvent(Span.TimeEvent.MessageEvent value)

public Span.TimeEvent.Builder setMessageEvent(Span.TimeEvent.MessageEvent value)

An event describing a message sent/received between Spans.

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

Parameter
NameDescription
valueSpan.TimeEvent.MessageEvent
Returns
TypeDescription
Span.TimeEvent.Builder

setMessageEvent(Span.TimeEvent.MessageEvent.Builder builderForValue)

public Span.TimeEvent.Builder setMessageEvent(Span.TimeEvent.MessageEvent.Builder builderForValue)

An event describing a message sent/received between Spans.

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

Parameter
NameDescription
builderForValueSpan.TimeEvent.MessageEvent.Builder
Returns
TypeDescription
Span.TimeEvent.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Span.TimeEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides

setTime(Timestamp value)

public Span.TimeEvent.Builder setTime(Timestamp value)

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Span.TimeEvent.Builder

setTime(Timestamp.Builder builderForValue)

public Span.TimeEvent.Builder setTime(Timestamp.Builder builderForValue)

The timestamp indicating the time the event occurred.

.google.protobuf.Timestamp time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Span.TimeEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Span.TimeEvent.Builder
Overrides