Package io.opentelemetry.proto.common.v1
Class InstrumentationScope.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
io.opentelemetry.proto.common.v1.InstrumentationScope.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InstrumentationScopeOrBuilder,Cloneable
- Enclosing class:
- InstrumentationScope
public static final class InstrumentationScope.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
implements InstrumentationScopeOrBuilder
InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.Protobuf type
opentelemetry.proto.common.v1.InstrumentationScope-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) Additional attributes that describe the scope.addAttributes(int index, KeyValue value) Additional attributes that describe the scope.addAttributes(int index, KeyValue.Builder builderForValue) Additional attributes that describe the scope.addAttributes(KeyValue value) Additional attributes that describe the scope.addAttributes(KeyValue.Builder builderForValue) Additional attributes that describe the scope.Additional attributes that describe the scope.addAttributesBuilder(int index) Additional attributes that describe the scope.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Additional attributes that describe the scope.The number of attributes that were discarded.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A name denoting the Instrumentation scope.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Defines the version of the instrumentation scope.clone()getAttributes(int index) Additional attributes that describe the scope.getAttributesBuilder(int index) Additional attributes that describe the scope.Additional attributes that describe the scope.intAdditional attributes that describe the scope.Additional attributes that describe the scope.getAttributesOrBuilder(int index) Additional attributes that describe the scope.List<? extends KeyValueOrBuilder>Additional attributes that describe the scope.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe number of attributes that were discarded.getName()A name denoting the Instrumentation scope.com.google.protobuf.ByteStringA name denoting the Instrumentation scope.Defines the version of the instrumentation scope.com.google.protobuf.ByteStringDefines the version of the instrumentation scope.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(InstrumentationScope other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttributes(int index) Additional attributes that describe the scope.setAttributes(int index, KeyValue value) Additional attributes that describe the scope.setAttributes(int index, KeyValue.Builder builderForValue) Additional attributes that describe the scope.setDroppedAttributesCount(int value) The number of attributes that were discarded.A name denoting the Instrumentation scope.setNameBytes(com.google.protobuf.ByteString value) A name denoting the Instrumentation scope.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(String value) Defines the version of the instrumentation scope.setVersionBytes(com.google.protobuf.ByteString value) Defines the version of the instrumentation scope.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<InstrumentationScope.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<InstrumentationScope.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<InstrumentationScope.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<InstrumentationScope.Builder>
-
setField
public InstrumentationScope.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<InstrumentationScope.Builder>
-
clearField
public InstrumentationScope.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
-
clearOneof
public InstrumentationScope.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
-
setRepeatedField
public InstrumentationScope.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<InstrumentationScope.Builder>
-
addRepeatedField
public InstrumentationScope.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<InstrumentationScope.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstrumentationScope.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
-
mergeFrom
public InstrumentationScope.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<InstrumentationScope.Builder>- Throws:
IOException
-
getName
A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1;- Specified by:
getNamein interfaceInstrumentationScopeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1;- Specified by:
getNameBytesin interfaceInstrumentationScopeOrBuilder- Returns:
- The bytes for name.
-
setName
A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getVersion
Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2;- Specified by:
getVersionin interfaceInstrumentationScopeOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2;- Specified by:
getVersionBytesin interfaceInstrumentationScopeOrBuilder- Returns:
- The bytes for version.
-
setVersion
Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2;- Returns:
- This builder for chaining.
-
setVersionBytes
Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getAttributesList
Additional attributes that describe the scope. [Optional]. 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 = 3;- Specified by:
getAttributesListin interfaceInstrumentationScopeOrBuilder
-
getAttributesCount
public int getAttributesCount()Additional attributes that describe the scope. [Optional]. 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 = 3;- Specified by:
getAttributesCountin interfaceInstrumentationScopeOrBuilder
-
getAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3;- Specified by:
getAttributesin interfaceInstrumentationScopeOrBuilder
-
setAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
setAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
addAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
addAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
addAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
addAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
addAllAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
clearAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
removeAttributes
Additional attributes that describe the scope. [Optional]. 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 = 3; -
getAttributesBuilder
Additional attributes that describe the scope. [Optional]. 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 = 3; -
getAttributesOrBuilder
Additional attributes that describe the scope. [Optional]. 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 = 3;- Specified by:
getAttributesOrBuilderin interfaceInstrumentationScopeOrBuilder
-
getAttributesOrBuilderList
Additional attributes that describe the scope. [Optional]. 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 = 3;- Specified by:
getAttributesOrBuilderListin interfaceInstrumentationScopeOrBuilder
-
addAttributesBuilder
Additional attributes that describe the scope. [Optional]. 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 = 3; -
addAttributesBuilder
Additional attributes that describe the scope. [Optional]. 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 = 3; -
getAttributesBuilderList
Additional attributes that describe the scope. [Optional]. 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 = 3; -
getDroppedAttributesCount
public int getDroppedAttributesCount()The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4;- Specified by:
getDroppedAttributesCountin interfaceInstrumentationScopeOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstrumentationScope.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
-
mergeUnknownFields
public final InstrumentationScope.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
-