Class AlertPolicy.Condition.SqlCondition.Hourly.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.Hourly.Builder>
com.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly.Builder
All Implemented Interfaces:
AlertPolicy.Condition.SqlCondition.HourlyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AlertPolicy.Condition.SqlCondition.Hourly

public static final class AlertPolicy.Condition.SqlCondition.Hourly.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.Hourly.Builder> implements AlertPolicy.Condition.SqlCondition.HourlyOrBuilder
 Used to schedule the query to run every so many hours.
 
Protobuf type google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.Hourly.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.GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.Hourly.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<AlertPolicy.Condition.SqlCondition.Hourly.Builder>
    • getDefaultInstanceForType

      public AlertPolicy.Condition.SqlCondition.Hourly 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
    • mergeFrom

      public AlertPolicy.Condition.SqlCondition.Hourly.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<AlertPolicy.Condition.SqlCondition.Hourly.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.Hourly.Builder>
    • mergeFrom

      public AlertPolicy.Condition.SqlCondition.Hourly.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<AlertPolicy.Condition.SqlCondition.Hourly.Builder>
      Throws:
      IOException
    • getPeriodicity

      public int getPeriodicity()
       Required. The number of hours between runs. Must be greater than or
       equal to 1 hour and less than or equal to 48 hours.
       
      int32 periodicity = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPeriodicity in interface AlertPolicy.Condition.SqlCondition.HourlyOrBuilder
      Returns:
      The periodicity.
    • setPeriodicity

      public AlertPolicy.Condition.SqlCondition.Hourly.Builder setPeriodicity(int value)
       Required. The number of hours between runs. Must be greater than or
       equal to 1 hour and less than or equal to 48 hours.
       
      int32 periodicity = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The periodicity to set.
      Returns:
      This builder for chaining.
    • clearPeriodicity

       Required. The number of hours between runs. Must be greater than or
       equal to 1 hour and less than or equal to 48 hours.
       
      int32 periodicity = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasMinuteOffset

      public boolean hasMinuteOffset()
       Optional. The number of minutes after the hour (in UTC) to run the
       query. Must be greater than or equal to 0 minutes and less than or
       equal to 59 minutes.  If left unspecified, then an arbitrary offset
       is used.
       
      optional int32 minute_offset = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMinuteOffset in interface AlertPolicy.Condition.SqlCondition.HourlyOrBuilder
      Returns:
      Whether the minuteOffset field is set.
    • getMinuteOffset

      public int getMinuteOffset()
       Optional. The number of minutes after the hour (in UTC) to run the
       query. Must be greater than or equal to 0 minutes and less than or
       equal to 59 minutes.  If left unspecified, then an arbitrary offset
       is used.
       
      optional int32 minute_offset = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinuteOffset in interface AlertPolicy.Condition.SqlCondition.HourlyOrBuilder
      Returns:
      The minuteOffset.
    • setMinuteOffset

      public AlertPolicy.Condition.SqlCondition.Hourly.Builder setMinuteOffset(int value)
       Optional. The number of minutes after the hour (in UTC) to run the
       query. Must be greater than or equal to 0 minutes and less than or
       equal to 59 minutes.  If left unspecified, then an arbitrary offset
       is used.
       
      optional int32 minute_offset = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The minuteOffset to set.
      Returns:
      This builder for chaining.
    • clearMinuteOffset

       Optional. The number of minutes after the hour (in UTC) to run the
       query. Must be greater than or equal to 0 minutes and less than or
       equal to 59 minutes.  If left unspecified, then an arbitrary offset
       is used.
       
      optional int32 minute_offset = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.