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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ATTRIBUTE_MAP_FIELD_NUMBER
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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.AttributesOrBuilder
public 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.AttributesOrBuilder
public 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.AttributesOrBuilder
public 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.AttributesOrBuilder
public 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.AttributesOrBuilder
public 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.AttributesOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Span.Attributes parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Attributes parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Attributes parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Attributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Attributes parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Attributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Span.Attributes parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Span.Attributes parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Span.Attributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Span.Attributes parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Span.Attributes parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Span.Attributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Span.Attributes.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Span.Attributes.Builder newBuilder()
public static Span.Attributes.Builder newBuilder(Span.Attributes prototype)
public Span.Attributes.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Span.Attributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Span.Attributes getDefaultInstance()
public static Parser<Span.Attributes> parser()
public Parser<Span.Attributes> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Span.Attributes getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder