Class MetricDescriptor.MetricDescriptorMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.api.MetricDescriptor.MetricDescriptorMetadata
All Implemented Interfaces:
MetricDescriptor.MetricDescriptorMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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:
  • Field Details

    • LAUNCH_STAGE_FIELD_NUMBER

      public static final int LAUNCH_STAGE_FIELD_NUMBER
      See Also:
    • SAMPLE_PERIOD_FIELD_NUMBER

      public static final int SAMPLE_PERIOD_FIELD_NUMBER
      See Also:
    • INGEST_DELAY_FIELD_NUMBER

      public static final int INGEST_DELAY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getLaunchStageValue

      @Deprecated public int getLaunchStageValue()
      Deprecated.
       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.
       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 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 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 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 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
    • isInitialized

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

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

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

      public boolean equals(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricDescriptor.MetricDescriptorMetadata parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static MetricDescriptor.MetricDescriptorMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static MetricDescriptor.MetricDescriptorMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder 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
    • getDefaultInstance

      public static MetricDescriptor.MetricDescriptorMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MetricDescriptor.MetricDescriptorMetadata> parser()
    • 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.GeneratedMessageV3
    • getDefaultInstanceForType

      public MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder