Package com.google.cloud.alloydb.v1beta
Class AutomatedBackupPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy
- All Implemented Interfaces:
AutomatedBackupPolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AutomatedBackupPolicy
extends com.google.protobuf.GeneratedMessage
implements AutomatedBackupPolicyOrBuilder
Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.Protobuf type
google.cloud.alloydb.v1beta.AutomatedBackupPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage describing the user-specified automated backup policy.static final classA quantity based policy specifies that a certain number of the most recent successful backups should be retained.static interfacestatic enumstatic enumstatic final classA time based retention policy specifies that all backups within a certain time period should be retained.static interfacestatic final classA weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels to apply to backups created using this configuration.booleancom.google.protobuf.DurationThe length of the time window during which a backup can be taken.com.google.protobuf.DurationOrBuilderThe length of the time window during which a backup can be taken.static AutomatedBackupPolicystatic final com.google.protobuf.Descriptors.DescriptorbooleanWhether automated automated backups are enabled.Optional.Optional.Deprecated.intLabels to apply to backups created using this configuration.Labels to apply to backups created using this configuration.getLabelsOrDefault(String key, String defaultValue) Labels to apply to backups created using this configuration.getLabelsOrThrow(String key) Labels to apply to backups created using this configuration.The location where the backup will be stored.com.google.protobuf.ByteStringThe location where the backup will be stored.com.google.protobuf.Parser<AutomatedBackupPolicy>Quantity-based Backup retention policy to retain recent backups.Quantity-based Backup retention policy to retain recent backups.intTime-based Backup retention policy.Time-based Backup retention policy.Weekly schedule for the Backup.Weekly schedule for the Backup.booleanThe length of the time window during which a backup can be taken.booleanWhether automated automated backups are enabled.booleanOptional.inthashCode()booleanQuantity-based Backup retention policy to retain recent backups.booleanTime-based Backup retention policy.booleanWeekly schedule for the Backup.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(AutomatedBackupPolicy prototype) protected AutomatedBackupPolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AutomatedBackupPolicyparseDelimitedFrom(InputStream input) static AutomatedBackupPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedBackupPolicyparseFrom(byte[] data) static AutomatedBackupPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedBackupPolicyparseFrom(com.google.protobuf.ByteString data) static AutomatedBackupPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedBackupPolicyparseFrom(com.google.protobuf.CodedInputStream input) static AutomatedBackupPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedBackupPolicyparseFrom(InputStream input) static AutomatedBackupPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedBackupPolicyparseFrom(ByteBuffer data) static AutomatedBackupPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AutomatedBackupPolicy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
WEEKLY_SCHEDULE_FIELD_NUMBER
public static final int WEEKLY_SCHEDULE_FIELD_NUMBER- See Also:
-
TIME_BASED_RETENTION_FIELD_NUMBER
public static final int TIME_BASED_RETENTION_FIELD_NUMBER- See Also:
-
QUANTITY_BASED_RETENTION_FIELD_NUMBER
public static final int QUANTITY_BASED_RETENTION_FIELD_NUMBER- See Also:
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER- See Also:
-
BACKUP_WINDOW_FIELD_NUMBER
public static final int BACKUP_WINDOW_FIELD_NUMBER- See Also:
-
ENCRYPTION_CONFIG_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getScheduleCase
- Specified by:
getScheduleCasein interfaceAutomatedBackupPolicyOrBuilder
-
getRetentionCase
- Specified by:
getRetentionCasein interfaceAutomatedBackupPolicyOrBuilder
-
hasWeeklySchedule
public boolean hasWeeklySchedule()Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
hasWeeklySchedulein interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the weeklySchedule field is set.
-
getWeeklySchedule
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
getWeeklySchedulein interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The weeklySchedule.
-
getWeeklyScheduleOrBuilder
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
getWeeklyScheduleOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasTimeBasedRetention
public boolean hasTimeBasedRetention()Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;- Specified by:
hasTimeBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the timeBasedRetention field is set.
-
getTimeBasedRetention
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;- Specified by:
getTimeBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The timeBasedRetention.
-
getTimeBasedRetentionOrBuilder
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;- Specified by:
getTimeBasedRetentionOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasQuantityBasedRetention
public boolean hasQuantityBasedRetention()Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;- Specified by:
hasQuantityBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the quantityBasedRetention field is set.
-
getQuantityBasedRetention
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;- Specified by:
getQuantityBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The quantityBasedRetention.
-
getQuantityBasedRetentionOrBuilder
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;- Specified by:
getQuantityBasedRetentionOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasEnabled
public boolean hasEnabled()Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;- Specified by:
hasEnabledin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public boolean getEnabled()Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;- Specified by:
getEnabledin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The enabled.
-
hasBackupWindow
public boolean hasBackupWindow()The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;- Specified by:
hasBackupWindowin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the backupWindow field is set.
-
getBackupWindow
public com.google.protobuf.Duration getBackupWindow()The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;- Specified by:
getBackupWindowin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The backupWindow.
-
getBackupWindowOrBuilder
public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder()The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;- Specified by:
getBackupWindowOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasEncryptionConfig
public boolean hasEncryptionConfig()Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEncryptionConfigin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
getEncryptionConfig
Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The encryptionConfig.
-
getEncryptionConfigOrBuilder
Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
getLocation
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Specified by:
getLocationin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Specified by:
getLocationBytesin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The bytes for location.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AutomatedBackupPolicyOrBuilderLabels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsCountin interfaceAutomatedBackupPolicyOrBuilder
-
containsLabels
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
containsLabelsin interfaceAutomatedBackupPolicyOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsMap
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsMapin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrDefault
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsOrDefaultin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrThrow
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsOrThrowin interfaceAutomatedBackupPolicyOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedBackupPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AutomatedBackupPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AutomatedBackupPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AutomatedBackupPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AutomatedBackupPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutomatedBackupPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-