Class Resource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
- io.opentelemetry.proto.resource.v1.Resource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResourceOrBuilder,Cloneable
- Enclosing class:
- Resource
public static final class Resource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
Resource information.
Protobuf typeopentelemetry.proto.resource.v1.Resource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource.BuilderaddAllAttributes(Iterable<? extends KeyValue> values)Set of attributes that describe the resource.Resource.BuilderaddAttributes(int index, KeyValue value)Set of attributes that describe the resource.Resource.BuilderaddAttributes(int index, KeyValue.Builder builderForValue)Set of attributes that describe the resource.Resource.BuilderaddAttributes(KeyValue value)Set of attributes that describe the resource.Resource.BuilderaddAttributes(KeyValue.Builder builderForValue)Set of attributes that describe the resource.KeyValue.BuilderaddAttributesBuilder()Set of attributes that describe the resource.KeyValue.BuilderaddAttributesBuilder(int index)Set of attributes that describe the resource.Resource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Resourcebuild()ResourcebuildPartial()Resource.Builderclear()Resource.BuilderclearAttributes()Set of attributes that describe the resource.Resource.BuilderclearDroppedAttributesCount()dropped_attributes_count is the number of dropped attributes.Resource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Resource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Resource.Builderclone()KeyValuegetAttributes(int index)Set of attributes that describe the resource.KeyValue.BuildergetAttributesBuilder(int index)Set of attributes that describe the resource.List<KeyValue.Builder>getAttributesBuilderList()Set of attributes that describe the resource.intgetAttributesCount()Set of attributes that describe the resource.List<KeyValue>getAttributesList()Set of attributes that describe the resource.KeyValueOrBuildergetAttributesOrBuilder(int index)Set of attributes that describe the resource.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()Set of attributes that describe the resource.ResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetDroppedAttributesCount()dropped_attributes_count is the number of dropped attributes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Resource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Resource.BuildermergeFrom(com.google.protobuf.Message other)Resource.BuildermergeFrom(Resource other)Resource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resource.BuilderremoveAttributes(int index)Set of attributes that describe the resource.Resource.BuildersetAttributes(int index, KeyValue value)Set of attributes that describe the resource.Resource.BuildersetAttributes(int index, KeyValue.Builder builderForValue)Set of attributes that describe the resource.Resource.BuildersetDroppedAttributesCount(int value)dropped_attributes_count is the number of dropped attributes.Resource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Resource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Resource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clear
public Resource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
getDefaultInstanceForType
public Resource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Resource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Resource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Resource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
setField
public Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearField
public Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearOneof
public Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
setRepeatedField
public Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
addRepeatedField
public Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(Resource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>- Throws:
IOException
-
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;- 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;- Specified by:
getAttributesCountin interfaceResourceOrBuilder
-
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;- Specified by:
getAttributesin interfaceResourceOrBuilder
-
setAttributes
public Resource.Builder setAttributes(int index, KeyValue value)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
setAttributes
public Resource.Builder setAttributes(int index, KeyValue.Builder builderForValue)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
addAttributes
public Resource.Builder addAttributes(KeyValue value)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
addAttributes
public Resource.Builder addAttributes(int index, KeyValue value)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
addAttributes
public Resource.Builder addAttributes(KeyValue.Builder builderForValue)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
addAttributes
public Resource.Builder addAttributes(int index, KeyValue.Builder builderForValue)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
addAllAttributes
public Resource.Builder addAllAttributes(Iterable<? extends KeyValue> values)
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
clearAttributes
public Resource.Builder 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
removeAttributes
public Resource.Builder removeAttributes(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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
getAttributesBuilder
public KeyValue.Builder getAttributesBuilder(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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;- Specified by:
getAttributesOrBuilderin interfaceResourceOrBuilder
-
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;- Specified by:
getAttributesOrBuilderListin interfaceResourceOrBuilder
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder()
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder(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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
getAttributesBuilderList
public List<KeyValue.Builder> getAttributesBuilderList()
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
-
getDroppedAttributesCount
public 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;- Specified by:
getDroppedAttributesCountin interfaceResourceOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
public Resource.Builder setDroppedAttributesCount(int value)
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 2;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
public Resource.Builder clearDroppedAttributesCount()
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:
- This builder for chaining.
-
setUnknownFields
public final Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeUnknownFields
public final Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
-