Class AlloyDbClusterBackupProperties.Builder (0.42.0)

public static final class AlloyDbClusterBackupProperties.Builder extends GeneratedMessage.Builder<AlloyDbClusterBackupProperties.Builder> implements AlloyDbClusterBackupPropertiesOrBuilder

AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. .

Protobuf type google.cloud.backupdr.v1.AlloyDbClusterBackupProperties

Static Methods

getDescriptor()

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

Methods

build()

public AlloyDbClusterBackupProperties build()
Returns
Type Description
AlloyDbClusterBackupProperties

buildPartial()

public AlloyDbClusterBackupProperties buildPartial()
Returns
Type Description
AlloyDbClusterBackupProperties

clear()

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

clearChainId()

public AlloyDbClusterBackupProperties.Builder clearChainId()

Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.

string chain_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

clearDatabaseVersion()

public AlloyDbClusterBackupProperties.Builder clearDatabaseVersion()

Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.

string database_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

clearDescription()

public AlloyDbClusterBackupProperties.Builder clearDescription()

An optional text description for the backup.

optional string description = 1;

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

clearStoredBytes()

public AlloyDbClusterBackupProperties.Builder clearStoredBytes()

Output only. Storage usage of this particular backup

int64 stored_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

getChainId()

public String getChainId()

Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.

string chain_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The chainId.

getChainIdBytes()

public ByteString getChainIdBytes()

Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.

string chain_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for chainId.

getDatabaseVersion()

public String getDatabaseVersion()

Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.

string database_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The databaseVersion.

getDatabaseVersionBytes()

public ByteString getDatabaseVersionBytes()

Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.

string database_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for databaseVersion.

getDefaultInstanceForType()

public AlloyDbClusterBackupProperties getDefaultInstanceForType()
Returns
Type Description
AlloyDbClusterBackupProperties

getDescription()

public String getDescription()

An optional text description for the backup.

optional string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional text description for the backup.

optional string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getStoredBytes()

public long getStoredBytes()

Output only. Storage usage of this particular backup

int64 stored_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The storedBytes.

hasDescription()

public boolean hasDescription()

An optional text description for the backup.

optional string description = 1;

Returns
Type Description
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlloyDbClusterBackupProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setChainId(String value)

public AlloyDbClusterBackupProperties.Builder setChainId(String value)

Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.

string chain_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The chainId to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

setChainIdBytes(ByteString value)

public AlloyDbClusterBackupProperties.Builder setChainIdBytes(ByteString value)

Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.

string chain_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for chainId to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

setDatabaseVersion(String value)

public AlloyDbClusterBackupProperties.Builder setDatabaseVersion(String value)

Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.

string database_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The databaseVersion to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

setDatabaseVersionBytes(ByteString value)

public AlloyDbClusterBackupProperties.Builder setDatabaseVersionBytes(ByteString value)

Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.

string database_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for databaseVersion to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

setDescription(String value)

public AlloyDbClusterBackupProperties.Builder setDescription(String value)

An optional text description for the backup.

optional string description = 1;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AlloyDbClusterBackupProperties.Builder setDescriptionBytes(ByteString value)

An optional text description for the backup.

optional string description = 1;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.

setStoredBytes(long value)

public AlloyDbClusterBackupProperties.Builder setStoredBytes(long value)

Output only. Storage usage of this particular backup

int64 stored_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The storedBytes to set.

Returns
Type Description
AlloyDbClusterBackupProperties.Builder

This builder for chaining.