public static final class AutomatedBackupPolicy.WeeklySchedule extends GeneratedMessageV3 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
Static Fields
DAYS_OF_WEEK_FIELD_NUMBER
public static final int DAYS_OF_WEEK_FIELD_NUMBER
Field Value
START_TIMES_FIELD_NUMBER
public static final int START_TIMES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AutomatedBackupPolicy.WeeklySchedule getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder()
Returns
newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)
public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)
Parameter
Returns
public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AutomatedBackupPolicy.WeeklySchedule> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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 |
int
The 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 |
int
The 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
getParserForType()
public Parser<AutomatedBackupPolicy.WeeklySchedule> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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 |
|
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
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> |
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AutomatedBackupPolicy.WeeklySchedule.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions