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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • getDefaultInstanceForType

      public InstrumentationScope getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InstrumentationScope build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstrumentationScope buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • setField

      public InstrumentationScope.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • clearField

      public InstrumentationScope.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • clearOneof

      public InstrumentationScope.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • setRepeatedField

      public InstrumentationScope.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • addRepeatedField

      public InstrumentationScope.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • mergeFrom

      public InstrumentationScope.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstrumentationScope.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstrumentationScope.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       A name denoting the Instrumentation scope.
       An empty instrumentation scope name means the name is unknown.
       
      string name = 1;
      Specified by:
      getName in interface InstrumentationScopeOrBuilder
      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:
      getNameBytes in interface InstrumentationScopeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public InstrumentationScope.Builder setName(String value)
       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

      public InstrumentationScope.Builder 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

      public InstrumentationScope.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String getVersion()
       Defines the version of the instrumentation scope.
       An empty instrumentation scope version means the version is unknown.
       
      string version = 2;
      Specified by:
      getVersion in interface InstrumentationScopeOrBuilder
      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:
      getVersionBytes in interface InstrumentationScopeOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public InstrumentationScope.Builder setVersion(String value)
       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

      public InstrumentationScope.Builder 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

      public InstrumentationScope.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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

      public List<KeyValue> 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:
      getAttributesList in interface InstrumentationScopeOrBuilder
    • 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:
      getAttributesCount in interface InstrumentationScopeOrBuilder
    • getAttributes

      public KeyValue getAttributes(int index)
       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:
      getAttributes in interface InstrumentationScopeOrBuilder
    • setAttributes

      public InstrumentationScope.Builder setAttributes(int index, KeyValue value)
       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

      public InstrumentationScope.Builder setAttributes(int index, KeyValue.Builder builderForValue)
       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

      public InstrumentationScope.Builder addAttributes(KeyValue value)
       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

      public InstrumentationScope.Builder addAttributes(int index, KeyValue value)
       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

      public InstrumentationScope.Builder addAttributes(KeyValue.Builder builderForValue)
       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

      public InstrumentationScope.Builder addAttributes(int index, KeyValue.Builder builderForValue)
       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

      public InstrumentationScope.Builder addAllAttributes(Iterable<? extends KeyValue> values)
       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

      public InstrumentationScope.Builder 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

      public InstrumentationScope.Builder removeAttributes(int index)
       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

      public KeyValue.Builder getAttributesBuilder(int index)
       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

      public KeyValueOrBuilder getAttributesOrBuilder(int index)
       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:
      getAttributesOrBuilder in interface InstrumentationScopeOrBuilder
    • getAttributesOrBuilderList

      public List<? extends KeyValueOrBuilder> 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:
      getAttributesOrBuilderList in interface InstrumentationScopeOrBuilder
    • addAttributesBuilder

      public KeyValue.Builder 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

      public KeyValue.Builder addAttributesBuilder(int index)
       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

      public List<KeyValue.Builder> 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:
      getDroppedAttributesCount in interface InstrumentationScopeOrBuilder
      Returns:
      The droppedAttributesCount.
    • setDroppedAttributesCount

      public InstrumentationScope.Builder setDroppedAttributesCount(int value)
       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

      public InstrumentationScope.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>
    • mergeUnknownFields

      public final InstrumentationScope.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationScope.Builder>