Class Resource

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Resource,Resource.Builder>
io.opentelemetry.proto.resource.v1.Resource
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, ResourceOrBuilder

public final class Resource extends com.google.protobuf.GeneratedMessageLite<Resource,Resource.Builder> implements ResourceOrBuilder
 Resource information.
 
Protobuf type opentelemetry.proto.resource.v1.Resource
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Resource information.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    getAttributes(int index)
    Set of attributes that describe the resource.
    int
    Set of attributes that describe the resource.
    Set of attributes that describe the resource.
    Set of attributes that describe the resource.
    Set of attributes that describe the resource.
    static Resource
     
    int
    The number of dropped attributes.
    getEntityRefs(int index)
    Set of entities that participate in this Resource.
    int
    Set of entities that participate in this Resource.
    Set of entities that participate in this Resource.
    Set of entities that participate in this Resource.
    Set of entities that participate in this Resource.
     
    newBuilder(Resource prototype)
     
    static Resource
     
    static Resource
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Resource
    parseFrom(byte[] data)
     
    static Resource
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Resource
    parseFrom(com.google.protobuf.ByteString data)
     
    static Resource
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Resource
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Resource
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Resource
     
    static Resource
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Resource
     
    static Resource
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Resource>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • ATTRIBUTES_FIELD_NUMBER

      public static final int ATTRIBUTES_FIELD_NUMBER
      See Also:
    • DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER

      public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER
      See Also:
    • ENTITY_REFS_FIELD_NUMBER

      public static final int ENTITY_REFS_FIELD_NUMBER
      See Also:
  • Method Details

    • getAttributesList

      public 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 behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"];
      Specified by:
      getAttributesList in interface ResourceOrBuilder
    • getAttributesOrBuilderList

      public 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 behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"];
    • getAttributesCount

      public 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"];
      Specified by:
      getAttributesCount in interface ResourceOrBuilder
    • getAttributes

      public 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 behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"];
      Specified by:
      getAttributes in interface ResourceOrBuilder
    • getAttributesOrBuilder

      public 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 behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1 [json_name = "attributes"];
    • getDroppedAttributesCount

      public 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"];
      Specified by:
      getDroppedAttributesCount in interface ResourceOrBuilder
      Returns:
      The droppedAttributesCount.
    • getEntityRefsList

      public 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 [json_name = "entityRefs"];
      Specified by:
      getEntityRefsList in interface ResourceOrBuilder
    • getEntityRefsOrBuilderList

      public 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 [json_name = "entityRefs"];
    • getEntityRefsCount

      public 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"];
      Specified by:
      getEntityRefsCount in interface ResourceOrBuilder
    • getEntityRefs

      public 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 [json_name = "entityRefs"];
      Specified by:
      getEntityRefs in interface ResourceOrBuilder
    • getEntityRefsOrBuilder

      public 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 [json_name = "entityRefs"];
    • parseFrom

      public static Resource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static Resource.Builder newBuilder()
    • newBuilder

      public static Resource.Builder newBuilder(Resource prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Resource,Resource.Builder>
    • getDefaultInstance

      public static Resource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Resource> parser()