Class Span.TimeEvent.Annotation (2.33.0)

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

Text annotation with a set of attributes.

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

Static Fields

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Span.TimeEvent.Annotation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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