Interface ResourceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Resource, Resource.Builder

@Generated public interface ResourceOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getAttributesList

      List<KeyValue> 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 attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
    • getAttributes

      KeyValue getAttributes(int index)
       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 attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
    • 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 attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
    • getAttributesOrBuilderList

      List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
       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 attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
    • getAttributesOrBuilder

      KeyValueOrBuilder getAttributesOrBuilder(int index)
       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 attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
    • getDroppedAttributesCount

      int getDroppedAttributesCount()
       dropped_attributes_count is the number of dropped attributes. If the value is 0, then
       no attributes were dropped.
       
      uint32 dropped_attributes_count = 2;
      Returns:
      The droppedAttributesCount.
    • getEntityRefsList

      List<EntityRef> 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;
    • getEntityRefs

      EntityRef getEntityRefs(int index)
       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;
    • 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;
    • getEntityRefsOrBuilderList

      List<? extends EntityRefOrBuilder> getEntityRefsOrBuilderList()
       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;
    • getEntityRefsOrBuilder

      EntityRefOrBuilder getEntityRefsOrBuilder(int index)
       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;