Class CreateCloudBackupAction.Builder (6.77.0)

public static final class CreateCloudBackupAction.Builder extends GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder> implements CreateCloudBackupActionOrBuilder

Action that creates a Cloud Spanner database backup.

Protobuf type google.spanner.executor.v1.CreateCloudBackupAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudBackupAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCloudBackupAction.Builder
Overrides

build()

public CreateCloudBackupAction build()
Returns
Type Description
CreateCloudBackupAction

buildPartial()

public CreateCloudBackupAction buildPartial()
Returns
Type Description
CreateCloudBackupAction

clear()

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

clearBackupId()

public CreateCloudBackupAction.Builder clearBackupId()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
Type Description
CreateCloudBackupAction.Builder

This builder for chaining.

clearDatabaseId()

public CreateCloudBackupAction.Builder clearDatabaseId()

The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

string database_id = 4;

Returns
Type Description
CreateCloudBackupAction.Builder

This builder for chaining.

clearEncryptionConfig()

public CreateCloudBackupAction.Builder clearEncryptionConfig()

The KMS key(s) used to encrypt the backup to be created if the backup should be CMEK protected.

.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 7;

Returns
Type Description
CreateCloudBackupAction.Builder

clearExpireTime()

public CreateCloudBackupAction.Builder clearExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CreateCloudBackupAction.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCloudBackupAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateCloudBackupAction.Builder
Overrides

clearInstanceId()

public CreateCloudBackupAction.Builder clearInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
Type Description
CreateCloudBackupAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCloudBackupAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateCloudBackupAction.Builder
Overrides

clearProjectId()

public CreateCloudBackupAction.Builder clearProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
Type Description
CreateCloudBackupAction.Builder

This builder for chaining.

clearVersionTime()

public CreateCloudBackupAction.Builder