Class AlertPolicy.Condition.SqlCondition.Daily.Builder (3.84.0)

public static final class AlertPolicy.Condition.SqlCondition.Daily.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AlertPolicy.Condition.SqlCondition.Daily build()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily

buildPartial()

public AlertPolicy.Condition.SqlCondition.Daily buildPartial()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily

clear()

public AlertPolicy.Condition.SqlCondition.Daily.Builder clear()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder
Overrides

clearExecutionTime()

public AlertPolicy.Condition.SqlCondition.Daily.Builder 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];

Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

clearPeriodicity()

public AlertPolicy.Condition.SqlCondition.Daily.Builder 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
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

This builder for chaining.

getDefaultInstanceForType()

public AlertPolicy.Condition.SqlCondition.Daily getDefaultInstanceForType()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
com.google.type.TimeOfDay

The executionTime.

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];

Returns
Type Description
com.google.type.TimeOfDay.Builder

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];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

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];

Returns
Type Description
int

The periodicity.

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];

Returns
Type Description
boolean

Whether the executionTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExecutionTime(TimeOfDay value)

public AlertPolicy.Condition.SqlCondition.Daily.Builder mergeExecutionTime(TimeOfDay value)

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];

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

mergeFrom(AlertPolicy.Condition.SqlCondition.Daily other)

public AlertPolicy.Condition.SqlCondition.Daily.Builder mergeFrom(AlertPolicy.Condition.SqlCondition.Daily other)
Parameter
Name Description
other AlertPolicy.Condition.SqlCondition.Daily
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertPolicy.Condition.SqlCondition.Daily.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlertPolicy.Condition.SqlCondition.Daily.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder
Overrides

setExecutionTime(TimeOfDay value)

public AlertPolicy.Condition.SqlCondition.Daily.Builder setExecutionTime(TimeOfDay value)

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];

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

setExecutionTime(TimeOfDay.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

setPeriodicity(int value)

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];

Parameter
Name Description
value int

The periodicity to set.

Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily.Builder

This builder for chaining.