- 6.108.0 (latest)
- 6.107.0
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class RestoreDatabaseRequest.Builder extends GeneratedMessage.Builder<RestoreDatabaseRequest.Builder> implements RestoreDatabaseRequestOrBuilderThe request for RestoreDatabase.
Protobuf type google.spanner.admin.database.v1.RestoreDatabaseRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RestoreDatabaseRequest.BuilderImplements
RestoreDatabaseRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RestoreDatabaseRequest build()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest |
|
buildPartial()
public RestoreDatabaseRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest |
|
clear()
public RestoreDatabaseRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
clearBackup()
public RestoreDatabaseRequest.Builder clearBackup() Name of the backup from which to restore. Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
string backup = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
clearDatabaseId()
public RestoreDatabaseRequest.Builder clearDatabaseId() Required. The id of the database to create and restore to. This
database must not already exist. The database_id appended to
parent forms the full database name of the form
projects/<project>/instances/<instance>/databases/<database_id>.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
clearEncryptionConfig()
public RestoreDatabaseRequest.Builder clearEncryptionConfig() Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
clearParent()
public RestoreDatabaseRequest.Builder clearParent() Required. The name of the instance in which to create the
restored database. This instance must be in the same project and
have the same instance configuration as the instance containing
the source backup. Values are of the form
projects/<project>/instances/<instance>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
clearSource()
public RestoreDatabaseRequest.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
getBackup()
public String getBackup() Name of the backup from which to restore. Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
string backup = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The backup. |
getBackupBytes()
public ByteString getBackupBytes() Name of the backup from which to restore. Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
string backup = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for backup. |
getDatabaseId()
public String getDatabaseId() Required. The id of the database to create and restore to. This
database must not already exist. The database_id appended to
parent forms the full database name of the form
projects/<project>/instances/<instance>/databases/<database_id>.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The databaseId. |
getDatabaseIdBytes()
public ByteString getDatabaseIdBytes() Required. The id of the database to create and restore to. This
database must not already exist. The database_id appended to
parent forms the full database name of the form
projects/<project>/instances/<instance>/databases/<database_id>.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for databaseId. |
getDefaultInstanceForType()
public RestoreDatabaseRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEncryptionConfig()
public RestoreDatabaseEncryptionConfig getEncryptionConfig() Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseEncryptionConfig |
The encryptionConfig. |
getEncryptionConfigBuilder()
public RestoreDatabaseEncryptionConfig.Builder getEncryptionConfigBuilder() Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseEncryptionConfig.Builder |
|
getEncryptionConfigOrBuilder()
public RestoreDatabaseEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseEncryptionConfigOrBuilder |
|
getParent()
public String getParent() Required. The name of the instance in which to create the
restored database. This instance must be in the same project and
have the same instance configuration as the instance containing
the source backup. Values are of the form
projects/<project>/instances/<instance>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The name of the instance in which to create the
restored database. This instance must be in the same project and
have the same instance configuration as the instance containing
the source backup. Values are of the form
projects/<project>/instances/<instance>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getSourceCase()
public RestoreDatabaseRequest.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.SourceCase |
|
hasBackup()
public boolean hasBackup() Name of the backup from which to restore. Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
string backup = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backup field is set. |
hasEncryptionConfig()
public boolean hasEncryptionConfig() Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the encryptionConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEncryptionConfig(RestoreDatabaseEncryptionConfig value)
public RestoreDatabaseRequest.Builder mergeEncryptionConfig(RestoreDatabaseEncryptionConfig value) Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreDatabaseEncryptionConfig |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestoreDatabaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RestoreDatabaseRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
mergeFrom(RestoreDatabaseRequest other)
public RestoreDatabaseRequest.Builder mergeFrom(RestoreDatabaseRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
RestoreDatabaseRequest |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
setBackup(String value)
public RestoreDatabaseRequest.Builder setBackup(String value) Name of the backup from which to restore. Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
string backup = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backup to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
setBackupBytes(ByteString value)
public RestoreDatabaseRequest.Builder setBackupBytes(ByteString value) Name of the backup from which to restore. Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
string backup = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backup to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
setDatabaseId(String value)
public RestoreDatabaseRequest.Builder setDatabaseId(String value) Required. The id of the database to create and restore to. This
database must not already exist. The database_id appended to
parent forms the full database name of the form
projects/<project>/instances/<instance>/databases/<database_id>.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe databaseId to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
setDatabaseIdBytes(ByteString value)
public RestoreDatabaseRequest.Builder setDatabaseIdBytes(ByteString value) Required. The id of the database to create and restore to. This
database must not already exist. The database_id appended to
parent forms the full database name of the form
projects/<project>/instances/<instance>/databases/<database_id>.
string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for databaseId to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
setEncryptionConfig(RestoreDatabaseEncryptionConfig value)
public RestoreDatabaseRequest.Builder setEncryptionConfig(RestoreDatabaseEncryptionConfig value) Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreDatabaseEncryptionConfig |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
setEncryptionConfig(RestoreDatabaseEncryptionConfig.Builder builderForValue)
public RestoreDatabaseRequest.Builder setEncryptionConfig(RestoreDatabaseEncryptionConfig.Builder builderForValue) Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RestoreDatabaseEncryptionConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
|
setParent(String value)
public RestoreDatabaseRequest.Builder setParent(String value) Required. The name of the instance in which to create the
restored database. This instance must be in the same project and
have the same instance configuration as the instance containing
the source backup. Values are of the form
projects/<project>/instances/<instance>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public RestoreDatabaseRequest.Builder setParentBytes(ByteString value) Required. The name of the instance in which to create the
restored database. This instance must be in the same project and
have the same instance configuration as the instance containing
the source backup. Values are of the form
projects/<project>/instances/<instance>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseRequest.Builder |
This builder for chaining. |