Class ScheduledEvaluationRun.SchedulingConfig.Builder (0.3.0)

public static final class ScheduledEvaluationRun.SchedulingConfig.Builder extends GeneratedMessage.Builder<ScheduledEvaluationRun.SchedulingConfig.Builder> implements ScheduledEvaluationRun.SchedulingConfigOrBuilder

Eval scheduling configuration details

Protobuf type google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig

Static Methods

getDescriptor()

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

Methods

addAllDaysOfWeek(Iterable<? extends Integer> values)

public ScheduledEvaluationRun.SchedulingConfig.Builder addAllDaysOfWeek(Iterable<? extends Integer> values)

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The daysOfWeek to add.

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

addDaysOfWeek(int value)

public ScheduledEvaluationRun.SchedulingConfig.Builder addDaysOfWeek(int value)

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The daysOfWeek to add.

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

build()

public ScheduledEvaluationRun.SchedulingConfig build()
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig

buildPartial()

public ScheduledEvaluationRun.SchedulingConfig buildPartial()
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig

clear()

public ScheduledEvaluationRun.SchedulingConfig.Builder clear()
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder
Overrides

clearDaysOfWeek()

public ScheduledEvaluationRun.SchedulingConfig.Builder clearDaysOfWeek()

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

clearFrequency()

public ScheduledEvaluationRun.SchedulingConfig.Builder clearFrequency()

Required. The frequency with which to run the eval

.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.Frequency frequency = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

clearStartTime()

public ScheduledEvaluationRun.SchedulingConfig.Builder clearStartTime()

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

getDaysOfWeek(int index)

public int getDaysOfWeek(int index)

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The daysOfWeek at the given index.

getDaysOfWeekCount()

public int getDaysOfWeekCount()

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of daysOfWeek.

getDaysOfWeekList()

public List<Integer> getDaysOfWeekList()

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the daysOfWeek.

getDefaultInstanceForType()

public ScheduledEvaluationRun.SchedulingConfig getDefaultInstanceForType()
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig

getDescriptorForType()

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

getFrequency()

public ScheduledEvaluationRun.SchedulingConfig.Frequency getFrequency()

Required. The frequency with which to run the eval

.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.Frequency frequency = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Frequency

The frequency.

getFrequencyValue()

public int getFrequencyValue()

Required. The frequency with which to run the eval

.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.Frequency frequency = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for frequency.

getStartTime()

public Timestamp getStartTime()

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

hasStartTime()

public boolean hasStartTime()

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScheduledEvaluationRun.SchedulingConfig other)

public ScheduledEvaluationRun.SchedulingConfig.Builder mergeFrom(ScheduledEvaluationRun.SchedulingConfig other)
Parameter
Name Description
other ScheduledEvaluationRun.SchedulingConfig
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScheduledEvaluationRun.SchedulingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ScheduledEvaluationRun.SchedulingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder
Overrides

mergeStartTime(Timestamp value)

public ScheduledEvaluationRun.SchedulingConfig.Builder mergeStartTime(Timestamp value)

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

setDaysOfWeek(int index, int value)

public ScheduledEvaluationRun.SchedulingConfig.Builder setDaysOfWeek(int index, int value)

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

repeated int32 days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The daysOfWeek to set.

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

setFrequency(ScheduledEvaluationRun.SchedulingConfig.Frequency value)

public ScheduledEvaluationRun.SchedulingConfig.Builder setFrequency(ScheduledEvaluationRun.SchedulingConfig.Frequency value)

Required. The frequency with which to run the eval

.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.Frequency frequency = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ScheduledEvaluationRun.SchedulingConfig.Frequency

The frequency to set.

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

setFrequencyValue(int value)

public ScheduledEvaluationRun.SchedulingConfig.Builder setFrequencyValue(int value)

Required. The frequency with which to run the eval

.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.Frequency frequency = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for frequency to set.

Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

This builder for chaining.

setStartTime(Timestamp value)

public ScheduledEvaluationRun.SchedulingConfig.Builder setStartTime(Timestamp value)

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder

setStartTime(Timestamp.Builder builderForValue)

public ScheduledEvaluationRun.SchedulingConfig.Builder setStartTime(Timestamp.Builder builderForValue)

Required. Timestamp when the eval should start.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScheduledEvaluationRun.SchedulingConfig.Builder