Class ContinuousBackupConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
com.google.cloud.alloydb.v1beta.ContinuousBackupConfig.Builder
All Implemented Interfaces:
ContinuousBackupConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContinuousBackupConfig

public static final class ContinuousBackupConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder> implements ContinuousBackupConfigOrBuilder
 ContinuousBackupConfig describes the continuous backups recovery
 configurations of a cluster.
 
Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupConfig
  • 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<ContinuousBackupConfig.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<ContinuousBackupConfig.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<ContinuousBackupConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public ContinuousBackupConfig.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<ContinuousBackupConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
    • mergeFrom

      public ContinuousBackupConfig.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<ContinuousBackupConfig.Builder>
      Throws:
      IOException
    • hasEnabled

      public boolean hasEnabled()
       Whether ContinuousBackup is enabled.
       
      optional bool enabled = 1;
      Specified by:
      hasEnabled in interface ContinuousBackupConfigOrBuilder
      Returns:
      Whether the enabled field is set.
    • getEnabled

      public boolean getEnabled()
       Whether ContinuousBackup is enabled.
       
      optional bool enabled = 1;
      Specified by:
      getEnabled in interface ContinuousBackupConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public ContinuousBackupConfig.Builder setEnabled(boolean value)
       Whether ContinuousBackup is enabled.
       
      optional bool enabled = 1;
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public ContinuousBackupConfig.Builder clearEnabled()
       Whether ContinuousBackup is enabled.
       
      optional bool enabled = 1;
      Returns:
      This builder for chaining.
    • getRecoveryWindowDays

      public int getRecoveryWindowDays()
       The number of days that are eligible to restore from using PITR. To support
       the entire recovery window, backups and logs are retained for one day more
       than the recovery window. If not set, defaults to 14 days.
       
      int32 recovery_window_days = 4;
      Specified by:
      getRecoveryWindowDays in interface ContinuousBackupConfigOrBuilder
      Returns:
      The recoveryWindowDays.
    • setRecoveryWindowDays

      public ContinuousBackupConfig.Builder setRecoveryWindowDays(int value)
       The number of days that are eligible to restore from using PITR. To support
       the entire recovery window, backups and logs are retained for one day more
       than the recovery window. If not set, defaults to 14 days.
       
      int32 recovery_window_days = 4;
      Parameters:
      value - The recoveryWindowDays to set.
      Returns:
      This builder for chaining.
    • clearRecoveryWindowDays

      public ContinuousBackupConfig.Builder clearRecoveryWindowDays()
       The number of days that are eligible to restore from using PITR. To support
       the entire recovery window, backups and logs are retained for one day more
       than the recovery window. If not set, defaults to 14 days.
       
      int32 recovery_window_days = 4;
      Returns:
      This builder for chaining.
    • hasEncryptionConfig

      public boolean hasEncryptionConfig()
       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 = 3;
      Specified by:
      hasEncryptionConfig in interface ContinuousBackupConfigOrBuilder
      Returns:
      Whether the encryptionConfig field is set.
    • getEncryptionConfig

      public EncryptionConfig getEncryptionConfig()
       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 = 3;
      Specified by:
      getEncryptionConfig in interface ContinuousBackupConfigOrBuilder
      Returns:
      The encryptionConfig.
    • setEncryptionConfig

      public ContinuousBackupConfig.Builder setEncryptionConfig(EncryptionConfig value)
       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 = 3;
    • setEncryptionConfig

      public ContinuousBackupConfig.Builder setEncryptionConfig(EncryptionConfig.Builder builderForValue)
       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 = 3;
    • mergeEncryptionConfig

      public ContinuousBackupConfig.Builder mergeEncryptionConfig(EncryptionConfig value)
       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 = 3;
    • clearEncryptionConfig

      public ContinuousBackupConfig.Builder clearEncryptionConfig()
       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 = 3;
    • getEncryptionConfigBuilder

      public EncryptionConfig.Builder getEncryptionConfigBuilder()
       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 = 3;
    • getEncryptionConfigOrBuilder

      public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
       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 = 3;
      Specified by:
      getEncryptionConfigOrBuilder in interface ContinuousBackupConfigOrBuilder