- 0.67.0 (latest)
 - 0.65.0
 - 0.64.0
 - 0.63.0
 - 0.62.0
 - 0.61.0
 - 0.59.0
 - 0.57.0
 - 0.56.0
 - 0.53.0
 - 0.52.0
 - 0.51.0
 - 0.49.0
 - 0.48.0
 - 0.47.0
 - 0.46.0
 - 0.45.0
 - 0.44.0
 - 0.43.0
 - 0.42.0
 - 0.41.0
 - 0.40.0
 - 0.38.0
 - 0.37.0
 - 0.36.0
 - 0.35.0
 - 0.34.0
 - 0.33.0
 - 0.32.0
 - 0.31.0
 - 0.30.0
 - 0.29.0
 - 0.28.0
 - 0.26.0
 - 0.25.0
 - 0.24.0
 - 0.23.0
 - 0.22.0
 - 0.21.0
 - 0.20.0
 - 0.19.0
 - 0.18.0
 - 0.17.0
 - 0.16.0
 - 0.13.0
 - 0.12.0
 - 0.11.0
 - 0.10.0
 - 0.9.0
 - 0.8.0
 - 0.7.0
 - 0.6.0
 - 0.5.0
 - 0.4.0
 - 0.3.0
 - 0.2.0
 - 0.1.0
 
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()| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<? extends com.google.type.DayOfWeek>The daysOfWeek to add.  | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<Integer>The enum numeric values on the wire for daysOfWeek to add.  | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<? extends com.google.type.TimeOfDay> | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        com.google.type.DayOfWeekThe daysOfWeek to add.  | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe enum numeric value on the wire for daysOfWeek to add.  | 
      
| Returns | |
|---|---|
| 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)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        com.google.type.TimeOfDay | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        com.google.type.TimeOfDay.Builder | 
      
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        com.google.type.TimeOfDay | 
      
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        com.google.type.TimeOfDay.Builder | 
      
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
com.google.type.TimeOfDay.Builder | 
        |
build()
public AutomatedBackupPolicy.WeeklySchedule build()| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule | 
        |
buildPartial()
public AutomatedBackupPolicy.WeeklySchedule buildPartial()| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule | 
        |
clear()
public AutomatedBackupPolicy.WeeklySchedule.Builder clear()| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public AutomatedBackupPolicy.WeeklySchedule.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.WeeklySchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |
clone()
public AutomatedBackupPolicy.WeeklySchedule.Builder clone()| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description | 
List<Integer> | 
        A list containing the enum numeric values on the wire for daysOfWeek.  | 
      
getDefaultInstanceForType()
public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description | 
List<? extends com.google.type.TimeOfDayOrBuilder> | 
        |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(AutomatedBackupPolicy.WeeklySchedule other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        AutomatedBackupPolicy.WeeklySchedule | 
      
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public AutomatedBackupPolicy.WeeklySchedule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.WeeklySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        com.google.type.DayOfWeekThe daysOfWeek to set.  | 
      
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        intThe enum numeric value on the wire for daysOfWeek to set.  | 
      
| Returns | |
|---|---|
| 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)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| 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)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        com.google.type.TimeOfDay | 
      
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        com.google.type.TimeOfDay.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.WeeklySchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
AutomatedBackupPolicy.WeeklySchedule.Builder | 
        |