Class BackupConfiguration.Builder (0.1.0)

public static final class BackupConfiguration.Builder extends GeneratedMessage.Builder<BackupConfiguration.Builder> implements BackupConfigurationOrBuilder

Database instance backup configuration.

Protobuf type google.cloud.sql.v1.BackupConfiguration

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BackupConfiguration build()
Returns
Type Description
BackupConfiguration

buildPartial()

public BackupConfiguration buildPartial()
Returns
Type Description
BackupConfiguration

clear()

public BackupConfiguration.Builder clear()
Returns
Type Description
BackupConfiguration.Builder
Overrides

clearBackupRetentionSettings()

public BackupConfiguration.Builder clearBackupRetentionSettings()

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Returns
Type Description
BackupConfiguration.Builder

clearBackupTier()

public BackupConfiguration.Builder clearBackupTier()

Output only. Backup tier that manages the backups for the instance.

optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

clearBinaryLogEnabled()

public BackupConfiguration.Builder clearBinaryLogEnabled()

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Returns
Type Description
BackupConfiguration.Builder

clearEnabled()

public BackupConfiguration.Builder clearEnabled()

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Returns
Type Description
BackupConfiguration.Builder

clearKind()

public BackupConfiguration.Builder clearKind()

This is always sql#backupConfiguration.

string kind = 3;

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

clearLocation()

public BackupConfiguration.Builder clearLocation()

Location of the backup

string location = 6;

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

clearPointInTimeRecoveryEnabled()

public BackupConfiguration.Builder clearPointInTimeRecoveryEnabled()

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Returns
Type Description
BackupConfiguration.Builder

clearReplicationLogArchivingEnabled() (deprecated)

public BackupConfiguration.Builder clearReplicationLogArchivingEnabled()

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupConfiguration.Builder

clearStartTime()

public BackupConfiguration.Builder clearStartTime()

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

string start_time = 1;

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

clearTransactionLogRetentionDays()

public BackupConfiguration.Builder clearTransactionLogRetentionDays()

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Returns
Type Description
BackupConfiguration.Builder

clearTransactionalLogStorageState()

public BackupConfiguration.Builder clearTransactionalLogStorageState()

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.

optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

getBackupRetentionSettings()

public BackupRetentionSettings getBackupRetentionSettings()

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Returns
Type Description
BackupRetentionSettings

The backupRetentionSettings.

getBackupRetentionSettingsBuilder()

public BackupRetentionSettings.Builder getBackupRetentionSettingsBuilder()

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Returns
Type Description
BackupRetentionSettings.Builder

getBackupRetentionSettingsOrBuilder()

public BackupRetentionSettingsOrBuilder getBackupRetentionSettingsOrBuilder()

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Returns
Type Description
BackupRetentionSettingsOrBuilder

getBackupTier()

public BackupConfiguration.BackupTier getBackupTier()

Output only. Backup tier that manages the backups for the instance.

optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfiguration.BackupTier

The backupTier.

getBackupTierValue()

public int getBackupTierValue()

Output only. Backup tier that manages the backups for the instance.

optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for backupTier.

getBinaryLogEnabled()

public BoolValue getBinaryLogEnabled()

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Returns
Type Description
BoolValue

The binaryLogEnabled.

getBinaryLogEnabledBuilder()

public BoolValue.Builder getBinaryLogEnabledBuilder()

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Returns
Type Description
Builder

getBinaryLogEnabledOrBuilder()

public BoolValueOrBuilder getBinaryLogEnabledOrBuilder()

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Returns
Type Description
BoolValueOrBuilder

getDefaultInstanceForType()

public BackupConfiguration getDefaultInstanceForType()
Returns
Type Description
BackupConfiguration

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public BoolValue getEnabled()

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Returns
Type Description
BoolValue

The enabled.

getEnabledBuilder()

public BoolValue.Builder getEnabledBuilder()

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Returns
Type Description
Builder

getEnabledOrBuilder()

public BoolValueOrBuilder getEnabledOrBuilder()

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Returns
Type Description
BoolValueOrBuilder

getKind()

public String getKind()

This is always sql#backupConfiguration.

string kind = 3;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#backupConfiguration.

string kind = 3;

Returns
Type Description
ByteString

The bytes for kind.

getLocation()

public String getLocation()

Location of the backup

string location = 6;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Location of the backup

string location = 6;

Returns
Type Description
ByteString

The bytes for location.

getPointInTimeRecoveryEnabled()

public BoolValue getPointInTimeRecoveryEnabled()

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Returns
Type Description
BoolValue

The pointInTimeRecoveryEnabled.

getPointInTimeRecoveryEnabledBuilder()

public BoolValue.Builder getPointInTimeRecoveryEnabledBuilder()

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Returns
Type Description
Builder

getPointInTimeRecoveryEnabledOrBuilder()

public BoolValueOrBuilder getPointInTimeRecoveryEnabledOrBuilder()

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Returns
Type Description
BoolValueOrBuilder

getReplicationLogArchivingEnabled() (deprecated)

public BoolValue getReplicationLogArchivingEnabled()

Deprecated. google.cloud.sql.v1.BackupConfiguration.replication_log_archiving_enabled is deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=165

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoolValue

The replicationLogArchivingEnabled.

getReplicationLogArchivingEnabledBuilder() (deprecated)

public BoolValue.Builder getReplicationLogArchivingEnabledBuilder()

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getReplicationLogArchivingEnabledOrBuilder() (deprecated)

public BoolValueOrBuilder getReplicationLogArchivingEnabledOrBuilder()

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoolValueOrBuilder

getStartTime()

public String getStartTime()

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

string start_time = 1;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

string start_time = 1;

Returns
Type Description
ByteString

The bytes for startTime.

getTransactionLogRetentionDays()

public Int32Value getTransactionLogRetentionDays()

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Returns
Type Description
Int32Value

The transactionLogRetentionDays.

getTransactionLogRetentionDaysBuilder()

public Int32Value.Builder getTransactionLogRetentionDaysBuilder()

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Returns
Type Description
Builder

getTransactionLogRetentionDaysOrBuilder()

public Int32ValueOrBuilder getTransactionLogRetentionDaysOrBuilder()

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Returns
Type Description
Int32ValueOrBuilder

getTransactionalLogStorageState()

public BackupConfiguration.TransactionalLogStorageState getTransactionalLogStorageState()

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.

optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfiguration.TransactionalLogStorageState

The transactionalLogStorageState.

getTransactionalLogStorageStateValue()

public int getTransactionalLogStorageStateValue()

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.

optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for transactionalLogStorageState.

hasBackupRetentionSettings()

public boolean hasBackupRetentionSettings()

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Returns
Type Description
boolean

Whether the backupRetentionSettings field is set.

hasBackupTier()

public boolean hasBackupTier()

Output only. Backup tier that manages the backups for the instance.

optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the backupTier field is set.

hasBinaryLogEnabled()

public boolean hasBinaryLogEnabled()

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Returns
Type Description
boolean

Whether the binaryLogEnabled field is set.

hasEnabled()

public boolean hasEnabled()

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Returns
Type Description
boolean

Whether the enabled field is set.

hasPointInTimeRecoveryEnabled()

public boolean hasPointInTimeRecoveryEnabled()

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Returns
Type Description
boolean

Whether the pointInTimeRecoveryEnabled field is set.

hasReplicationLogArchivingEnabled() (deprecated)

public boolean hasReplicationLogArchivingEnabled()

Deprecated. google.cloud.sql.v1.BackupConfiguration.replication_log_archiving_enabled is deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=165

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the replicationLogArchivingEnabled field is set.

hasTransactionLogRetentionDays()

public boolean hasTransactionLogRetentionDays()

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Returns
Type Description
boolean

Whether the transactionLogRetentionDays field is set.

hasTransactionalLogStorageState()

public boolean hasTransactionalLogStorageState()

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.

optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the transactionalLogStorageState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupRetentionSettings(BackupRetentionSettings value)

public BackupConfiguration.Builder mergeBackupRetentionSettings(BackupRetentionSettings value)

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Parameter
Name Description
value BackupRetentionSettings
Returns
Type Description
BackupConfiguration.Builder

mergeBinaryLogEnabled(BoolValue value)

public BackupConfiguration.Builder mergeBinaryLogEnabled(BoolValue value)

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

mergeEnabled(BoolValue value)

public BackupConfiguration.Builder mergeEnabled(BoolValue value)

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

mergeFrom(BackupConfiguration other)

public BackupConfiguration.Builder mergeFrom(BackupConfiguration other)
Parameter
Name Description
other BackupConfiguration
Returns
Type Description
BackupConfiguration.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupConfiguration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfiguration.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackupConfiguration.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackupConfiguration.Builder
Overrides

mergePointInTimeRecoveryEnabled(BoolValue value)

public BackupConfiguration.Builder mergePointInTimeRecoveryEnabled(BoolValue value)

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

mergeReplicationLogArchivingEnabled(BoolValue value) (deprecated)

public BackupConfiguration.Builder mergeReplicationLogArchivingEnabled(BoolValue value)

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

mergeTransactionLogRetentionDays(Int32Value value)

public BackupConfiguration.Builder mergeTransactionLogRetentionDays(Int32Value value)

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Parameter
Name Description
value Int32Value
Returns
Type Description
BackupConfiguration.Builder

setBackupRetentionSettings(BackupRetentionSettings value)

public BackupConfiguration.Builder setBackupRetentionSettings(BackupRetentionSettings value)

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Parameter
Name Description
value BackupRetentionSettings
Returns
Type Description
BackupConfiguration.Builder

setBackupRetentionSettings(BackupRetentionSettings.Builder builderForValue)

public BackupConfiguration.Builder setBackupRetentionSettings(BackupRetentionSettings.Builder builderForValue)

Backup retention settings.

.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;

Parameter
Name Description
builderForValue BackupRetentionSettings.Builder
Returns
Type Description
BackupConfiguration.Builder

setBackupTier(BackupConfiguration.BackupTier value)

public BackupConfiguration.Builder setBackupTier(BackupConfiguration.BackupTier value)

Output only. Backup tier that manages the backups for the instance.

optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BackupConfiguration.BackupTier

The backupTier to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setBackupTierValue(int value)

public BackupConfiguration.Builder setBackupTierValue(int value)

Output only. Backup tier that manages the backups for the instance.

optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for backupTier to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setBinaryLogEnabled(BoolValue value)

public BackupConfiguration.Builder setBinaryLogEnabled(BoolValue value)

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

setBinaryLogEnabled(BoolValue.Builder builderForValue)

public BackupConfiguration.Builder setBinaryLogEnabled(BoolValue.Builder builderForValue)

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

.google.protobuf.BoolValue binary_log_enabled = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupConfiguration.Builder

setEnabled(BoolValue value)

public BackupConfiguration.Builder setEnabled(BoolValue value)

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

setEnabled(BoolValue.Builder builderForValue)

public BackupConfiguration.Builder setEnabled(BoolValue.Builder builderForValue)

Whether this configuration is enabled.

.google.protobuf.BoolValue enabled = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupConfiguration.Builder

setKind(String value)

public BackupConfiguration.Builder setKind(String value)

This is always sql#backupConfiguration.

string kind = 3;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setKindBytes(ByteString value)

public BackupConfiguration.Builder setKindBytes(ByteString value)

This is always sql#backupConfiguration.

string kind = 3;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setLocation(String value)

public BackupConfiguration.Builder setLocation(String value)

Location of the backup

string location = 6;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public BackupConfiguration.Builder setLocationBytes(ByteString value)

Location of the backup

string location = 6;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setPointInTimeRecoveryEnabled(BoolValue value)

public BackupConfiguration.Builder setPointInTimeRecoveryEnabled(BoolValue value)

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

setPointInTimeRecoveryEnabled(BoolValue.Builder builderForValue)

public BackupConfiguration.Builder setPointInTimeRecoveryEnabled(BoolValue.Builder builderForValue)

Whether point in time recovery is enabled.

.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupConfiguration.Builder

setReplicationLogArchivingEnabled(BoolValue value) (deprecated)

public BackupConfiguration.Builder setReplicationLogArchivingEnabled(BoolValue value)

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BoolValue
Returns
Type Description
BackupConfiguration.Builder

setReplicationLogArchivingEnabled(BoolValue.Builder builderForValue) (deprecated)

public BackupConfiguration.Builder setReplicationLogArchivingEnabled(BoolValue.Builder builderForValue)

Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.

.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupConfiguration.Builder

setStartTime(String value)

public BackupConfiguration.Builder setStartTime(String value)

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

string start_time = 1;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public BackupConfiguration.Builder setStartTimeBytes(ByteString value)

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

string start_time = 1;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setTransactionLogRetentionDays(Int32Value value)

public BackupConfiguration.Builder setTransactionLogRetentionDays(Int32Value value)

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Parameter
Name Description
value Int32Value
Returns
Type Description
BackupConfiguration.Builder

setTransactionLogRetentionDays(Int32Value.Builder builderForValue)

public BackupConfiguration.Builder setTransactionLogRetentionDays(Int32Value.Builder builderForValue)

The number of days of transaction logs we retain for point in time restore, from 1-7.

.google.protobuf.Int32Value transaction_log_retention_days = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupConfiguration.Builder

setTransactionalLogStorageState(BackupConfiguration.TransactionalLogStorageState value)

public BackupConfiguration.Builder setTransactionalLogStorageState(BackupConfiguration.TransactionalLogStorageState value)

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.

optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BackupConfiguration.TransactionalLogStorageState

The transactionalLogStorageState to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.

setTransactionalLogStorageStateValue(int value)

public BackupConfiguration.Builder setTransactionalLogStorageStateValue(int value)

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.

optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for transactionalLogStorageState to set.

Returns
Type Description
BackupConfiguration.Builder

This builder for chaining.