Class ContinuousBackupConfig (0.43.0)

See more code actions.
public final class ContinuousBackupConfig extends GeneratedMessageV3 implements ContinuousBackupConfigOrBuilder

ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.

Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupConfig

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ENABLED_FIELD_NUMBER

public static final int ENABLED_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_CONFIG_FIELD_NUMBER

public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

RECOVERY_WINDOW_DAYS_FIELD_NUMBER

public static final int RECOVERY_WINDOW_DAYS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContinuousBackupConfig getDefaultInstance()
Returns
Type Description
ContinuousBackupConfig

getDescriptor()

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

newBuilder()

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

newBuilder(ContinuousBackupConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ContinuousBackupConfig getDefaultInstanceForType()
Returns
Type Description
ContinuousBackupConfig

getEnabled()

public boolean getEnabled()

Whether ContinuousBackup is enabled.

optional bool enabled = 1;

Returns
Type Description
boolean

The enabled.

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.v1beta.EncryptionConfig encryption_config = 3;

Returns
Type Description
EncryptionConfig

The encryptionConfig.

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.v1beta.EncryptionConfig encryption_config = 3;

Returns
Type Description
EncryptionConfigOrBuilder

getParserForType()

public Parser<ContinuousBackupConfig> getParserForType()
Returns
Type Description
Parser<ContinuousBackupConfig>
Overrides

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;

Returns
Type Description
int

The recoveryWindowDays.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEnabled()

public boolean hasEnabled()

Whether ContinuousBackup is enabled.

optional bool enabled = 1;

Returns
Type Description
boolean

Whether the enabled field is set.

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.v1beta.EncryptionConfig encryption_config = 3;

Returns
Type Description
boolean

Whether the encryptionConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContinuousBackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContinuousBackupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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