Class BackupRetentionSettings.Builder (0.1.0)

public static final class BackupRetentionSettings.Builder extends GeneratedMessage.Builder<BackupRetentionSettings.Builder> implements BackupRetentionSettingsOrBuilder

We currently only support backup retention by specifying the number of backups we will retain.

Protobuf type google.cloud.sql.v1beta4.BackupRetentionSettings

Static Methods

getDescriptor()

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

Methods

build()

public BackupRetentionSettings build()
Returns
Type Description
BackupRetentionSettings

buildPartial()

public BackupRetentionSettings buildPartial()
Returns
Type Description
BackupRetentionSettings

clear()

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

clearRetainedBackups()

public BackupRetentionSettings.Builder clearRetainedBackups()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Returns
Type Description
BackupRetentionSettings.Builder

clearRetentionUnit()

public BackupRetentionSettings.Builder clearRetentionUnit()

The unit that 'retained_backups' represents.

.google.cloud.sql.v1beta4.BackupRetentionSettings.RetentionUnit retention_unit = 1;

Returns
Type Description
BackupRetentionSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public BackupRetentionSettings getDefaultInstanceForType()
Returns
Type Description
BackupRetentionSettings

getDescriptorForType()

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

getRetainedBackups()

public Int32Value getRetainedBackups()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Returns
Type Description
Int32Value

The retainedBackups.

getRetainedBackupsBuilder()

public Int32Value.Builder getRetainedBackupsBuilder()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Returns
Type Description
Builder

getRetainedBackupsOrBuilder()

public Int32ValueOrBuilder getRetainedBackupsOrBuilder()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Returns
Type Description
Int32ValueOrBuilder

getRetentionUnit()

public BackupRetentionSettings.RetentionUnit getRetentionUnit()

The unit that 'retained_backups' represents.

.google.cloud.sql.v1beta4.BackupRetentionSettings.RetentionUnit retention_unit = 1;

Returns
Type Description
BackupRetentionSettings.RetentionUnit

The retentionUnit.

getRetentionUnitValue()

public int getRetentionUnitValue()

The unit that 'retained_backups' represents.

.google.cloud.sql.v1beta4.BackupRetentionSettings.RetentionUnit retention_unit = 1;

Returns
Type Description
int

The enum numeric value on the wire for retentionUnit.

hasRetainedBackups()

public boolean hasRetainedBackups()

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Returns
Type Description
boolean

Whether the retainedBackups field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupRetentionSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRetainedBackups(Int32Value value)

public BackupRetentionSettings.Builder mergeRetainedBackups(Int32Value value)

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Parameter
Name Description
value Int32Value
Returns
Type Description
BackupRetentionSettings.Builder

setRetainedBackups(Int32Value value)

public BackupRetentionSettings.Builder setRetainedBackups(Int32Value value)

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Parameter
Name Description
value Int32Value
Returns
Type Description
BackupRetentionSettings.Builder

setRetainedBackups(Int32Value.Builder builderForValue)

public BackupRetentionSettings.Builder setRetainedBackups(Int32Value.Builder builderForValue)

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

.google.protobuf.Int32Value retained_backups = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRetentionSettings.Builder

setRetentionUnit(BackupRetentionSettings.RetentionUnit value)

public BackupRetentionSettings.Builder setRetentionUnit(BackupRetentionSettings.RetentionUnit value)

The unit that 'retained_backups' represents.

.google.cloud.sql.v1beta4.BackupRetentionSettings.RetentionUnit retention_unit = 1;

Parameter
Name Description
value BackupRetentionSettings.RetentionUnit

The retentionUnit to set.

Returns
Type Description
BackupRetentionSettings.Builder

This builder for chaining.

setRetentionUnitValue(int value)

public BackupRetentionSettings.Builder setRetentionUnitValue(int value)

The unit that 'retained_backups' represents.

.google.cloud.sql.v1beta4.BackupRetentionSettings.RetentionUnit retention_unit = 1;

Parameter
Name Description
value int

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

Returns
Type Description
BackupRetentionSettings.Builder

This builder for chaining.