Class RestoreCloudDatabaseAction (6.82.0)

public final class RestoreCloudDatabaseAction extends GeneratedMessageV3 implements RestoreCloudDatabaseActionOrBuilder

Action that restores a Cloud Spanner database from a backup.

Protobuf type google.spanner.executor.v1.RestoreCloudDatabaseAction

Static Fields

BACKUP_ID_FIELD_NUMBER

public static final int BACKUP_ID_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_INSTANCE_ID_FIELD_NUMBER

public static final int BACKUP_INSTANCE_ID_FIELD_NUMBER
Field Value
Type Description
int

DATABASE_ID_FIELD_NUMBER

public static final int DATABASE_ID_FIELD_NUMBER
Field Value
Type Description
int

DATABASE_INSTANCE_ID_FIELD_NUMBER

public static final int DATABASE_INSTANCE_ID_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_CONFIG_FIELD_NUMBER

public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RestoreCloudDatabaseAction getDefaultInstance()
Returns
Type Description
RestoreCloudDatabaseAction

getDescriptor()

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

newBuilder()

public static RestoreCloudDatabaseAction.Builder newBuilder()
Returns
Type Description
RestoreCloudDatabaseAction.Builder

newBuilder(RestoreCloudDatabaseAction prototype)

public static RestoreCloudDatabaseAction.Builder newBuilder(RestoreCloudDatabaseAction prototype)
Parameter
Name Description
prototype RestoreCloudDatabaseAction
Returns
Type Description
RestoreCloudDatabaseAction.Builder

parseDelimitedFrom(InputStream input)

public static RestoreCloudDatabaseAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreCloudDatabaseAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RestoreCloudDatabaseAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RestoreCloudDatabaseAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RestoreCloudDatabaseAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RestoreCloudDatabaseAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RestoreCloudDatabaseAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreCloudDatabaseAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RestoreCloudDatabaseAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreCloudDatabaseAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RestoreCloudDatabaseAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RestoreCloudDatabaseAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreCloudDatabaseAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RestoreCloudDatabaseAction> parser()
Returns
Type Description
Parser<RestoreCloudDatabaseAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackupId()

public String getBackupId()

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

string backup_id = 3;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for databaseInstanceId.

getDefaultInstanceForType()

public RestoreCloudDatabaseAction getDefaultInstanceForType()
Returns
Type Description
RestoreCloudDatabaseAction

getEncryptionConfig()

public EncryptionConfig getEncryptionConfig()

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

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

Returns
Type Description
EncryptionConfig

The encryptionConfig.

getEncryptionConfigOrBuilder()

public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

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

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

Returns
Type Description
EncryptionConfigOrBuilder

getParserForType()

public Parser<RestoreCloudDatabaseAction> getParserForType()
Returns
Type Description
Parser<RestoreCloudDatabaseAction>
Overrides

getProjectId()

public String getProjectId()

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

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEncryptionConfig()

public boolean hasEncryptionConfig()

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

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

Returns
Type Description
boolean

Whether the encryptionConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RestoreCloudDatabaseAction.Builder newBuilderForType()
Returns
Type Description
RestoreCloudDatabaseAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RestoreCloudDatabaseAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RestoreCloudDatabaseAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RestoreCloudDatabaseAction.Builder toBuilder()
Returns
Type Description
RestoreCloudDatabaseAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException