public static final class FinalBackupConfig.Builder extends GeneratedMessage.Builder<FinalBackupConfig.Builder> implements FinalBackupConfigOrBuilderConfig used to determine the final backup settings for the instance.
Protobuf type google.cloud.sql.v1.FinalBackupConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FinalBackupConfig.BuilderImplements
FinalBackupConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FinalBackupConfig build()| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig |
|
buildPartial()
public FinalBackupConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig |
|
clear()
public FinalBackupConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
|
clearEnabled()
public FinalBackupConfig.Builder clearEnabled()Whether the final backup is enabled for the instance.
optional bool enabled = 1;
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
This builder for chaining. |
clearRetentionDays()
public FinalBackupConfig.Builder clearRetentionDays()The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
optional int32 retention_days = 3;
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public FinalBackupConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnabled()
public boolean getEnabled()Whether the final backup is enabled for the instance.
optional bool enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enabled. |
getRetentionDays()
public int getRetentionDays()The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
optional int32 retention_days = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The retentionDays. |
hasEnabled()
public boolean hasEnabled()Whether the final backup is enabled for the instance.
optional bool enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enabled field is set. |
hasRetentionDays()
public boolean hasRetentionDays()The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
optional int32 retention_days = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the retentionDays field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FinalBackupConfig other)
public FinalBackupConfig.Builder mergeFrom(FinalBackupConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
FinalBackupConfig |
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FinalBackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FinalBackupConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
|
setEnabled(boolean value)
public FinalBackupConfig.Builder setEnabled(boolean value)Whether the final backup is enabled for the instance.
optional bool enabled = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enabled to set. |
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
This builder for chaining. |
setRetentionDays(int value)
public FinalBackupConfig.Builder setRetentionDays(int value)The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
optional int32 retention_days = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe retentionDays to set. |
| Returns | |
|---|---|
| Type | Description |
FinalBackupConfig.Builder |
This builder for chaining. |