Class MetricDescriptor.MetricDescriptorMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder
All Implemented Interfaces:
MetricDescriptor.MetricDescriptorMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MetricDescriptor.MetricDescriptorMetadata

public static final class MetricDescriptor.MetricDescriptorMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder> implements MetricDescriptor.MetricDescriptorMetadataOrBuilder
 Additional annotations that can be used to guide the usage of a metric.
 
Protobuf type google.api.MetricDescriptor.MetricDescriptorMetadata
  • Method Details

    • 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<MetricDescriptor.MetricDescriptorMetadata.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<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.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<MetricDescriptor.MetricDescriptorMetadata.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

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

      @Deprecated public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStageValue(int value)
      Deprecated.
       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.
       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.
       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.
       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 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

       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(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

       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

       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 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 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.
    • setIngestDelay

       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

       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

       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

       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 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 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
    • setUnknownFields

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

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