Class DbBackupConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder
- All Implemented Interfaces:
DbBackupConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DbBackupConfig
public static final class DbBackupConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
implements DbBackupConfigOrBuilder
Backup Options for the Database.Protobuf type
google.cloud.oracledatabase.v1.DbBackupConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllBackupDestinationDetails(Iterable<? extends DbBackupConfig.BackupDestinationDetails> values) Optional.addBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails value) Optional.addBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails.Builder builderForValue) Optional.Optional.Optional.Optional.addBackupDestinationDetailsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.booleanOptional.Optional.intOptional.Optional.intOptional.Optional.intOptional.Optional.intOptional.getBackupDestinationDetails(int index) Optional.getBackupDestinationDetailsBuilder(int index) Optional.Optional.intOptional.Optional.getBackupDestinationDetailsOrBuilder(int index) Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DbBackupConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeBackupDestinationDetails(int index) Optional.setAutoBackupEnabled(boolean value) Optional.setAutoFullBackupDay(DayOfWeek value) Optional.setAutoFullBackupDayValue(int value) Optional.Optional.setAutoFullBackupWindowValue(int value) Optional.Optional.setAutoIncrementalBackupWindowValue(int value) Optional.Optional.setBackupDeletionPolicyValue(int value) Optional.setBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails value) Optional.setBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails.Builder builderForValue) Optional.setRetentionPeriodDays(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DbBackupConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
-
mergeFrom
public DbBackupConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DbBackupConfig.Builder>- Throws:
IOException
-
getAutoBackupEnabled
public boolean getAutoBackupEnabled()Optional. If set to true, enables automatic backups on the database.
bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoBackupEnabledin interfaceDbBackupConfigOrBuilder- Returns:
- The autoBackupEnabled.
-
setAutoBackupEnabled
Optional. If set to true, enables automatic backups on the database.
bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The autoBackupEnabled to set.- Returns:
- This builder for chaining.
-
clearAutoBackupEnabled
Optional. If set to true, enables automatic backups on the database.
bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getBackupDestinationDetailsList
Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDestinationDetailsListin interfaceDbBackupConfigOrBuilder
-
getBackupDestinationDetailsCount
public int getBackupDestinationDetailsCount()Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDestinationDetailsCountin interfaceDbBackupConfigOrBuilder
-
getBackupDestinationDetails
Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDestinationDetailsin interfaceDbBackupConfigOrBuilder
-
setBackupDestinationDetails
public DbBackupConfig.Builder setBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails value) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setBackupDestinationDetails
public DbBackupConfig.Builder setBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails.Builder builderForValue) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addBackupDestinationDetails
public DbBackupConfig.Builder addBackupDestinationDetails(DbBackupConfig.BackupDestinationDetails value) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addBackupDestinationDetails
public DbBackupConfig.Builder addBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails value) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addBackupDestinationDetails
public DbBackupConfig.Builder addBackupDestinationDetails(DbBackupConfig.BackupDestinationDetails.Builder builderForValue) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addBackupDestinationDetails
public DbBackupConfig.Builder addBackupDestinationDetails(int index, DbBackupConfig.BackupDestinationDetails.Builder builderForValue) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllBackupDestinationDetails
public DbBackupConfig.Builder addAllBackupDestinationDetails(Iterable<? extends DbBackupConfig.BackupDestinationDetails> values) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearBackupDestinationDetails
Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeBackupDestinationDetails
Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getBackupDestinationDetailsBuilder
public DbBackupConfig.BackupDestinationDetails.Builder getBackupDestinationDetailsBuilder(int index) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getBackupDestinationDetailsOrBuilder
public DbBackupConfig.BackupDestinationDetailsOrBuilder getBackupDestinationDetailsOrBuilder(int index) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDestinationDetailsOrBuilderin interfaceDbBackupConfigOrBuilder
-
getBackupDestinationDetailsOrBuilderList
public List<? extends DbBackupConfig.BackupDestinationDetailsOrBuilder> getBackupDestinationDetailsOrBuilderList()Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDestinationDetailsOrBuilderListin interfaceDbBackupConfigOrBuilder
-
addBackupDestinationDetailsBuilder
Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addBackupDestinationDetailsBuilder
public DbBackupConfig.BackupDestinationDetails.Builder addBackupDestinationDetailsBuilder(int index) Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getBackupDestinationDetailsBuilderList
public List<DbBackupConfig.BackupDestinationDetails.Builder> getBackupDestinationDetailsBuilderList()Optional. Details of the database backup destinations.
repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getRetentionPeriodDays
public int getRetentionPeriodDays()Optional. The number of days an automatic backup is retained before being automatically deleted. This value determines the earliest point in time to which a database can be restored. Min: 1, Max: 60.
int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetentionPeriodDaysin interfaceDbBackupConfigOrBuilder- Returns:
- The retentionPeriodDays.
-
setRetentionPeriodDays
Optional. The number of days an automatic backup is retained before being automatically deleted. This value determines the earliest point in time to which a database can be restored. Min: 1, Max: 60.
int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The retentionPeriodDays to set.- Returns:
- This builder for chaining.
-
clearRetentionPeriodDays
Optional. The number of days an automatic backup is retained before being automatically deleted. This value determines the earliest point in time to which a database can be restored. Min: 1, Max: 60.
int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getBackupDeletionPolicyValue
public int getBackupDeletionPolicyValue()Optional. This defines when the backups will be deleted after Database termination.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDeletionPolicyValuein interfaceDbBackupConfigOrBuilder- Returns:
- The enum numeric value on the wire for backupDeletionPolicy.
-
setBackupDeletionPolicyValue
Optional. This defines when the backups will be deleted after Database termination.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for backupDeletionPolicy to set.- Returns:
- This builder for chaining.
-
getBackupDeletionPolicy
Optional. This defines when the backups will be deleted after Database termination.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupDeletionPolicyin interfaceDbBackupConfigOrBuilder- Returns:
- The backupDeletionPolicy.
-
setBackupDeletionPolicy
Optional. This defines when the backups will be deleted after Database termination.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The backupDeletionPolicy to set.- Returns:
- This builder for chaining.
-
clearBackupDeletionPolicy
Optional. This defines when the backups will be deleted after Database termination.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getAutoFullBackupDayValue
public int getAutoFullBackupDayValue()Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.
.google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoFullBackupDayValuein interfaceDbBackupConfigOrBuilder- Returns:
- The enum numeric value on the wire for autoFullBackupDay.
-
setAutoFullBackupDayValue
Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.
.google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for autoFullBackupDay to set.- Returns:
- This builder for chaining.
-
getAutoFullBackupDay
Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.
.google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoFullBackupDayin interfaceDbBackupConfigOrBuilder- Returns:
- The autoFullBackupDay.
-
setAutoFullBackupDay
Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.
.google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The autoFullBackupDay to set.- Returns:
- This builder for chaining.
-
clearAutoFullBackupDay
Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.
.google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getAutoFullBackupWindowValue
public int getAutoFullBackupWindowValue()Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoFullBackupWindowValuein interfaceDbBackupConfigOrBuilder- Returns:
- The enum numeric value on the wire for autoFullBackupWindow.
-
setAutoFullBackupWindowValue
Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for autoFullBackupWindow to set.- Returns:
- This builder for chaining.
-
getAutoFullBackupWindow
Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoFullBackupWindowin interfaceDbBackupConfigOrBuilder- Returns:
- The autoFullBackupWindow.
-
setAutoFullBackupWindow
Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The autoFullBackupWindow to set.- Returns:
- This builder for chaining.
-
clearAutoFullBackupWindow
Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getAutoIncrementalBackupWindowValue
public int getAutoIncrementalBackupWindowValue()Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoIncrementalBackupWindowValuein interfaceDbBackupConfigOrBuilder- Returns:
- The enum numeric value on the wire for autoIncrementalBackupWindow.
-
setAutoIncrementalBackupWindowValue
Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for autoIncrementalBackupWindow to set.- Returns:
- This builder for chaining.
-
getAutoIncrementalBackupWindow
Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoIncrementalBackupWindowin interfaceDbBackupConfigOrBuilder- Returns:
- The autoIncrementalBackupWindow.
-
setAutoIncrementalBackupWindow
Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The autoIncrementalBackupWindow to set.- Returns:
- This builder for chaining.
-
clearAutoIncrementalBackupWindow
Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.
.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-