Class InstrumentationLibraryMetrics.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InstrumentationLibraryMetricsOrBuilder, Cloneable
    Enclosing class:
    InstrumentationLibraryMetrics

    public static final class InstrumentationLibraryMetrics.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryMetrics.Builder>
    implements InstrumentationLibraryMetricsOrBuilder
     A collection of Metrics produced by an InstrumentationLibrary.
     InstrumentationLibraryMetrics is wire-compatible with ScopeMetrics for binary
     Protobuf format.
     This message is deprecated and will be removed on June 15, 2022.
     
    Protobuf type opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics
    • 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<InstrumentationLibraryMetrics.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<InstrumentationLibraryMetrics.Builder>
      • getDefaultInstanceForType

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

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

        public InstrumentationLibraryMetrics 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<InstrumentationLibraryMetrics.Builder>
      • mergeFrom

        public InstrumentationLibraryMetrics.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<InstrumentationLibraryMetrics.Builder>
        Throws:
        IOException
      • hasInstrumentationLibrary

        public boolean hasInstrumentationLibrary()
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
        Specified by:
        hasInstrumentationLibrary in interface InstrumentationLibraryMetricsOrBuilder
        Returns:
        Whether the instrumentationLibrary field is set.
      • getInstrumentationLibrary

        public InstrumentationLibrary getInstrumentationLibrary()
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
        Specified by:
        getInstrumentationLibrary in interface InstrumentationLibraryMetricsOrBuilder
        Returns:
        The instrumentationLibrary.
      • setInstrumentationLibrary

        public InstrumentationLibraryMetrics.Builder setInstrumentationLibrary​(InstrumentationLibrary value)
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • setInstrumentationLibrary

        public InstrumentationLibraryMetrics.Builder setInstrumentationLibrary​(InstrumentationLibrary.Builder builderForValue)
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • mergeInstrumentationLibrary

        public InstrumentationLibraryMetrics.Builder mergeInstrumentationLibrary​(InstrumentationLibrary value)
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • clearInstrumentationLibrary

        public InstrumentationLibraryMetrics.Builder clearInstrumentationLibrary()
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • getInstrumentationLibraryBuilder

        public InstrumentationLibrary.Builder getInstrumentationLibraryBuilder()
         The instrumentation library information for the metrics in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • setMetrics

        public InstrumentationLibraryMetrics.Builder setMetrics​(int index,
                                                                Metric value)
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • addMetrics

        public InstrumentationLibraryMetrics.Builder addMetrics​(Metric value)
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • addMetrics

        public InstrumentationLibraryMetrics.Builder addMetrics​(int index,
                                                                Metric value)
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • clearMetrics

        public InstrumentationLibraryMetrics.Builder clearMetrics()
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • removeMetrics

        public InstrumentationLibraryMetrics.Builder removeMetrics​(int index)
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • getMetricsBuilder

        public Metric.Builder getMetricsBuilder​(int index)
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • addMetricsBuilder

        public Metric.Builder addMetricsBuilder()
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • addMetricsBuilder

        public Metric.Builder addMetricsBuilder​(int index)
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • getMetricsBuilderList

        public List<Metric.Builder> getMetricsBuilderList()
         A list of metrics that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
      • getSchemaUrlBytes

        public com.google.protobuf.ByteString getSchemaUrlBytes()
         This schema_url applies to all metrics in the "metrics" field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrlBytes in interface InstrumentationLibraryMetricsOrBuilder
        Returns:
        The bytes for schemaUrl.
      • setSchemaUrl

        public InstrumentationLibraryMetrics.Builder setSchemaUrl​(String value)
         This schema_url applies to all metrics in the "metrics" field.
         
        string schema_url = 3;
        Parameters:
        value - The schemaUrl to set.
        Returns:
        This builder for chaining.
      • clearSchemaUrl

        public InstrumentationLibraryMetrics.Builder clearSchemaUrl()
         This schema_url applies to all metrics in the "metrics" field.
         
        string schema_url = 3;
        Returns:
        This builder for chaining.
      • setSchemaUrlBytes

        public InstrumentationLibraryMetrics.Builder setSchemaUrlBytes​(com.google.protobuf.ByteString value)
         This schema_url applies to all metrics in the "metrics" field.
         
        string schema_url = 3;
        Parameters:
        value - The bytes for schemaUrl to set.
        Returns:
        This builder for chaining.