Class AutomatedBackupPolicy.WeeklySchedule.Builder (0.14.1)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.type.DayOfWeek>

The daysOfWeek to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.type.TimeOfDay>
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DayOfWeek

The daysOfWeek to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.WeeklySchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.type.TimeOfDay
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.TimeOfDay.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.type.TimeOfDay
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.type.TimeOfDay.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.type.TimeOfDay.Builder

build()

public AutomatedBackupPolicy.WeeklySchedule build()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule

buildPartial()

public AutomatedBackupPolicy.WeeklySchedule buildPartial()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule

clear()

public AutomatedBackupPolicy.WeeklySchedule.Builder clear()
Returns
TypeDescription
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
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutomatedBackupPolicy.WeeklySchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupPolicy.WeeklySchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

clone()

public AutomatedBackupPolicy.WeeklySchedule.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
List<Integer>

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

getDefaultInstanceForType()

public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.type.TimeOfDayOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)

public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
Parameter
NameDescription
otherAutomatedBackupPolicy.WeeklySchedule
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.WeeklySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valuecom.google.type.DayOfWeek

The daysOfWeek to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.WeeklySchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.type.TimeOfDay
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.type.TimeOfDay.Builder
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.WeeklySchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides