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.v1alpha.AutomatedBackupPolicy.WeeklySchedule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutomatedBackupPolicy.WeeklySchedule.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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;
Name | Description |
values |
Iterable<? extends com.google.type.DayOfWeek> The daysOfWeek to add. |
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;
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for daysOfWeek to add. |
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;
Name | Description |
values |
Iterable<? extends com.google.type.TimeOfDay> |
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;
Name | Description |
value |
com.google.type.DayOfWeek The daysOfWeek to add. |
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;
Name | Description |
value |
int The enum numeric value on the wire for daysOfWeek to add. |
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)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
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;
Name | Description |
value |
com.google.type.TimeOfDay |
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;
Name | Description |
builderForValue |
com.google.type.TimeOfDay.Builder |
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;
Name | Description |
index |
int |
value |
com.google.type.TimeOfDay |
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;
Name | Description |
index |
int |
builderForValue |
com.google.type.TimeOfDay.Builder |
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;
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;
Name | Description |
index |
int |
Type | Description |
com.google.type.TimeOfDay.Builder |
build()
public AutomatedBackupPolicy.WeeklySchedule build()
Type | Description |
AutomatedBackupPolicy.WeeklySchedule |
buildPartial()
public AutomatedBackupPolicy.WeeklySchedule buildPartial()
Type | Description |
AutomatedBackupPolicy.WeeklySchedule |
clear()
public AutomatedBackupPolicy.WeeklySchedule.Builder clear()
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
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;
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AutomatedBackupPolicy.WeeklySchedule.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.WeeklySchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
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;
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
clone()
public AutomatedBackupPolicy.WeeklySchedule.Builder clone()
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
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;
Name | Description |
index |
int The index of the element to return. |
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;
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;
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;
Name | Description |
index |
int The index of the value to return. |
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;
Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for daysOfWeek. |
getDefaultInstanceForType()
public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
Type | Description |
AutomatedBackupPolicy.WeeklySchedule |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Name | Description |
index |
int |
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;
Name | Description |
index |
int |
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;
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;
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;
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;
Name | Description |
index |
int |
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;
Type | Description |
List<? extends com.google.type.TimeOfDayOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
Name | Description |
other |
AutomatedBackupPolicy.WeeklySchedule |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.WeeklySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
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;
Name | Description |
index |
int |
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;
Name | Description |
index |
int The index to set the value at. |
value |
com.google.type.DayOfWeek The daysOfWeek to set. |
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;
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for daysOfWeek to set. |
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)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomatedBackupPolicy.WeeklySchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
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;
Name | Description |
index |
int |
value |
com.google.type.TimeOfDay |
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;
Name | Description |
index |
int |
builderForValue |
com.google.type.TimeOfDay.Builder |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.WeeklySchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AutomatedBackupPolicy.WeeklySchedule.Builder |