Package com.google.cloud.alloydb.v1
Class AutomatedBackupPolicy.WeeklySchedule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
- com.google.cloud.alloydb.v1.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.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 typegoogle.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
The times during the day to start a backup.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(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.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 value)
The times during the day to start a backup.AutomatedBackupPolicy.WeeklySchedule.Builder
setStartTimes(int index, com.google.type.TimeOfDay.Builder builderForValue)
The times during the day to start a backup.AutomatedBackupPolicy.WeeklySchedule.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
clear
public AutomatedBackupPolicy.WeeklySchedule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
getDefaultInstanceForType
public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutomatedBackupPolicy.WeeklySchedule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutomatedBackupPolicy.WeeklySchedule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutomatedBackupPolicy.WeeklySchedule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
setField
public AutomatedBackupPolicy.WeeklySchedule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
clearField
public AutomatedBackupPolicy.WeeklySchedule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
clearOneof
public AutomatedBackupPolicy.WeeklySchedule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
setRepeatedField
public AutomatedBackupPolicy.WeeklySchedule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
addRepeatedField
public AutomatedBackupPolicy.WeeklySchedule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
mergeFrom
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
mergeFrom
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
mergeFrom
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
- Throws:
IOException
-
getStartTimesList
public 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;
- Specified by:
getStartTimesList
in 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:
getStartTimesCount
in interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
getStartTimes
public 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;
- Specified by:
getStartTimes
in interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
setStartTimes
public 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;
-
setStartTimes
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;
-
addStartTimes
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;
-
addStartTimes
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;
-
addStartTimes
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;
-
addStartTimes
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;
-
addAllStartTimes
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;
-
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;
-
removeStartTimes
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;
-
getStartTimesBuilder
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;
-
getStartTimesOrBuilder
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;
- Specified by:
getStartTimesOrBuilder
in interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
getStartTimesOrBuilderList
public 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;
- Specified by:
getStartTimesOrBuilderList
in interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
-
addStartTimesBuilder
public 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;
-
addStartTimesBuilder
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;
-
getStartTimesBuilderList
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;
-
getDaysOfWeekList
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;
- Specified by:
getDaysOfWeekList
in 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:
getDaysOfWeekCount
in interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
- Returns:
- The count of daysOfWeek.
-
getDaysOfWeek
public 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;
- Specified by:
getDaysOfWeek
in interfaceAutomatedBackupPolicy.WeeklyScheduleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The daysOfWeek at the given index.
-
setDaysOfWeek
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;
- Parameters:
index
- The index to set the value at.value
- The daysOfWeek to set.- Returns:
- This builder for chaining.
-
addDaysOfWeek
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;
- Parameters:
value
- The daysOfWeek to add.- Returns:
- This builder for chaining.
-
addAllDaysOfWeek
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;
- Parameters:
values
- The daysOfWeek to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getDaysOfWeekValueList
in 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:
getDaysOfWeekValue
in 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
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:
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
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;
- Parameters:
value
- The enum numeric value on the wire for daysOfWeek to add.- Returns:
- This builder for chaining.
-
addAllDaysOfWeekValue
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;
- Parameters:
values
- The enum numeric values on the wire for daysOfWeek to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AutomatedBackupPolicy.WeeklySchedule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
mergeUnknownFields
public final AutomatedBackupPolicy.WeeklySchedule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.WeeklySchedule.Builder>
-
-