Class Resource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Resource,Resource.Builder>
io.opentelemetry.proto.resource.v1.Resource.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ResourceOrBuilder,Cloneable
- Enclosing class:
- Resource
public static final class Resource.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Resource,Resource.Builder>
implements ResourceOrBuilder
Resource information.Protobuf type
opentelemetry.proto.resource.v1.Resource-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) Set of attributes that describe the resource.addAllEntityRefs(Iterable<? extends EntityRef> values) Set of entities that participate in this Resource.addAttributes(int index, KeyValue value) Set of attributes that describe the resource.addAttributes(int index, KeyValue.Builder builderForValue) Set of attributes that describe the resource.addAttributes(KeyValue value) Set of attributes that describe the resource.addAttributes(KeyValue.Builder builderForValue) Set of attributes that describe the resource.addEntityRefs(int index, EntityRef value) Set of entities that participate in this Resource.addEntityRefs(int index, EntityRef.Builder builderForValue) Set of entities that participate in this Resource.addEntityRefs(EntityRef value) Set of entities that participate in this Resource.addEntityRefs(EntityRef.Builder builderForValue) Set of entities that participate in this Resource.Set of attributes that describe the resource.The number of dropped attributes.Set of entities that participate in this Resource.getAttributes(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.removeAttributes(int index) Set of attributes that describe the resource.removeEntityRefs(int index) Set of entities that participate in this Resource.setAttributes(int index, KeyValue value) Set of attributes that describe the resource.setAttributes(int index, KeyValue.Builder builderForValue) Set of attributes that describe the resource.setDroppedAttributesCount(int value) The number of dropped attributes.setEntityRefs(int index, EntityRef value) Set of entities that participate in this Resource.setEntityRefs(int index, EntityRef.Builder builderForValue) Set of entities that participate in this Resource.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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"];- Specified by:
getAttributesListin interfaceResourceOrBuilder
-
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
-
setAttributes
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"]; -
setAttributes
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"]; -
addAttributes
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"]; -
addAttributes
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"]; -
addAttributes
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"]; -
addAttributes
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"]; -
addAllAttributes
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"]; -
clearAttributes
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"]; -
removeAttributes
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.
-
setDroppedAttributesCount
The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 2 [json_name = "droppedAttributesCount"];- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 2 [json_name = "droppedAttributesCount"];- Returns:
- This builder for chaining.
-
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
-
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
-
setEntityRefs
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"]; -
setEntityRefs
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"]; -
addEntityRefs
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"]; -
addEntityRefs
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"]; -
addEntityRefs
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"]; -
addEntityRefs
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"]; -
addAllEntityRefs
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"]; -
clearEntityRefs
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"]; -
removeEntityRefs
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"];
-