Class Span.TimeEvent.Annotation.Builder (2.3.7)

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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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 Overrides

build()

public Span.TimeEvent.Annotation build()
Returns

buildPartial()

public Span.TimeEvent.Annotation buildPartial()
Returns

clear()

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

getDefaultInstanceForType()

public Span.TimeEvent.Annotation getDefaultInstanceForType()
Returns

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

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

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

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

mergeFrom(Span.TimeEvent.Annotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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