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
Static Fields
public static final int ATTRIBUTE_MAP_FIELD_NUMBER
Field Value
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER
Field Value
Static Methods
public static Span.Attributes getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Span.Attributes.Builder newBuilder()
Returns
public static Span.Attributes.Builder newBuilder(Span.Attributes prototype)
Parameter
Returns
public static Span.Attributes parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Span.Attributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Span.Attributes parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Span.Attributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Span.Attributes parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Span.Attributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Span.Attributes parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Span.Attributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Span.Attributes parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Span.Attributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Span.Attributes parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Span.Attributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Span.Attributes> parser()
Returns
Methods
public boolean containsAttributeMap(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, a signed 64-bit integer,
or the Boolean values true
and false
. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Map<String,AttributeValue> getAttributeMap()
Returns
public int getAttributeMapCount()
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, a signed 64-bit integer,
or the Boolean values true
and false
. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
Returns
public Map<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, a signed 64-bit integer,
or the Boolean values true
and false
. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
Returns
public AttributeValue getAttributeMapOrDefault(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, a signed 64-bit integer,
or the Boolean values true
and false
. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
Parameters
Returns
public AttributeValue getAttributeMapOrThrow(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, a signed 64-bit integer,
or the Boolean values true
and false
. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
Parameter
Returns
public Span.Attributes getDefaultInstanceForType()
Returns
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;
Returns
Type | Description |
int | The droppedAttributesCount.
|
public Parser<Span.Attributes> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Span.Attributes.Builder newBuilderForType()
Returns
protected Span.Attributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Span.Attributes.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions