Package com.google.cloud.alloydb.v1
Class AutomatedBackupPolicy.WeeklySchedule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule
-
- All Implemented Interfaces:
AutomatedBackupPolicy.WeeklyScheduleOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- AutomatedBackupPolicy
public static final class AutomatedBackupPolicy.WeeklySchedule extends com.google.protobuf.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 typegoogle.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutomatedBackupPolicy.WeeklySchedule.Builder
A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DAYS_OF_WEEK_FIELD_NUMBER
static int
START_TIMES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.static AutomatedBackupPolicy.WeeklySchedule
getDefaultInstance()
AutomatedBackupPolicy.WeeklySchedule
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule>
getParserForType()
int
getSerializedSize()
com.google.type.TimeOfDay
getStartTimes(int index)
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.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AutomatedBackupPolicy.WeeklySchedule.Builder
newBuilder()
static AutomatedBackupPolicy.WeeklySchedule.Builder
newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)
AutomatedBackupPolicy.WeeklySchedule.Builder
newBuilderForType()
protected AutomatedBackupPolicy.WeeklySchedule.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AutomatedBackupPolicy.WeeklySchedule
parseDelimitedFrom(InputStream input)
static AutomatedBackupPolicy.WeeklySchedule
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(byte[] data)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(com.google.protobuf.ByteString data)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(com.google.protobuf.CodedInputStream input)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(InputStream input)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(ByteBuffer data)
static AutomatedBackupPolicy.WeeklySchedule
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule>
parser()
AutomatedBackupPolicy.WeeklySchedule.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
START_TIMES_FIELD_NUMBER
public static final int START_TIMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DAYS_OF_WEEK_FIELD_NUMBER
public static final int DAYS_OF_WEEK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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
-
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
-
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
-
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
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AutomatedBackupPolicy.WeeklySchedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder()
-
newBuilder
public static AutomatedBackupPolicy.WeeklySchedule.Builder newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)
-
toBuilder
public AutomatedBackupPolicy.WeeklySchedule.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AutomatedBackupPolicy.WeeklySchedule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule> parser()
-
getParserForType
public com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-