Class AutomatedBackupPolicy.WeeklySchedule (0.30.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.v1alpha.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
TypeDescription
int

START_TIMES_FIELD_NUMBER

public static final int START_TIMES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutomatedBackupPolicy.WeeklySchedule getDefaultInstance()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)

public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)
Parameter
NameDescription
prototypeAutomatedBackupPolicy.WeeklySchedule
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

parseDelimitedFrom(InputStream input)

public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for daysOfWeek.

getDefaultInstanceForType()

public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.type.TimeOfDayOrBuilder>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AutomatedBackupPolicy.WeeklySchedule.Builder toBuilder()
Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException