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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
    • clear

      public DbBackupConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DbBackupConfig.Builder>
    • getDefaultInstanceForType

      public DbBackupConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DbBackupConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DbBackupConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DbBackupConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DbBackupConfig.Builder>
    • mergeFrom

      public DbBackupConfig.Builder mergeFrom(DbBackupConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getAutoBackupEnabled in interface DbBackupConfigOrBuilder
      Returns:
      The autoBackupEnabled.
    • setAutoBackupEnabled

      public DbBackupConfig.Builder setAutoBackupEnabled(boolean value)
       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

      public DbBackupConfig.Builder 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

      public List<DbBackupConfig.BackupDestinationDetails> 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:
      getBackupDestinationDetailsList in interface DbBackupConfigOrBuilder
    • 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:
      getBackupDestinationDetailsCount in interface DbBackupConfigOrBuilder
    • getBackupDestinationDetails

      public DbBackupConfig.BackupDestinationDetails getBackupDestinationDetails(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:
      getBackupDestinationDetails in interface DbBackupConfigOrBuilder
    • 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

      public DbBackupConfig.Builder 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

      public DbBackupConfig.Builder removeBackupDestinationDetails(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];
    • 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:
      getBackupDestinationDetailsOrBuilder in interface DbBackupConfigOrBuilder
    • 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:
      getBackupDestinationDetailsOrBuilderList in interface DbBackupConfigOrBuilder
    • addBackupDestinationDetailsBuilder

      public DbBackupConfig.BackupDestinationDetails.Builder 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:
      getRetentionPeriodDays in interface DbBackupConfigOrBuilder
      Returns:
      The retentionPeriodDays.
    • setRetentionPeriodDays

      public DbBackupConfig.Builder setRetentionPeriodDays(int value)
       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

      public DbBackupConfig.Builder 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:
      getBackupDeletionPolicyValue in interface DbBackupConfigOrBuilder
      Returns:
      The enum numeric value on the wire for backupDeletionPolicy.
    • setBackupDeletionPolicyValue

      public DbBackupConfig.Builder setBackupDeletionPolicyValue(int value)
       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

      public DbBackupConfig.BackupDeletionPolicy 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:
      getBackupDeletionPolicy in interface DbBackupConfigOrBuilder
      Returns:
      The backupDeletionPolicy.
    • setBackupDeletionPolicy

      public DbBackupConfig.Builder setBackupDeletionPolicy(DbBackupConfig.BackupDeletionPolicy value)
       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

      public DbBackupConfig.Builder 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:
      getAutoFullBackupDayValue in interface DbBackupConfigOrBuilder
      Returns:
      The enum numeric value on the wire for autoFullBackupDay.
    • setAutoFullBackupDayValue

      public DbBackupConfig.Builder setAutoFullBackupDayValue(int value)
       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

      public DayOfWeek 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:
      getAutoFullBackupDay in interface DbBackupConfigOrBuilder
      Returns:
      The autoFullBackupDay.
    • setAutoFullBackupDay

      public DbBackupConfig.Builder setAutoFullBackupDay(DayOfWeek value)
       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

      public DbBackupConfig.Builder 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:
      getAutoFullBackupWindowValue in interface DbBackupConfigOrBuilder
      Returns:
      The enum numeric value on the wire for autoFullBackupWindow.
    • setAutoFullBackupWindowValue

      public DbBackupConfig.Builder setAutoFullBackupWindowValue(int value)
       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

      public DbBackupConfig.BackupWindow 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:
      getAutoFullBackupWindow in interface DbBackupConfigOrBuilder
      Returns:
      The autoFullBackupWindow.
    • setAutoFullBackupWindow

      public DbBackupConfig.Builder setAutoFullBackupWindow(DbBackupConfig.BackupWindow value)
       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

      public DbBackupConfig.Builder 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:
      getAutoIncrementalBackupWindowValue in interface DbBackupConfigOrBuilder
      Returns:
      The enum numeric value on the wire for autoIncrementalBackupWindow.
    • setAutoIncrementalBackupWindowValue

      public DbBackupConfig.Builder setAutoIncrementalBackupWindowValue(int value)
       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

      public DbBackupConfig.BackupWindow 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:
      getAutoIncrementalBackupWindow in interface DbBackupConfigOrBuilder
      Returns:
      The autoIncrementalBackupWindow.
    • setAutoIncrementalBackupWindow

      public DbBackupConfig.Builder setAutoIncrementalBackupWindow(DbBackupConfig.BackupWindow value)
       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

      public DbBackupConfig.Builder 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.