public final class ContinuousBackupConfig extends GeneratedMessageV3 implements ContinuousBackupConfigOrBuilder
ContinuousBackupConfig describes the continuous backups recovery
configurations of a cluster.
Protobuf type google.cloud.alloydb.v1alpha.ContinuousBackupConfig
Static Fields
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
Field Value
ENCRYPTION_CONFIG_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
RECOVERY_WINDOW_DAYS_FIELD_NUMBER
public static final int RECOVERY_WINDOW_DAYS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ContinuousBackupConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ContinuousBackupConfig.Builder newBuilder()
Returns
newBuilder(ContinuousBackupConfig prototype)
public static ContinuousBackupConfig.Builder newBuilder(ContinuousBackupConfig prototype)
Parameter
Returns
public static ContinuousBackupConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ContinuousBackupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ContinuousBackupConfig parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ContinuousBackupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ContinuousBackupConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ContinuousBackupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ContinuousBackupConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ContinuousBackupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ContinuousBackupConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ContinuousBackupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ContinuousBackupConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ContinuousBackupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ContinuousBackupConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ContinuousBackupConfig getDefaultInstanceForType()
Returns
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.v1alpha.EncryptionConfig encryption_config = 3;
Returns
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;
Returns
getParserForType()
public Parser<ContinuousBackupConfig> getParserForType()
Returns
Overrides
getRecoveryWindowDays()
public int getRecoveryWindowDays()
The number of days backups and logs will be retained, which determines the
window of time that data is recoverable for. If not set, it defaults to 14
days.
int32 recovery_window_days = 4;
Returns
Type |
Description |
int |
The recoveryWindowDays.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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.v1alpha.EncryptionConfig encryption_config = 3;
Returns
Type |
Description |
boolean |
Whether the encryptionConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ContinuousBackupConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ContinuousBackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ContinuousBackupConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions