Class Span.TimeEvent.Annotation.Builder (2.45.0)

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

Text annotation with a set of attributes.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.Annotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

build()

public Span.TimeEvent.Annotation build()
Returns
Type Description
Span.TimeEvent.Annotation

buildPartial()

public Span.TimeEvent.Annotation buildPartial()
Returns
Type Description
Span.TimeEvent.Annotation

clear()

public Span.TimeEvent.Annotation.Builder clear()
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

clearAttributes()

public Span.TimeEvent.Annotation.Builder clearAttributes()

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Returns
Type Description
Span.TimeEvent.Annotation.Builder

clearDescription()

public Span.TimeEvent.Annotation.Builder clearDescription()

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Returns
Type Description
Span.TimeEvent.Annotation.Builder

clearField(Descriptors.FieldDescriptor field)

public Span.TimeEvent.Annotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Span.TimeEvent.Annotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

clone()

public Span.TimeEvent.Annotation.Builder clone()
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

getAttributes()

public Span.Attributes getAttributes()

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Returns
Type Description
Span.Attributes

The attributes.

getAttributesBuilder()

public Span.Attributes.Builder getAttributesBuilder()

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Returns
Type Description
Span.Attributes.Builder

getAttributesOrBuilder()

public Span.AttributesOrBuilder getAttributesOrBuilder()

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Returns
Type Description
Span.AttributesOrBuilder

getDefaultInstanceForType()

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

getDescription()

public TruncatableString getDescription()

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Returns
Type Description
TruncatableString

The description.

getDescriptionBuilder()

public TruncatableString.Builder getDescriptionBuilder()

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Returns
Type Description
TruncatableString.Builder

getDescriptionOrBuilder()

public TruncatableStringOrBuilder getDescriptionOrBuilder()

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Returns
Type Description
TruncatableStringOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAttributes()

public boolean hasAttributes()

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Returns
Type Description
boolean

Whether the attributes field is set.

hasDescription()

public boolean hasDescription()

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Returns
Type Description
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttributes(Span.Attributes value)

public Span.TimeEvent.Annotation.Builder mergeAttributes(Span.Attributes value)

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Parameter
Name Description
value Span.Attributes
Returns
Type Description
Span.TimeEvent.Annotation.Builder

mergeDescription(TruncatableString value)

public Span.TimeEvent.Annotation.Builder mergeDescription(TruncatableString value)

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Parameter
Name Description
value TruncatableString
Returns
Type Description
Span.TimeEvent.Annotation.Builder

mergeFrom(Span.TimeEvent.Annotation other)

public Span.TimeEvent.Annotation.Builder mergeFrom(Span.TimeEvent.Annotation other)
Parameter
Name Description
other Span.TimeEvent.Annotation
Returns
Type Description
Span.TimeEvent.Annotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Span.TimeEvent.Annotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Span.TimeEvent.Annotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.Annotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

setAttributes(Span.Attributes value)

public Span.TimeEvent.Annotation.Builder setAttributes(Span.Attributes value)

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Parameter
Name Description
value Span.Attributes
Returns
Type Description
Span.TimeEvent.Annotation.Builder

setAttributes(Span.Attributes.Builder builderForValue)

public Span.TimeEvent.Annotation.Builder setAttributes(Span.Attributes.Builder builderForValue)

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;

Parameter
Name Description
builderForValue Span.Attributes.Builder
Returns
Type Description
Span.TimeEvent.Annotation.Builder

setDescription(TruncatableString value)

public Span.TimeEvent.Annotation.Builder setDescription(TruncatableString value)

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Parameter
Name Description
value TruncatableString
Returns
Type Description
Span.TimeEvent.Annotation.Builder

setDescription(TruncatableString.Builder builderForValue)

public Span.TimeEvent.Annotation.Builder setDescription(TruncatableString.Builder builderForValue)

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

.google.devtools.cloudtrace.v2.TruncatableString description = 1;

Parameter
Name Description
builderForValue TruncatableString.Builder
Returns
Type Description
Span.TimeEvent.Annotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.Annotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

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

public Span.TimeEvent.Annotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.Annotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.TimeEvent.Annotation.Builder
Overrides