Class AlertPolicy.Condition.SqlCondition.Hourly.Builder (3.57.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.SqlCondition.Hourly.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.Condition.SqlCondition.Hourly.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

clearMinuteOffset()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.Condition.SqlCondition.Hourly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

clearPeriodicity()

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

This builder for chaining.

clone()

public AlertPolicy.Condition.SqlCondition.Hourly.Builder clone()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

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

Returns
Type Description
int

The minuteOffset.

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

Returns
Type Description
int

The periodicity.

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

Returns
Type Description
boolean

Whether the minuteOffset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlertPolicy.Condition.SqlCondition.Hourly other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.SqlCondition.Hourly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.SqlCondition.Hourly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

setMinuteOffset(int value)

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

Parameter
Name Description
value int

The minuteOffset to set.

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

This builder for chaining.

setPeriodicity(int value)

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

Parameter
Name Description
value int

The periodicity to set.

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

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlertPolicy.Condition.SqlCondition.Hourly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.SqlCondition.Hourly.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly.Builder
Overrides