Class AutomatedBackupPolicy.WeeklySchedule (0.22.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AutomatedBackupPolicy.WeeklySchedule

Static Fields

DAYS_OF_WEEK_FIELD_NUMBER

public static final int DAYS_OF_WEEK_FIELD_NUMBER
Field Value
Type Description
int

START_TIMES_FIELD_NUMBER

public static final int START_TIMES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutomatedBackupPolicy.WeeklySchedule getDefaultInstance()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)

public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)
Parameter
Name Description
prototype AutomatedBackupPolicy.WeeklySchedule
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

parseDelimitedFrom(InputStream input)

public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AutomatedBackupPolicy.WeeklySchedule> parser()
Returns
Type Description
Parser<WeeklySchedule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
AutomatedBackupPolicy.WeeklySchedule

getParserForType()

public Parser<AutomatedBackupPolicy.WeeklySchedule> getParserForType()
Returns
Type Description
Parser<WeeklySchedule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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
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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AutomatedBackupPolicy.WeeklySchedule.Builder toBuilder()
Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException