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.uint32 dropped_attributes_count = 4;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) An empty instrumentation scope name means the name is unknown.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) string version = 2;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.Descriptorintuint32 dropped_attributes_count = 4;getName()An empty instrumentation scope name means the name is unknown.com.google.protobuf.ByteStringAn empty instrumentation scope name means the name is unknown.string version = 2;com.google.protobuf.ByteStringstring version = 2;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) uint32 dropped_attributes_count = 4;An empty instrumentation scope name means the name is unknown.setNameBytes(com.google.protobuf.ByteString value) An empty instrumentation scope name means the name is unknown.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(String value) string version = 2;setVersionBytes(com.google.protobuf.ByteString value) string version = 2;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<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
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()An empty instrumentation scope name means the name is unknown.
string name = 1;- Specified by:
getNameBytesin interfaceInstrumentationScopeOrBuilder- Returns:
- The bytes for name.
-
setName
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
An empty instrumentation scope name means the name is unknown.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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
string version = 2;- Specified by:
getVersionin interfaceInstrumentationScopeOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()string version = 2;- Specified by:
getVersionBytesin interfaceInstrumentationScopeOrBuilder- Returns:
- The bytes for version.
-
setVersion
string version = 2;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
string version = 2;- Returns:
- This builder for chaining.
-
setVersionBytes
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
getDroppedAttributesCount
public int getDroppedAttributesCount()uint32 dropped_attributes_count = 4;- Specified by:
getDroppedAttributesCountin interfaceInstrumentationScopeOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
uint32 dropped_attributes_count = 4;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
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>
-