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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RestoreCloudDatabaseAction.BuilderImplements
RestoreCloudDatabaseActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RestoreCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
build()
public RestoreCloudDatabaseAction build()
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction |
buildPartial()
public RestoreCloudDatabaseAction buildPartial()
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction |
clear()
public RestoreCloudDatabaseAction.Builder clear()
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
clearBackupId()
public RestoreCloudDatabaseAction.Builder clearBackupId()
The id of the backup from which to restore, e.g. "test-backup".
string backup_id = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RestoreCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public RestoreCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
clearProjectId()
public RestoreCloudDatabaseAction.Builder clearProjectId()
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder | This builder for chaining. |
clone()
public RestoreCloudDatabaseAction.Builder clone()
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
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 |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestoreCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public RestoreCloudDatabaseAction.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
mergeFrom(RestoreCloudDatabaseAction other)
public RestoreCloudDatabaseAction.Builder mergeFrom(RestoreCloudDatabaseAction other)
Parameter | |
---|---|
Name | Description |
other | RestoreCloudDatabaseAction |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RestoreCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
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 | |
---|---|
Name | Description |
value | String The backupId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for backupId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The backupInstanceId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for backupInstanceId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The databaseId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for databaseId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The databaseInstanceId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for databaseInstanceId to set. |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RestoreCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
setProjectId(String value)
public RestoreCloudDatabaseAction.Builder setProjectId(String value)
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;
Parameter | |
---|---|
Name | Description |
value | String The projectId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final RestoreCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
RestoreCloudDatabaseAction.Builder |