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,java.lang.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 typeopentelemetry.proto.common.v1.InstrumentationScope
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationScope.BuilderaddAllAttributes(java.lang.Iterable<? extends KeyValue> values)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuilderaddAttributes(int index, KeyValue value)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuilderaddAttributes(int index, KeyValue.Builder builderForValue)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuilderaddAttributes(KeyValue value)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuilderaddAttributes(KeyValue.Builder builderForValue)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;KeyValue.BuilderaddAttributesBuilder()repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;KeyValue.BuilderaddAttributesBuilder(int index)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScopebuild()InstrumentationScopebuildPartial()InstrumentationScope.Builderclear()InstrumentationScope.BuilderclearAttributes()repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuilderclearDroppedAttributesCount()uint32 dropped_attributes_count = 4;InstrumentationScope.BuilderclearName()An empty instrumentation scope name means the name is unknown.InstrumentationScope.BuilderclearVersion()string version = 2;KeyValuegetAttributes(int index)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;KeyValue.BuildergetAttributesBuilder(int index)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;java.util.List<KeyValue.Builder>getAttributesBuilderList()repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;intgetAttributesCount()repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;java.util.List<KeyValue>getAttributesList()repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;KeyValueOrBuildergetAttributesOrBuilder(int index)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;java.util.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScopegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetDroppedAttributesCount()uint32 dropped_attributes_count = 4;java.lang.StringgetName()An empty instrumentation scope name means the name is unknown.com.google.protobuf.ByteStringgetNameBytes()An empty instrumentation scope name means the name is unknown.java.lang.StringgetVersion()string version = 2;com.google.protobuf.ByteStringgetVersionBytes()string version = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InstrumentationScope.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InstrumentationScope.BuildermergeFrom(com.google.protobuf.Message other)InstrumentationScope.BuildermergeFrom(InstrumentationScope other)InstrumentationScope.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstrumentationScope.BuilderremoveAttributes(int index)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuildersetAttributes(int index, KeyValue value)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuildersetAttributes(int index, KeyValue.Builder builderForValue)repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;InstrumentationScope.BuildersetDroppedAttributesCount(int value)uint32 dropped_attributes_count = 4;InstrumentationScope.BuildersetName(java.lang.String value)An empty instrumentation scope name means the name is unknown.InstrumentationScope.BuildersetNameBytes(com.google.protobuf.ByteString value)An empty instrumentation scope name means the name is unknown.InstrumentationScope.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstrumentationScope.BuildersetVersion(java.lang.String value)string version = 2;InstrumentationScope.BuildersetVersionBytes(com.google.protobuf.ByteString value)string version = 2;-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, 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<InstrumentationScope.Builder>
-
clear
public 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
public InstrumentationScope getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstrumentationScope build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstrumentationScope buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public InstrumentationScope.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstrumentationScope.Builder>
-
mergeFrom
public InstrumentationScope.Builder mergeFrom(InstrumentationScope other)
-
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 java.io.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:
java.io.IOException
-
getName
public java.lang.String 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
public InstrumentationScope.Builder setName(java.lang.String value)
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
public InstrumentationScope.Builder clearName()
An empty instrumentation scope name means the name is unknown.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public InstrumentationScope.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public InstrumentationScope.Builder setVersion(java.lang.String value)
string version = 2;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public InstrumentationScope.Builder clearVersion()
string version = 2;- Returns:
- This builder for chaining.
-
setVersionBytes
public InstrumentationScope.Builder setVersionBytes(com.google.protobuf.ByteString value)
string version = 2;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getAttributesList
public java.util.List<KeyValue> getAttributesList()
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesListin interfaceInstrumentationScopeOrBuilder
-
getAttributesCount
public int getAttributesCount()
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesCountin interfaceInstrumentationScopeOrBuilder
-
getAttributes
public KeyValue getAttributes(int index)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesin interfaceInstrumentationScopeOrBuilder
-
setAttributes
public InstrumentationScope.Builder setAttributes(int index, KeyValue value)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
setAttributes
public InstrumentationScope.Builder setAttributes(int index, KeyValue.Builder builderForValue)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public InstrumentationScope.Builder addAttributes(KeyValue value)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public InstrumentationScope.Builder addAttributes(int index, KeyValue value)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public InstrumentationScope.Builder addAttributes(KeyValue.Builder builderForValue)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public InstrumentationScope.Builder addAttributes(int index, KeyValue.Builder builderForValue)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAllAttributes
public InstrumentationScope.Builder addAllAttributes(java.lang.Iterable<? extends KeyValue> values)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
clearAttributes
public InstrumentationScope.Builder clearAttributes()
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
removeAttributes
public InstrumentationScope.Builder removeAttributes(int index)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getAttributesBuilder
public KeyValue.Builder getAttributesBuilder(int index)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getAttributesOrBuilder
public KeyValueOrBuilder getAttributesOrBuilder(int index)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesOrBuilderin interfaceInstrumentationScopeOrBuilder
-
getAttributesOrBuilderList
public java.util.List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesOrBuilderListin interfaceInstrumentationScopeOrBuilder
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder()
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder(int index)
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getAttributesBuilderList
public java.util.List<KeyValue.Builder> getAttributesBuilderList()
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
public InstrumentationScope.Builder setDroppedAttributesCount(int value)
uint32 dropped_attributes_count = 4;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
public InstrumentationScope.Builder 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>
-
-