# Cloud Spanner Database Admin V1 API - Class Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseMetadata (v1.14.0)

1.14.0 (latest) 1.13.1 1.12.0 1.11.1 1.10.0 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.1 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.6 Reference documentation and code samples for the Cloud Spanner Database Admin V1 API class Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseMetadata.

Metadata type for the long-running operation returned by
[RestoreDatabase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_restore_database_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#restore_database (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup_info

    def backup_info() -> ::Google::Cloud::Spanner::Admin::Database::V1::BackupInfo

**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::BackupInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-BackupInfo)) --- Information about the backup used to restore the database.

### #backup_info=

    def backup_info=(value) -> ::Google::Cloud::Spanner::Admin::Database::V1::BackupInfo

**Parameter**

- **value** ([::Google::Cloud::Spanner::Admin::Database::V1::BackupInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-BackupInfo)) --- Information about the backup used to restore the database.
**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::BackupInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-BackupInfo)) --- Information about the backup used to restore the database.

### #cancel_time

    def cancel_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Protobuf-Timestamp)) --- The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.

### #cancel_time=

    def cancel_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Protobuf-Timestamp)) --- The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Protobuf-Timestamp)) --- The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the database being created and restored to.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the database being created and restored to.
**Returns**

- (::String) --- Name of the database being created and restored to.

### #optimize_database_operation_name

    def optimize_database_operation_name() -> ::String

**Returns**

- (::String) --- If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored database, and remove the dependency on the restore source. The name is of the form `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>` where the

### #optimize_database_operation_name=

    def optimize_database_operation_name=(value) -> ::String

**Parameter**

- **value** (::String) --- If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored database, and remove the dependency on the restore source. The name is of the form `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>` where the
**Returns**

- (::String) --- If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored database, and remove the dependency on the restore source. The name is of the form `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>` where the

### #progress

    def progress() -> ::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress

**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-OperationProgress)) --- The progress of the [RestoreDatabase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_restore_database_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#restore_database (method)") operation.

### #progress=

    def progress=(value) -> ::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress

**Parameter**

- **value** ([::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-OperationProgress)) --- The progress of the [RestoreDatabase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_restore_database_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#restore_database (method)") operation.
**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-OperationProgress)) --- The progress of the [RestoreDatabase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_restore_database_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#restore_database (method)") operation.

### #source_type

    def source_type() -> ::Google::Cloud::Spanner::Admin::Database::V1::RestoreSourceType

**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::RestoreSourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-RestoreSourceType)) --- The type of the restore source.

### #source_type=

    def source_type=(value) -> ::Google::Cloud::Spanner::Admin::Database::V1::RestoreSourceType

**Parameter**

- **value** ([::Google::Cloud::Spanner::Admin::Database::V1::RestoreSourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-RestoreSourceType)) --- The type of the restore source.
**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::RestoreSourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-RestoreSourceType)) --- The type of the restore source.