Package com.google.cloud.alloydb.v1beta
Class AutomatedBackupPolicy.WeeklySchedule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule.Builder
- All Implemented Interfaces:
AutomatedBackupPolicy.WeeklyScheduleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutomatedBackupPolicy.WeeklySchedule
public static final class AutomatedBackupPolicy.WeeklySchedule.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDaysOfWeek(Iterable<? extends DayOfWeek> values) The days of the week to perform a backup.addAllDaysOfWeekValue(Iterable<Integer> values) The days of the week to perform a backup.addAllStartTimes(Iterable<? extends TimeOfDay> values) The times during the day to start a backup.addDaysOfWeek(DayOfWeek value) The days of the week to perform a backup.addDaysOfWeekValue(int value) The days of the week to perform a backup.addStartTimes(int index, TimeOfDay value) The times during the day to start a backup.addStartTimes(int index, TimeOfDay.Builder builderForValue) The times during the day to start a backup.addStartTimes(TimeOfDay value) The times during the day to start a backup.addStartTimes(TimeOfDay.Builder builderForValue) The times during the day to start a backup.The times during the day to start a backup.addStartTimesBuilder(int index) The times during the day to start a backup.build()clear()The days of the week to perform a backup.The times during the day to start a backup.getDaysOfWeek(int index) The days of the week to perform a backup.intThe days of the week to perform a backup.The days of the week to perform a backup.intgetDaysOfWeekValue(int index) The days of the week to perform a backup.The days of the week to perform a backup.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetStartTimes(int index) The times during the day to start a backup.getStartTimesBuilder(int index) The times during the day to start a backup.The times during the day to start a backup.intThe times during the day to start a backup.The times during the day to start a backup.getStartTimesOrBuilder(int index) The times during the day to start a backup.List<? extends TimeOfDayOrBuilder>The times during the day to start a backup.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeStartTimes(int index) The times during the day to start a backup.setDaysOfWeek(int index, DayOfWeek value) The days of the week to perform a backup.setDaysOfWeekValue(int index, int value) The days of the week to perform a backup.setStartTimes(int index, TimeOfDay value) The times during the day to start a backup.setStartTimes(int index, TimeOfDay.Builder builderForValue) The times during the day to start a backup.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
mergeFrom
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
mergeFrom
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>- Throws:
IOException
-
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;- Specified by:
getStartTimesListin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
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;- Specified by:
getStartTimesCountin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
getStartTimes
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;- Specified by:
getStartTimesin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
setStartTimes
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; -
setStartTimes
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; -
addStartTimes
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; -
addStartTimes
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; -
addStartTimes
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; -
addStartTimes
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; -
addAllStartTimes
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; -
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; -
removeStartTimes
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; -
getStartTimesBuilder
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
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;- Specified by:
getStartTimesOrBuilderin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
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;- Specified by:
getStartTimesOrBuilderListin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
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; -
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; -
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; -
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;- Specified by:
getDaysOfWeekListin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder- Returns:
- A list containing the daysOfWeek.
-
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;- Specified by:
getDaysOfWeekCountin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder- Returns:
- The count of daysOfWeek.
-
getDaysOfWeek
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;- Specified by:
getDaysOfWeekin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The daysOfWeek at the given index.
-
setDaysOfWeek
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:
index- The index to set the value at.value- The daysOfWeek to set.- Returns:
- This builder for chaining.
-
addDaysOfWeek
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:
value- The daysOfWeek to add.- Returns:
- This builder for chaining.
-
addAllDaysOfWeek
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;- Parameters:
values- The daysOfWeek to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getDaysOfWeekValueListin interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder- Returns:
- A list containing the enum numeric values on the wire for daysOfWeek.
-
getDaysOfWeekValue
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;- Specified by:
getDaysOfWeekValuein interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of daysOfWeek at the given index.
-
setDaysOfWeekValue
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:
index- The index to set the value at.value- The enum numeric value on the wire for daysOfWeek to set.- Returns:
- This builder for chaining.
-
addDaysOfWeekValue
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:
value- The enum numeric value on the wire for daysOfWeek to add.- Returns:
- This builder for chaining.
-
addAllDaysOfWeekValue
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:
values- The enum numeric values on the wire for daysOfWeek to add.- Returns:
- This builder for chaining.
-