Class RestoreCloudDatabaseAction.Builder (6.57.0)

public static final class RestoreCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder> implements RestoreCloudDatabaseActionOrBuilder

Action that restores a Cloud Spanner database from a backup.

Protobuf type google.spanner.executor.v1.RestoreCloudDatabaseAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

build()

public RestoreCloudDatabaseAction build()
Returns
TypeDescription
RestoreCloudDatabaseAction

buildPartial()

public RestoreCloudDatabaseAction buildPartial()
Returns
TypeDescription
RestoreCloudDatabaseAction

clear()

public RestoreCloudDatabaseAction.Builder clear()
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

clearBackupId()

public RestoreCloudDatabaseAction.Builder clearBackupId()

The id of the backup from which to restore, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

clearBackupInstanceId()

public RestoreCloudDatabaseAction.Builder clearBackupInstanceId()

Cloud instance ID (not path) containing the backup, e.g. "backup-instance".

string backup_instance_id = 2;

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

clearDatabaseId()

public RestoreCloudDatabaseAction.Builder clearDatabaseId()

The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.

string database_id = 5;

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

clearDatabaseInstanceId()

public RestoreCloudDatabaseAction.Builder clearDatabaseInstanceId()

Cloud instance ID (not path) containing the database, e.g. "database-instance".

string database_instance_id = 4;

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RestoreCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

clearProjectId()

public RestoreCloudDatabaseAction.Builder clearProjectId()

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

string project_id = 1;

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

clone()

public RestoreCloudDatabaseAction.Builder clone()
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

getBackupId()

public String getBackupId()

The id of the backup from which to restore, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
String

The backupId.

getBackupIdBytes()

public ByteString getBackupIdBytes()

The id of the backup from which to restore, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
ByteString

The bytes for backupId.

getBackupInstanceId()

public String getBackupInstanceId()

Cloud instance ID (not path) containing the backup, e.g. "backup-instance".

string backup_instance_id = 2;

Returns
TypeDescription
String

The backupInstanceId.

getBackupInstanceIdBytes()

public ByteString getBackupInstanceIdBytes()

Cloud instance ID (not path) containing the backup, e.g. "backup-instance".

string backup_instance_id = 2;

Returns
TypeDescription
ByteString

The bytes for backupInstanceId.

getDatabaseId()

public String getDatabaseId()

The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.

string database_id = 5;

Returns
TypeDescription
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.

string database_id = 5;

Returns
TypeDescription
ByteString

The bytes for databaseId.

getDatabaseInstanceId()

public String getDatabaseInstanceId()

Cloud instance ID (not path) containing the database, e.g. "database-instance".

string database_instance_id = 4;

Returns
TypeDescription
String

The databaseInstanceId.

getDatabaseInstanceIdBytes()

public ByteString getDatabaseInstanceIdBytes()

Cloud instance ID (not path) containing the database, e.g. "database-instance".

string database_instance_id = 4;

Returns
TypeDescription
ByteString

The bytes for databaseInstanceId.

getDefaultInstanceForType()

public RestoreCloudDatabaseAction getDefaultInstanceForType()
Returns
TypeDescription
RestoreCloudDatabaseAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProjectId()

public String getProjectId()

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

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestoreCloudDatabaseAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

mergeFrom(RestoreCloudDatabaseAction other)

public RestoreCloudDatabaseAction.Builder mergeFrom(RestoreCloudDatabaseAction other)
Parameter
NameDescription
otherRestoreCloudDatabaseAction
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

setBackupId(String value)

public RestoreCloudDatabaseAction.Builder setBackupId(String value)

The id of the backup from which to restore, e.g. "test-backup".

string backup_id = 3;

Parameter
NameDescription
valueString

The backupId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setBackupIdBytes(ByteString value)

public RestoreCloudDatabaseAction.Builder setBackupIdBytes(ByteString value)

The id of the backup from which to restore, e.g. "test-backup".

string backup_id = 3;

Parameter
NameDescription
valueByteString

The bytes for backupId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setBackupInstanceId(String value)

public RestoreCloudDatabaseAction.Builder setBackupInstanceId(String value)

Cloud instance ID (not path) containing the backup, e.g. "backup-instance".

string backup_instance_id = 2;

Parameter
NameDescription
valueString

The backupInstanceId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setBackupInstanceIdBytes(ByteString value)

public RestoreCloudDatabaseAction.Builder setBackupInstanceIdBytes(ByteString value)

Cloud instance ID (not path) containing the backup, e.g. "backup-instance".

string backup_instance_id = 2;

Parameter
NameDescription
valueByteString

The bytes for backupInstanceId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseId(String value)

public RestoreCloudDatabaseAction.Builder setDatabaseId(String value)

The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.

string database_id = 5;

Parameter
NameDescription
valueString

The databaseId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public RestoreCloudDatabaseAction.Builder setDatabaseIdBytes(ByteString value)

The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.

string database_id = 5;

Parameter
NameDescription
valueByteString

The bytes for databaseId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseInstanceId(String value)

public RestoreCloudDatabaseAction.Builder setDatabaseInstanceId(String value)

Cloud instance ID (not path) containing the database, e.g. "database-instance".

string database_instance_id = 4;

Parameter
NameDescription
valueString

The databaseInstanceId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseInstanceIdBytes(ByteString value)

public RestoreCloudDatabaseAction.Builder setDatabaseInstanceIdBytes(ByteString value)

Cloud instance ID (not path) containing the database, e.g. "database-instance".

string database_instance_id = 4;

Parameter
NameDescription
valueByteString

The bytes for databaseInstanceId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

setProjectId(String value)

public RestoreCloudDatabaseAction.Builder setProjectId(String value)

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

string project_id = 1;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public RestoreCloudDatabaseAction.Builder setProjectIdBytes(ByteString value)

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

string project_id = 1;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
RestoreCloudDatabaseAction.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestoreCloudDatabaseAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreCloudDatabaseAction.Builder
Overrides