public static final class Span.Attributes.Builder extends GeneratedMessageV3.Builder<Span.Attributes.Builder> implements Span.AttributesOrBuilder
A set of attributes, each in the format `[KEY]:[VALUE]`.Protobuf type
google.devtools.cloudtrace.v2.Span.AttributesgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<Span.Attributes.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<Span.Attributes.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Span.Attributes build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Span.Attributes buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Span.Attributes.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Span.Attributes.Builder>public Span.Attributes.Builder mergeFrom(Span.Attributes other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public Span.Attributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Span.Attributes.Builder>java.io.IOExceptionpublic 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 Span.Attributes.Builder clearAttributeMap()
public Span.Attributes.Builder removeAttributeMap(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;@Deprecated public java.util.Map<java.lang.String,AttributeValue> getMutableAttributeMap()
public Span.Attributes.Builder putAttributeMap(java.lang.String key, AttributeValue value)
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;public Span.Attributes.Builder putAllAttributeMap(java.util.Map<java.lang.String,AttributeValue> values)
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;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.AttributesOrBuilderpublic Span.Attributes.Builder setDroppedAttributesCount(int value)
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;public Span.Attributes.Builder clearDroppedAttributesCount()
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;public final Span.Attributes.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Span.Attributes.Builder>public final Span.Attributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Span.Attributes.Builder>