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 ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getAttributes(int index) Set of attributes that describe the resource.intSet of attributes that describe the resource.Set of attributes that describe the resource.getAttributesOrBuilder(int index) Set of attributes that describe the resource.List<? extends KeyValueOrBuilder>Set of attributes that describe the resource.static ResourceintThe 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.getEntityRefsOrBuilder(int index) Set of entities that participate in this Resource.List<? extends EntityRefOrBuilder>Set of entities that participate in this Resource.static Resource.Builderstatic Resource.BuildernewBuilder(Resource prototype) static ResourceparseDelimitedFrom(InputStream input) static ResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResourceparseFrom(byte[] data) static ResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResourceparseFrom(com.google.protobuf.ByteString data) static ResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResourceparseFrom(com.google.protobuf.CodedInputStream input) static ResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResourceparseFrom(InputStream input) static ResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResourceparseFrom(ByteBuffer data) static ResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resource>parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
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:
getAttributesListin interfaceResourceOrBuilder
-
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:
getAttributesCountin interfaceResourceOrBuilder
-
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"];- Specified by:
getAttributesin interfaceResourceOrBuilder
-
getAttributesOrBuilder
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:
getDroppedAttributesCountin interfaceResourceOrBuilder- 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"];- Specified by:
getEntityRefsListin interfaceResourceOrBuilder
-
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:
getEntityRefsCountin interfaceResourceOrBuilder
-
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"];- Specified by:
getEntityRefsin interfaceResourceOrBuilder
-
getEntityRefsOrBuilder
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
- Throws:
IOException
-
parseFrom
public static Resource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Resource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Resource,Resource.Builder>
-
getDefaultInstance
-
parser
-