public static final class AutomatedBackupPolicy.WeeklySchedule.Builder extends com.google.protobuf.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.v1.AutomatedBackupPolicy.WeeklySchedule| Modifier and Type | Method and Description |
|---|---|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addAllDaysOfWeek(Iterable<? extends com.google.type.DayOfWeek> values)
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addAllDaysOfWeekValue(Iterable<Integer> values)
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addAllStartTimes(Iterable<? extends com.google.type.TimeOfDay> values)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addDaysOfWeek(com.google.type.DayOfWeek value)
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addDaysOfWeekValue(int value)
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
addStartTimes(int index,
com.google.type.TimeOfDay.Builder builderForValue)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addStartTimes(int index,
com.google.type.TimeOfDay value)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addStartTimes(com.google.type.TimeOfDay.Builder builderForValue)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
addStartTimes(com.google.type.TimeOfDay value)
The times during the day to start a backup.
|
com.google.type.TimeOfDay.Builder |
addStartTimesBuilder()
The times during the day to start a backup.
|
com.google.type.TimeOfDay.Builder |
addStartTimesBuilder(int index)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule |
build() |
AutomatedBackupPolicy.WeeklySchedule |
buildPartial() |
AutomatedBackupPolicy.WeeklySchedule.Builder |
clear() |
AutomatedBackupPolicy.WeeklySchedule.Builder |
clearDaysOfWeek()
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
clearStartTimes()
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
clone() |
com.google.type.DayOfWeek |
getDaysOfWeek(int index)
The days of the week to perform a backup.
|
int |
getDaysOfWeekCount()
The days of the week to perform a backup.
|
List<com.google.type.DayOfWeek> |
getDaysOfWeekList()
The days of the week to perform a backup.
|
int |
getDaysOfWeekValue(int index)
The days of the week to perform a backup.
|
List<Integer> |
getDaysOfWeekValueList()
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.type.TimeOfDay |
getStartTimes(int index)
The times during the day to start a backup.
|
com.google.type.TimeOfDay.Builder |
getStartTimesBuilder(int index)
The times during the day to start a backup.
|
List<com.google.type.TimeOfDay.Builder> |
getStartTimesBuilderList()
The times during the day to start a backup.
|
int |
getStartTimesCount()
The times during the day to start a backup.
|
List<com.google.type.TimeOfDay> |
getStartTimesList()
The times during the day to start a backup.
|
com.google.type.TimeOfDayOrBuilder |
getStartTimesOrBuilder(int index)
The times during the day to start a backup.
|
List<? extends com.google.type.TimeOfDayOrBuilder> |
getStartTimesOrBuilderList()
The times during the day to start a backup.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AutomatedBackupPolicy.WeeklySchedule.Builder |
mergeFrom(AutomatedBackupPolicy.WeeklySchedule other) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
mergeFrom(com.google.protobuf.Message other) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
removeStartTimes(int index)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
setDaysOfWeek(int index,
com.google.type.DayOfWeek value)
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
setDaysOfWeekValue(int index,
int value)
The days of the week to perform a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AutomatedBackupPolicy.WeeklySchedule.Builder |
setStartTimes(int index,
com.google.type.TimeOfDay.Builder builderForValue)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
setStartTimes(int index,
com.google.type.TimeOfDay value)
The times during the day to start a backup.
|
AutomatedBackupPolicy.WeeklySchedule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutomatedBackupPolicy.WeeklySchedule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutomatedBackupPolicy.WeeklySchedule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutomatedBackupPolicy.WeeklySchedule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>IOExceptionpublic List<com.google.type.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;getStartTimesList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic 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;getStartTimesCount in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic com.google.type.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;getStartTimes in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic AutomatedBackupPolicy.WeeklySchedule.Builder setStartTimes(int index, com.google.type.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;public AutomatedBackupPolicy.WeeklySchedule.Builder setStartTimes(int index, com.google.type.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;public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(com.google.type.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;public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(int index, com.google.type.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;public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(com.google.type.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;public AutomatedBackupPolicy.WeeklySchedule.Builder addStartTimes(int index, com.google.type.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;public AutomatedBackupPolicy.WeeklySchedule.Builder addAllStartTimes(Iterable<? extends com.google.type.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;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;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;public com.google.type.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;public com.google.type.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;getStartTimesOrBuilder in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic List<? extends com.google.type.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;getStartTimesOrBuilderList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic com.google.type.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;public com.google.type.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;public List<com.google.type.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;public List<com.google.type.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;getDaysOfWeekList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic 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;getDaysOfWeekCount in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic com.google.type.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;getDaysOfWeek in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderindex - The index of the element to return.public AutomatedBackupPolicy.WeeklySchedule.Builder setDaysOfWeek(int index, com.google.type.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;index - The index to set the value at.value - The daysOfWeek to set.public AutomatedBackupPolicy.WeeklySchedule.Builder addDaysOfWeek(com.google.type.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;value - The daysOfWeek to add.public AutomatedBackupPolicy.WeeklySchedule.Builder addAllDaysOfWeek(Iterable<? extends com.google.type.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;values - The daysOfWeek to add.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;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;getDaysOfWeekValueList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderpublic 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;getDaysOfWeekValue in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The enum numeric value on the wire for daysOfWeek to set.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;value - The enum numeric value on the wire for daysOfWeek to add.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;values - The enum numeric values on the wire for daysOfWeek to add.public final AutomatedBackupPolicy.WeeklySchedule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>public final AutomatedBackupPolicy.WeeklySchedule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>Copyright © 2025 Google LLC. All rights reserved.