Class 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.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
    implements ContinuousBackupConfigOrBuilder
     ContinuousBackupConfig describes the continuous backups recovery
     configurations of a cluster.
     
    Protobuf type google.cloud.alloydb.v1alpha.ContinuousBackupConfig
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ContinuousBackupConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
      • clearField

        public ContinuousBackupConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
      • clearOneof

        public ContinuousBackupConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
      • setRepeatedField

        public ContinuousBackupConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
      • addRepeatedField

        public ContinuousBackupConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.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 then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3;
        Specified by:
        getEncryptionConfigOrBuilder in interface ContinuousBackupConfigOrBuilder
      • setUnknownFields

        public final ContinuousBackupConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
      • mergeUnknownFields

        public final ContinuousBackupConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>