Send feedback
Class Span.Attributes (2.41.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.41.0 keyboard_arrow_down
public static final class Span . Attributes extends GeneratedMessageV3 implements Span . AttributesOrBuilder
A set of attributes as key-value pairs.
Protobuf type google.devtools.cloudtrace.v2.Span.Attributes
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 )
A 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
or 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 ()
A 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
or 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 ()
A 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
or 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 )
A 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
or 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 )
A 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
or 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
Returns Type Description int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter Name Description number
int
Returns Type Description com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]