Class BackupRetentionSettings (0.1.0)

public final class BackupRetentionSettings extends GeneratedMessage implements BackupRetentionSettingsOrBuilder

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

Protobuf type google.cloud.sql.v1.BackupRetentionSettings

Static Fields

RETAINED_BACKUPS_FIELD_NUMBER

public static final int RETAINED_BACKUPS_FIELD_NUMBER
Field Value
Type Description
int

RETENTION_UNIT_FIELD_NUMBER

public static final int RETENTION_UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackupRetentionSettings getDefaultInstance()
Returns
Type Description
BackupRetentionSettings

getDescriptor()

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

newBuilder()

public static BackupRetentionSettings.Builder newBuilder()
Returns
Type Description
BackupRetentionSettings.Builder

newBuilder(BackupRetentionSettings prototype)

public static BackupRetentionSettings.Builder newBuilder(BackupRetentionSettings prototype)
Parameter
Name Description
prototype BackupRetentionSettings
Returns
Type Description
BackupRetentionSettings.Builder

parseDelimitedFrom(InputStream input)

public static BackupRetentionSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupRetentionSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackupRetentionSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupRetentionSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupRetentionSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupRetentionSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupRetentionSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupRetentionSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackupRetentionSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupRetentionSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackupRetentionSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupRetentionSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupRetentionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackupRetentionSettings> parser()
Returns
Type Description
Parser<BackupRetentionSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BackupRetentionSettings getDefaultInstanceForType()
Returns
Type Description
BackupRetentionSettings

getParserForType()

public Parser<BackupRetentionSettings> getParserForType()
Returns
Type Description
Parser<BackupRetentionSettings>
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.

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.v1.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.v1.BackupRetentionSettings.RetentionUnit retention_unit = 1;

Returns
Type Description
int

The enum numeric value on the wire for retentionUnit.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackupRetentionSettings.Builder newBuilderForType()
Returns
Type Description
BackupRetentionSettings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BackupRetentionSettings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupRetentionSettings.Builder
Overrides

toBuilder()

public BackupRetentionSettings.Builder toBuilder()
Returns
Type Description
BackupRetentionSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException