Class Span.TimeEvent.Annotation.Builder (2.3.4)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueSpan.Attributes
Returns
TypeDescription
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
NameDescription
valueTruncatableString
Returns
TypeDescription
Span.TimeEvent.Annotation.Builder

mergeFrom(Span.TimeEvent.Annotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.Annotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueSpan.Attributes
Returns
TypeDescription
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
NameDescription
builderForValueSpan.Attributes.Builder
Returns
TypeDescription
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
NameDescription
valueTruncatableString
Returns
TypeDescription
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
NameDescription
builderForValueTruncatableString.Builder
Returns
TypeDescription
Span.TimeEvent.Annotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.Annotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Span.TimeEvent.Annotation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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