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 |
---|
Type | Description |
int | |
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Span.Attributes getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Span.Attributes.Builder newBuilder()
public static Span.Attributes.Builder newBuilder(Span.Attributes prototype)
public static Span.Attributes parseDelimitedFrom(InputStream input)
public static Span.Attributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Span.Attributes parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Span.Attributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Span.Attributes parseFrom(ByteString data)
public static Span.Attributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Span.Attributes parseFrom(CodedInputStream input)
public static Span.Attributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Span.Attributes parseFrom(InputStream input)
public static Span.Attributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Span.Attributes parseFrom(ByteBuffer data)
public static Span.Attributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Span.Attributes> parser()
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 |
---|
Name | Description |
key | String
|
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public Map<String,AttributeValue> getAttributeMap()
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 |
---|
Type | Description |
int | |
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;
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;
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 |
---|
Name | Description |
key | String
|
public Span.Attributes getDefaultInstanceForType()
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()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public final UnknownFieldSet getUnknownFields()
Overrides
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public Span.Attributes.Builder newBuilderForType()
protected Span.Attributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Span.Attributes.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides