public static final class Span.Attributes extends GeneratedMessageV3 implements Span.AttributesOrBuilder
A set of attributes, each in the format `[KEY]:[VALUE]`.Protobuf type
google.devtools.cloudtrace.v2.Span.Attributes| Modifier and Type | Class and Description |
|---|---|
static class |
Span.Attributes.Builder
A set of attributes, each in the format `[KEY]:[VALUE]`.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTE_MAP_FIELD_NUMBER |
static int |
DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int ATTRIBUTE_MAP_FIELD_NUMBER
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public int getAttributeMapCount()
Span.AttributesOrBuilder
The set of attributes. Each attribute's key can be up to 128 bytes
long. The value can be a string up to 256 bytes, an integer, or the
Boolean values `true` and `false`. For example:
"/instance_id": "my-instance"
"/http/user_agent": ""
"/http/request_bytes": 300
"abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;getAttributeMapCount in interface Span.AttributesOrBuilderpublic boolean containsAttributeMap(java.lang.String key)
The set of attributes. Each attribute's key can be up to 128 bytes
long. The value can be a string up to 256 bytes, an integer, or the
Boolean values `true` and `false`. For example:
"/instance_id": "my-instance"
"/http/user_agent": ""
"/http/request_bytes": 300
"abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;containsAttributeMap in interface Span.AttributesOrBuilder@Deprecated public java.util.Map<java.lang.String,AttributeValue> getAttributeMap()
getAttributeMapMap() instead.getAttributeMap in interface Span.AttributesOrBuilderpublic java.util.Map<java.lang.String,AttributeValue> getAttributeMapMap()
The set of attributes. Each attribute's key can be up to 128 bytes
long. The value can be a string up to 256 bytes, an integer, or the
Boolean values `true` and `false`. For example:
"/instance_id": "my-instance"
"/http/user_agent": ""
"/http/request_bytes": 300
"abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;getAttributeMapMap in interface Span.AttributesOrBuilderpublic AttributeValue getAttributeMapOrDefault(java.lang.String key, AttributeValue defaultValue)
The set of attributes. Each attribute's key can be up to 128 bytes
long. The value can be a string up to 256 bytes, an integer, or the
Boolean values `true` and `false`. For example:
"/instance_id": "my-instance"
"/http/user_agent": ""
"/http/request_bytes": 300
"abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;getAttributeMapOrDefault in interface Span.AttributesOrBuilderpublic AttributeValue getAttributeMapOrThrow(java.lang.String key)
The set of attributes. Each attribute's key can be up to 128 bytes
long. The value can be a string up to 256 bytes, an integer, or the
Boolean values `true` and `false`. For example:
"/instance_id": "my-instance"
"/http/user_agent": ""
"/http/request_bytes": 300
"abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;getAttributeMapOrThrow in interface Span.AttributesOrBuilderpublic int getDroppedAttributesCount()
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid.
int32 dropped_attributes_count = 2;getDroppedAttributesCount in interface Span.AttributesOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Span.Attributes parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Attributes parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Attributes parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Attributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Attributes parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Attributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Span.Attributes parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Attributes parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Span.Attributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Attributes parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Span.Attributes parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Span.Attributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Span.Attributes.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Span.Attributes.Builder newBuilder()
public static Span.Attributes.Builder newBuilder(Span.Attributes prototype)
public Span.Attributes.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Span.Attributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Span.Attributes getDefaultInstance()
public static Parser<Span.Attributes> parser()
public Parser<Span.Attributes> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Span.Attributes getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder