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.Attributes
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Span.Attributes build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Span.Attributes buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Span.Attributes.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
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.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder mergeFrom(Span.Attributes other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public Span.Attributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Span.Attributes.Builder>
java.io.IOException
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 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.AttributesOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>
public final Span.Attributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Span.Attributes.Builder>