Package com.google.cloud.alloydb.v1alpha
Class AutomatedBackupPolicy.WeeklySchedule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.alloydb.v1alpha.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.v1alpha.AutomatedBackupPolicy.WeeklySchedule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutomatedBackupPolicy.WeeklySchedule.BuilderA 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 intDAYS_OF_WEEK_FIELD_NUMBERstatic intSTART_TIMES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.type.DayOfWeekgetDaysOfWeek(int index)The days of the week to perform a backup.intgetDaysOfWeekCount()The days of the week to perform a backup.List<com.google.type.DayOfWeek>getDaysOfWeekList()The days of the week to perform a backup.intgetDaysOfWeekValue(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.WeeklySchedulegetDefaultInstance()AutomatedBackupPolicy.WeeklySchedulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule>getParserForType()intgetSerializedSize()com.google.type.TimeOfDaygetStartTimes(int index)The times during the day to start a backup.intgetStartTimesCount()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.TimeOfDayOrBuildergetStartTimesOrBuilder(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.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AutomatedBackupPolicy.WeeklySchedule.BuildernewBuilder()static AutomatedBackupPolicy.WeeklySchedule.BuildernewBuilder(AutomatedBackupPolicy.WeeklySchedule prototype)AutomatedBackupPolicy.WeeklySchedule.BuildernewBuilderForType()protected AutomatedBackupPolicy.WeeklySchedule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AutomatedBackupPolicy.WeeklyScheduleparseDelimitedFrom(InputStream input)static AutomatedBackupPolicy.WeeklyScheduleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(byte[] data)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(com.google.protobuf.ByteString data)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(com.google.protobuf.CodedInputStream input)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(InputStream input)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(ByteBuffer data)static AutomatedBackupPolicy.WeeklyScheduleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule>parser()AutomatedBackupPolicy.WeeklySchedule.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getStartTimesListin 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:
getStartTimesOrBuilderListin 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:
getStartTimesCountin 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:
getStartTimesin 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:
getStartTimesOrBuilderin 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:
getDaysOfWeekListin 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:
getDaysOfWeekCountin 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:
getDaysOfWeekin 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:
getDaysOfWeekValueListin 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:
getDaysOfWeekValuein 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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-