Class AlertPolicy.Condition.SqlCondition.Daily.Builder

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

public static final class AlertPolicy.Condition.SqlCondition.Daily.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.Daily.Builder> implements AlertPolicy.Condition.SqlCondition.DailyOrBuilder
 Used to schedule the query to run every so many days.
 
Protobuf type google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily
  • 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.Daily.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.Daily.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.Daily.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public boolean hasExecutionTime()
       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExecutionTime in interface AlertPolicy.Condition.SqlCondition.DailyOrBuilder
      Returns:
      Whether the executionTime field is set.
    • getExecutionTime

      public TimeOfDay getExecutionTime()
       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExecutionTime in interface AlertPolicy.Condition.SqlCondition.DailyOrBuilder
      Returns:
      The executionTime.
    • setExecutionTime

       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setExecutionTime

      public AlertPolicy.Condition.SqlCondition.Daily.Builder setExecutionTime(TimeOfDay.Builder builderForValue)
       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeExecutionTime

       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearExecutionTime

       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getExecutionTimeBuilder

      public TimeOfDay.Builder getExecutionTimeBuilder()
       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getExecutionTimeOrBuilder

      public TimeOfDayOrBuilder getExecutionTimeOrBuilder()
       Optional. The time of day (in UTC) at which the query should run. If
       left unspecified, the server picks an arbitrary time of day and runs
       the query at the same time each day.
       
      .google.type.TimeOfDay execution_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExecutionTimeOrBuilder in interface AlertPolicy.Condition.SqlCondition.DailyOrBuilder