Class AutomatedBackupPolicy.WeeklySchedule.Builder (0.36.0)

public static final class AutomatedBackupPolicy.WeeklySchedule.Builder extends GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder> implements AutomatedBackupPolicy.WeeklyScheduleOrBuilder

A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week.

The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the start_times field to have one element "22:00" and the days_of_week field to have all seven days of the week.

Protobuf type google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule

Static Methods

getDescriptor()

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

Methods

addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)

public AutomatedBackupPolicy.WeeklySchedule.Builder addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameter
Name Description
values Iterable<? extends com.google.type.DayOfWeek>

The daysOfWeek to add.

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

addAllDaysOfWeekValue(Iterable<Integer> values)

public AutomatedBackupPolicy.WeeklySchedule.Builder addAllDaysOfWeekValue(Iterable<Integer> values)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for daysOfWeek to add.

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

addAllStartTimes(Iterable<? extends TimeOfDay> values)

public AutomatedBackupPolicy.WeeklySchedule.Builder addAllStartTimes(Iterable<? extends TimeOfDay> values)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
values Iterable<? extends com.google.type.TimeOfDay>
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

addDaysOfWeek(DayOfWeek value)

public AutomatedBackupPolicy.WeeklySchedule.Builder addDaysOfWeek(DayOfWeek value)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameter
Name Description
value com.google.type.DayOfWeek

The daysOfWeek to add.

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

addDaysOfWeekValue(int value)

public AutomatedBackupPolicy.WeeklySchedule.Builder addDaysOfWeekValue(int value)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for daysOfWeek to add.

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.WeeklySchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

addStartTimes(TimeOfDay value)

public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(TimeOfDay value)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

addStartTimes(TimeOfDay.Builder builderForValue)

public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(TimeOfDay.Builder builderForValue)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

addStartTimes(int index, TimeOfDay value)

public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(int index, TimeOfDay value)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameters
Name Description
index int
value com.google.type.TimeOfDay
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

addStartTimes(int index, TimeOfDay.Builder builderForValue)

public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(int index, TimeOfDay.Builder builderForValue)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameters
Name Description
index int
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

addStartTimesBuilder()

public TimeOfDay.Builder addStartTimesBuilder()

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

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

addStartTimesBuilder(int index)

public TimeOfDay.Builder addStartTimesBuilder(int index)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.TimeOfDay.Builder

build()

public AutomatedBackupPolicy.WeeklySchedule build()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule

buildPartial()

public AutomatedBackupPolicy.WeeklySchedule buildPartial()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule

clear()

public AutomatedBackupPolicy.WeeklySchedule.Builder clear()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

clearDaysOfWeek()

public AutomatedBackupPolicy.WeeklySchedule.Builder clearDaysOfWeek()

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutomatedBackupPolicy.WeeklySchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupPolicy.WeeklySchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

clearStartTimes()

public AutomatedBackupPolicy.WeeklySchedule.Builder clearStartTimes()

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

clone()

public AutomatedBackupPolicy.WeeklySchedule.Builder clone()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

getDaysOfWeek(int index)

public DayOfWeek getDaysOfWeek(int index)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
com.google.type.DayOfWeek

The daysOfWeek at the given index.

getDaysOfWeekCount()

public int getDaysOfWeekCount()

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Returns
Type Description
int

The count of daysOfWeek.

getDaysOfWeekList()

public List<DayOfWeek> getDaysOfWeekList()

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Returns
Type Description
List<com.google.type.DayOfWeek>

A list containing the daysOfWeek.

getDaysOfWeekValue(int index)

public int getDaysOfWeekValue(int index)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of daysOfWeek at the given index.

getDaysOfWeekValueList()

public List<Integer> getDaysOfWeekValueList()

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for daysOfWeek.

getDefaultInstanceForType()

public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule

getDescriptorForType()

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

getStartTimes(int index)

public TimeOfDay getStartTimes(int index)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.TimeOfDay

getStartTimesBuilder(int index)

public TimeOfDay.Builder getStartTimesBuilder(int index)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.TimeOfDay.Builder

getStartTimesBuilderList()

public List<TimeOfDay.Builder> getStartTimesBuilderList()

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Returns
Type Description
List<com.google.type.TimeOfDay.Builder>

getStartTimesCount()

public int getStartTimesCount()

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Returns
Type Description
int

getStartTimesList()

public List<TimeOfDay> getStartTimesList()

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Returns
Type Description
List<com.google.type.TimeOfDay>

getStartTimesOrBuilder(int index)

public TimeOfDayOrBuilder getStartTimesOrBuilder(int index)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.TimeOfDayOrBuilder

getStartTimesOrBuilderList()

public List<? extends TimeOfDayOrBuilder> getStartTimesOrBuilderList()

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Returns
Type Description
List<? extends com.google.type.TimeOfDayOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)

public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
Parameter
Name Description
other AutomatedBackupPolicy.WeeklySchedule
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.WeeklySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

removeStartTimes(int index)

public AutomatedBackupPolicy.WeeklySchedule.Builder removeStartTimes(int index)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameter
Name Description
index int
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

setDaysOfWeek(int index, DayOfWeek value)

public AutomatedBackupPolicy.WeeklySchedule.Builder setDaysOfWeek(int index, DayOfWeek value)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameters
Name Description
index int

The index to set the value at.

value com.google.type.DayOfWeek

The daysOfWeek to set.

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

setDaysOfWeekValue(int index, int value)

public AutomatedBackupPolicy.WeeklySchedule.Builder setDaysOfWeekValue(int index, int value)

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is used.

repeated .google.type.DayOfWeek days_of_week = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.WeeklySchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

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

public AutomatedBackupPolicy.WeeklySchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

setStartTimes(int index, TimeOfDay value)

public AutomatedBackupPolicy.WeeklySchedule.Builder setStartTimes(int index, TimeOfDay value)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameters
Name Description
index int
value com.google.type.TimeOfDay
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

setStartTimes(int index, TimeOfDay.Builder builderForValue)

public AutomatedBackupPolicy.WeeklySchedule.Builder setStartTimes(int index, TimeOfDay.Builder builderForValue)

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen arbitrarily.

repeated .google.type.TimeOfDay start_times = 1;

Parameters
Name Description
index int
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.WeeklySchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides