Class Resource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 type
opentelemetry.proto.resource.v1.Resource-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) Set of attributes that describe the 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.Set of attributes that describe the resource.addAttributesBuilder(int index) Set of attributes that describe the resource.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Set of attributes that describe the resource.dropped_attributes_count is the number of dropped attributes.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getAttributes(int index) Set of attributes that describe the resource.getAttributesBuilder(int index) Set of attributes that describe the resource.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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorintdropped_attributes_count is the number of dropped attributes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Resource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttributes(int index) Set of attributes that describe the 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) dropped_attributes_count is the number of dropped attributes.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>
-
mergeFrom
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-