Class MetricDescriptor.MetricDescriptorMetadata.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.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.GeneratedMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
      • getDefaultInstanceForType

        public MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

        public MetricDescriptor.MetricDescriptorMetadata 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.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,​MetricDescriptor.MetricDescriptorMetadata.Builder>
      • mergeFrom

        public MetricDescriptor.MetricDescriptorMetadata.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<MetricDescriptor.MetricDescriptorMetadata.Builder>
        Throws:
        java.io.IOException
      • getLaunchStageValue

        @Deprecated
        public int getLaunchStageValue()
        Deprecated.
        google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100
         Deprecated. Must use the
         [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
         instead.
         
        .google.api.LaunchStage launch_stage = 1 [deprecated = true];
        Specified by:
        getLaunchStageValue in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for launchStage.
      • setLaunchStageValue

        @Deprecated
        public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStageValue​(int value)
        Deprecated.
        google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100
         Deprecated. Must use the
         [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
         instead.
         
        .google.api.LaunchStage launch_stage = 1 [deprecated = true];
        Parameters:
        value - The enum numeric value on the wire for launchStage to set.
        Returns:
        This builder for chaining.
      • getLaunchStage

        @Deprecated
        public LaunchStage getLaunchStage()
        Deprecated.
        google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100
         Deprecated. Must use the
         [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
         instead.
         
        .google.api.LaunchStage launch_stage = 1 [deprecated = true];
        Specified by:
        getLaunchStage in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        The launchStage.
      • setLaunchStage

        @Deprecated
        public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStage​(LaunchStage value)
        Deprecated.
        google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100
         Deprecated. Must use the
         [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
         instead.
         
        .google.api.LaunchStage launch_stage = 1 [deprecated = true];
        Parameters:
        value - The launchStage to set.
        Returns:
        This builder for chaining.
      • clearLaunchStage

        @Deprecated
        public MetricDescriptor.MetricDescriptorMetadata.Builder clearLaunchStage()
        Deprecated.
        google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100
         Deprecated. Must use the
         [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
         instead.
         
        .google.api.LaunchStage launch_stage = 1 [deprecated = true];
        Returns:
        This builder for chaining.
      • hasSamplePeriod

        public boolean hasSamplePeriod()
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
        Specified by:
        hasSamplePeriod in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        Whether the samplePeriod field is set.
      • getSamplePeriod

        public com.google.protobuf.Duration getSamplePeriod()
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
        Specified by:
        getSamplePeriod in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        The samplePeriod.
      • setSamplePeriod

        public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod​(com.google.protobuf.Duration value)
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
      • setSamplePeriod

        public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod​(com.google.protobuf.Duration.Builder builderForValue)
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
      • mergeSamplePeriod

        public MetricDescriptor.MetricDescriptorMetadata.Builder mergeSamplePeriod​(com.google.protobuf.Duration value)
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
      • clearSamplePeriod

        public MetricDescriptor.MetricDescriptorMetadata.Builder clearSamplePeriod()
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
      • getSamplePeriodBuilder

        public com.google.protobuf.Duration.Builder getSamplePeriodBuilder()
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
      • getSamplePeriodOrBuilder

        public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder()
         The sampling period of metric data points. For metrics which are written
         periodically, consecutive data points are stored at this time interval,
         excluding data loss due to errors. Metrics with a higher granularity have
         a smaller sampling period.
         
        .google.protobuf.Duration sample_period = 2;
        Specified by:
        getSamplePeriodOrBuilder in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
      • hasIngestDelay

        public boolean hasIngestDelay()
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
        Specified by:
        hasIngestDelay in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        Whether the ingestDelay field is set.
      • getIngestDelay

        public com.google.protobuf.Duration getIngestDelay()
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
        Specified by:
        getIngestDelay in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        The ingestDelay.
      • setIngestDelay

        public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay​(com.google.protobuf.Duration value)
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
      • setIngestDelay

        public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay​(com.google.protobuf.Duration.Builder builderForValue)
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
      • mergeIngestDelay

        public MetricDescriptor.MetricDescriptorMetadata.Builder mergeIngestDelay​(com.google.protobuf.Duration value)
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
      • clearIngestDelay

        public MetricDescriptor.MetricDescriptorMetadata.Builder clearIngestDelay()
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
      • getIngestDelayBuilder

        public com.google.protobuf.Duration.Builder getIngestDelayBuilder()
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
      • getIngestDelayOrBuilder

        public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder()
         The delay of data points caused by ingestion. Data points older than this
         age are guaranteed to be ingested and available to be read, excluding
         data loss due to errors.
         
        .google.protobuf.Duration ingest_delay = 3;
        Specified by:
        getIngestDelayOrBuilder in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
      • getTimeSeriesResourceHierarchyLevelCount

        public int getTimeSeriesResourceHierarchyLevelCount()
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Specified by:
        getTimeSeriesResourceHierarchyLevelCount in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        The count of timeSeriesResourceHierarchyLevel.
      • clearTimeSeriesResourceHierarchyLevel

        public MetricDescriptor.MetricDescriptorMetadata.Builder clearTimeSeriesResourceHierarchyLevel()
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Returns:
        This builder for chaining.
      • getTimeSeriesResourceHierarchyLevelValueList

        public java.util.List<java.lang.Integer> getTimeSeriesResourceHierarchyLevelValueList()
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Specified by:
        getTimeSeriesResourceHierarchyLevelValueList in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for timeSeriesResourceHierarchyLevel.
      • getTimeSeriesResourceHierarchyLevelValue

        public int getTimeSeriesResourceHierarchyLevelValue​(int index)
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Specified by:
        getTimeSeriesResourceHierarchyLevelValue in interface MetricDescriptor.MetricDescriptorMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of timeSeriesResourceHierarchyLevel at the given index.
      • setTimeSeriesResourceHierarchyLevelValue

        public MetricDescriptor.MetricDescriptorMetadata.Builder setTimeSeriesResourceHierarchyLevelValue​(int index,
                                                                                                          int value)
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for timeSeriesResourceHierarchyLevel to set.
        Returns:
        This builder for chaining.
      • addTimeSeriesResourceHierarchyLevelValue

        public MetricDescriptor.MetricDescriptorMetadata.Builder addTimeSeriesResourceHierarchyLevelValue​(int value)
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Parameters:
        value - The enum numeric value on the wire for timeSeriesResourceHierarchyLevel to add.
        Returns:
        This builder for chaining.
      • addAllTimeSeriesResourceHierarchyLevelValue

        public MetricDescriptor.MetricDescriptorMetadata.Builder addAllTimeSeriesResourceHierarchyLevelValue​(java.lang.Iterable<java.lang.Integer> values)
         The scope of the timeseries data of the metric.
         
        repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
        Parameters:
        values - The enum numeric values on the wire for timeSeriesResourceHierarchyLevel to add.
        Returns:
        This builder for chaining.