Interface ResourceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Resource,Resource.Builder
public interface ResourceOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(int index) Set of attributes that describe the resource.intSet of attributes that describe the resource.Set of attributes that describe the resource.intThe number of dropped attributes.getEntityRefs(int index) Set of entities that participate in this Resource.intSet of entities that participate in this Resource.Set of entities that participate in this Resource.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getAttributesList
Set of attributes that describe the resource. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"]; -
getAttributes
Set of attributes that describe the resource. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"]; -
getAttributesCount
int getAttributesCount()Set of attributes that describe the resource. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"]; -
getDroppedAttributesCount
int getDroppedAttributesCount()The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 2 [json_name = "droppedAttributesCount"];- Returns:
- The droppedAttributesCount.
-
getEntityRefsList
Set of entities that participate in this Resource. Note: keys in the references MUST exist in attributes of this message. Status: [Development]
repeated .opentelemetry.proto.common.v1.EntityRef entity_refs = 3 [json_name = "entityRefs"]; -
getEntityRefs
Set of entities that participate in this Resource. Note: keys in the references MUST exist in attributes of this message. Status: [Development]
repeated .opentelemetry.proto.common.v1.EntityRef entity_refs = 3 [json_name = "entityRefs"]; -
getEntityRefsCount
int getEntityRefsCount()Set of entities that participate in this Resource. Note: keys in the references MUST exist in attributes of this message. Status: [Development]
repeated .opentelemetry.proto.common.v1.EntityRef entity_refs = 3 [json_name = "entityRefs"];
-