Class MetricDescriptor.MetricDescriptorMetadata

  • All Implemented Interfaces:
    MetricDescriptor.MetricDescriptorMetadataOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable
    Enclosing class:
    MetricDescriptor

    public static final class MetricDescriptor.MetricDescriptorMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements MetricDescriptor.MetricDescriptorMetadataOrBuilder
     Additional annotations that can be used to guide the usage of a metric.
     
    Protobuf type google.api.MetricDescriptor.MetricDescriptorMetadata
    See Also:
    Serialized Form
    • Field Detail

      • LAUNCH_STAGE_FIELD_NUMBER

        public static final int LAUNCH_STAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SAMPLE_PERIOD_FIELD_NUMBER

        public static final int SAMPLE_PERIOD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INGEST_DELAY_FIELD_NUMBER

        public static final int INGEST_DELAY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_FIELD_NUMBER

        public static final int TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(java.nio.ByteBuffer data)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(java.nio.ByteBuffer data,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(com.google.protobuf.ByteString data)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(com.google.protobuf.ByteString data,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(byte[] data)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(byte[] data,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(java.io.InputStream input,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseDelimitedFrom​(java.io.InputStream input,
                                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MetricDescriptor.MetricDescriptorMetadata parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

        protected MetricDescriptor.MetricDescriptorMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<MetricDescriptor.MetricDescriptorMetadata> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • 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