Package io.opentelemetry.proto.common.v1
Class InstrumentationScope.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<InstrumentationScope,InstrumentationScope.Builder>
io.opentelemetry.proto.common.v1.InstrumentationScope.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,InstrumentationScopeOrBuilder,Cloneable
- Enclosing class:
- InstrumentationScope
public static final class InstrumentationScope.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<InstrumentationScope,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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
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.The number of attributes that were discarded.A name denoting the Instrumentation scope.Defines the version of the instrumentation scope.getAttributes(int index) Additional attributes that describe the scope.intAdditional attributes that describe the scope.Additional attributes that describe the scope.intThe 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.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.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.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1 [json_name = "name"];- 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 [json_name = "name"];- 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 [json_name = "name"];- 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 [json_name = "name"];- 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 [json_name = "name"];- 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 [json_name = "version"];- 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 [json_name = "version"];- 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 [json_name = "version"];- 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 [json_name = "version"];- 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 [json_name = "version"];- 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 [json_name = "attributes"];- 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 [json_name = "attributes"];- 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 [json_name = "attributes"];- 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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "attributes"]; -
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 [json_name = "droppedAttributesCount"];- 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 [json_name = "droppedAttributesCount"];- 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 [json_name = "droppedAttributesCount"];- Returns:
- This builder for chaining.
-