Class 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 type opentelemetry.proto.common.v1.InstrumentationScope
    • Method Detail

      • 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

        public 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
      • 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 java.io.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:
        java.io.IOException
      • getName

        public java.lang.String getName()
         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()
         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​(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.
      • setVersion

        public InstrumentationScope.Builder setVersion​(java.lang.String value)
        string version = 2;
        Parameters:
        value - The version to set.
        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.
      • addAllAttributes

        public InstrumentationScope.Builder addAllAttributes​(java.lang.Iterable<? extends KeyValue> values)
        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;
      • 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;
      • 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:
        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>