Class ResourceMetrics.Builder

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

    public static final class ResourceMetrics.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceMetrics.Builder>
    implements ResourceMetricsOrBuilder
     A collection of ScopeMetrics from a Resource.
     
    Protobuf type opentelemetry.proto.metrics.v1.ResourceMetrics
    • 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<ResourceMetrics.Builder>
      • clear

        public ResourceMetrics.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<ResourceMetrics.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<ResourceMetrics.Builder>
      • getDefaultInstanceForType

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

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

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

        public ResourceMetrics.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<ResourceMetrics.Builder>
      • setField

        public ResourceMetrics.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<ResourceMetrics.Builder>
      • clearField

        public ResourceMetrics.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<ResourceMetrics.Builder>
      • clearOneof

        public ResourceMetrics.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<ResourceMetrics.Builder>
      • setRepeatedField

        public ResourceMetrics.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<ResourceMetrics.Builder>
      • addRepeatedField

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

        public ResourceMetrics.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<ResourceMetrics.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceMetrics.Builder>
      • mergeFrom

        public ResourceMetrics.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<ResourceMetrics.Builder>
        Throws:
        IOException
      • hasResource

        public boolean hasResource()
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
        Specified by:
        hasResource in interface ResourceMetricsOrBuilder
        Returns:
        Whether the resource field is set.
      • getResource

        public Resource getResource()
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
        Specified by:
        getResource in interface ResourceMetricsOrBuilder
        Returns:
        The resource.
      • setResource

        public ResourceMetrics.Builder setResource​(Resource value)
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • setResource

        public ResourceMetrics.Builder setResource​(Resource.Builder builderForValue)
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • mergeResource

        public ResourceMetrics.Builder mergeResource​(Resource value)
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • clearResource

        public ResourceMetrics.Builder clearResource()
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • getResourceBuilder

        public Resource.Builder getResourceBuilder()
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • getResourceOrBuilder

        public ResourceOrBuilder getResourceOrBuilder()
         The resource for the metrics in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
        Specified by:
        getResourceOrBuilder in interface ResourceMetricsOrBuilder
      • getScopeMetricsCount

        public int getScopeMetricsCount()
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
        Specified by:
        getScopeMetricsCount in interface ResourceMetricsOrBuilder
      • getScopeMetrics

        public ScopeMetrics getScopeMetrics​(int index)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
        Specified by:
        getScopeMetrics in interface ResourceMetricsOrBuilder
      • setScopeMetrics

        public ResourceMetrics.Builder setScopeMetrics​(int index,
                                                       ScopeMetrics value)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • setScopeMetrics

        public ResourceMetrics.Builder setScopeMetrics​(int index,
                                                       ScopeMetrics.Builder builderForValue)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addScopeMetrics

        public ResourceMetrics.Builder addScopeMetrics​(ScopeMetrics value)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addScopeMetrics

        public ResourceMetrics.Builder addScopeMetrics​(int index,
                                                       ScopeMetrics value)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addScopeMetrics

        public ResourceMetrics.Builder addScopeMetrics​(ScopeMetrics.Builder builderForValue)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addScopeMetrics

        public ResourceMetrics.Builder addScopeMetrics​(int index,
                                                       ScopeMetrics.Builder builderForValue)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addAllScopeMetrics

        public ResourceMetrics.Builder addAllScopeMetrics​(Iterable<? extends ScopeMetrics> values)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • clearScopeMetrics

        public ResourceMetrics.Builder clearScopeMetrics()
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • removeScopeMetrics

        public ResourceMetrics.Builder removeScopeMetrics​(int index)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • getScopeMetricsBuilder

        public ScopeMetrics.Builder getScopeMetricsBuilder​(int index)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addScopeMetricsBuilder

        public ScopeMetrics.Builder addScopeMetricsBuilder()
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • addScopeMetricsBuilder

        public ScopeMetrics.Builder addScopeMetricsBuilder​(int index)
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • getScopeMetricsBuilderList

        public List<ScopeMetrics.Builder> getScopeMetricsBuilderList()
         A list of metrics that originate from a resource.
         
        repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
      • getInstrumentationLibraryMetricsList

        @Deprecated
        public List<InstrumentationLibraryMetrics> getInstrumentationLibraryMetricsList()
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryMetricsList in interface ResourceMetricsOrBuilder
      • getInstrumentationLibraryMetricsCount

        @Deprecated
        public int getInstrumentationLibraryMetricsCount()
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryMetricsCount in interface ResourceMetricsOrBuilder
      • getInstrumentationLibraryMetrics

        @Deprecated
        public InstrumentationLibraryMetrics getInstrumentationLibraryMetrics​(int index)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryMetrics in interface ResourceMetricsOrBuilder
      • setInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder setInstrumentationLibraryMetrics​(int index,
                                                                        InstrumentationLibraryMetrics value)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • setInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder setInstrumentationLibraryMetrics​(int index,
                                                                        InstrumentationLibraryMetrics.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • addInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder addInstrumentationLibraryMetrics​(InstrumentationLibraryMetrics value)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • addInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder addInstrumentationLibraryMetrics​(int index,
                                                                        InstrumentationLibraryMetrics value)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • addInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder addInstrumentationLibraryMetrics​(InstrumentationLibraryMetrics.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • addInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder addInstrumentationLibraryMetrics​(int index,
                                                                        InstrumentationLibraryMetrics.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • addAllInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder addAllInstrumentationLibraryMetrics​(Iterable<? extends InstrumentationLibraryMetrics> values)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • clearInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder clearInstrumentationLibraryMetrics()
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • removeInstrumentationLibraryMetrics

        @Deprecated
        public ResourceMetrics.Builder removeInstrumentationLibraryMetrics​(int index)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • getInstrumentationLibraryMetricsBuilder

        @Deprecated
        public InstrumentationLibraryMetrics.Builder getInstrumentationLibraryMetricsBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • getInstrumentationLibraryMetricsOrBuilder

        @Deprecated
        public InstrumentationLibraryMetricsOrBuilder getInstrumentationLibraryMetricsOrBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryMetricsOrBuilder in interface ResourceMetricsOrBuilder
      • getInstrumentationLibraryMetricsOrBuilderList

        @Deprecated
        public List<? extends InstrumentationLibraryMetricsOrBuilder> getInstrumentationLibraryMetricsOrBuilderList()
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryMetricsOrBuilderList in interface ResourceMetricsOrBuilder
      • addInstrumentationLibraryMetricsBuilder

        @Deprecated
        public InstrumentationLibraryMetrics.Builder addInstrumentationLibraryMetricsBuilder()
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • addInstrumentationLibraryMetricsBuilder

        @Deprecated
        public InstrumentationLibraryMetrics.Builder addInstrumentationLibraryMetricsBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • getInstrumentationLibraryMetricsBuilderList

        @Deprecated
        public List<InstrumentationLibraryMetrics.Builder> getInstrumentationLibraryMetricsBuilderList()
        Deprecated.
         A list of InstrumentationLibraryMetrics that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead
         scope_metrics SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set
         and scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_metrics field MAY also set
         scope_metrics to carry the same metrics, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_metrics and
         SHOULD NOT set instrumentation_library_metrics.
         JSON receivers SHOULD check if instrumentation_library_metrics is set and
         scope_metrics is not set then the value in instrumentation_library_metrics
         SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
         If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
         
        repeated .opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics instrumentation_library_metrics = 1000 [deprecated = true];
      • getSchemaUrl

        public String getSchemaUrl()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_metrics" field which have their own schema_url field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrl in interface ResourceMetricsOrBuilder
        Returns:
        The schemaUrl.
      • getSchemaUrlBytes

        public com.google.protobuf.ByteString getSchemaUrlBytes()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_metrics" field which have their own schema_url field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrlBytes in interface ResourceMetricsOrBuilder
        Returns:
        The bytes for schemaUrl.
      • setSchemaUrl

        public ResourceMetrics.Builder setSchemaUrl​(String value)
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_metrics" field which have their own schema_url field.
         
        string schema_url = 3;
        Parameters:
        value - The schemaUrl to set.
        Returns:
        This builder for chaining.
      • clearSchemaUrl

        public ResourceMetrics.Builder clearSchemaUrl()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_metrics" field which have their own schema_url field.
         
        string schema_url = 3;
        Returns:
        This builder for chaining.
      • setSchemaUrlBytes

        public ResourceMetrics.Builder setSchemaUrlBytes​(com.google.protobuf.ByteString value)
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_metrics" field which have their own schema_url field.
         
        string schema_url = 3;
        Parameters:
        value - The bytes for schemaUrl to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ResourceMetrics.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<ResourceMetrics.Builder>
      • mergeUnknownFields

        public final ResourceMetrics.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<ResourceMetrics.Builder>