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 value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
↳ optimize_database_operation_name
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
getName
Name of the database being created and restored to.
Returns
Type
Description
string
setName
Name of the database being created and restored to.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSourceType
The type of the restore source.
Returns
Type
Description
int
setSourceType
The type of the restore source.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getBackupInfo
Information about the backup used to restore the database.
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 value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
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 value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
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
Type
Description
string
setOptimizeDatabaseOperationName
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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Spanner V1 Client - Class RestoreDatabaseMetadata (1.104.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.104.0 (latest)](/php/docs/reference/cloud-spanner/latest/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.103.0](/php/docs/reference/cloud-spanner/1.103.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.102.0](/php/docs/reference/cloud-spanner/1.102.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.101.0](/php/docs/reference/cloud-spanner/1.101.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.100.0](/php/docs/reference/cloud-spanner/1.100.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.98.0](/php/docs/reference/cloud-spanner/1.98.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.97.0](/php/docs/reference/cloud-spanner/1.97.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.96.0](/php/docs/reference/cloud-spanner/1.96.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.95.0](/php/docs/reference/cloud-spanner/1.95.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.94.0](/php/docs/reference/cloud-spanner/1.94.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.93.1](/php/docs/reference/cloud-spanner/1.93.1/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.92.1](/php/docs/reference/cloud-spanner/1.92.1/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.91.0](/php/docs/reference/cloud-spanner/1.91.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.90.0](/php/docs/reference/cloud-spanner/1.90.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.89.0](/php/docs/reference/cloud-spanner/1.89.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.88.0](/php/docs/reference/cloud-spanner/1.88.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.87.0](/php/docs/reference/cloud-spanner/1.87.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.86.0](/php/docs/reference/cloud-spanner/1.86.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.85.0](/php/docs/reference/cloud-spanner/1.85.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.84.0](/php/docs/reference/cloud-spanner/1.84.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.83.0](/php/docs/reference/cloud-spanner/1.83.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.82.0](/php/docs/reference/cloud-spanner/1.82.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.81.0](/php/docs/reference/cloud-spanner/1.81.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.80.0](/php/docs/reference/cloud-spanner/1.80.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.79.0](/php/docs/reference/cloud-spanner/1.79.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.78.0](/php/docs/reference/cloud-spanner/1.78.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.77.0](/php/docs/reference/cloud-spanner/1.77.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.76.1](/php/docs/reference/cloud-spanner/1.76.1/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.68.0](/php/docs/reference/cloud-spanner/1.68.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.67.0](/php/docs/reference/cloud-spanner/1.67.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.66.0](/php/docs/reference/cloud-spanner/1.66.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.65.0](/php/docs/reference/cloud-spanner/1.65.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.64.0](/php/docs/reference/cloud-spanner/1.64.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.63.2](/php/docs/reference/cloud-spanner/1.63.2/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.62.1](/php/docs/reference/cloud-spanner/1.62.1/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.61.0](/php/docs/reference/cloud-spanner/1.61.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.60.0](/php/docs/reference/cloud-spanner/1.60.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.59.0](/php/docs/reference/cloud-spanner/1.59.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.58.4](/php/docs/reference/cloud-spanner/1.58.4/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.57.0](/php/docs/reference/cloud-spanner/1.57.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.56.0](/php/docs/reference/cloud-spanner/1.56.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.55.0](/php/docs/reference/cloud-spanner/1.55.0/Admin.Database.V1.RestoreDatabaseMetadata)\n- [1.54.2](/php/docs/reference/cloud-spanner/1.54.2/Admin.Database.V1.RestoreDatabaseMetadata) \nReference documentation and code samples for the Cloud Spanner V1 Client class RestoreDatabaseMetadata.\n\nMetadata type for the long-running operation returned by\nRestoreDatabase.\n\nGenerated from protobuf message `google.spanner.admin.database.v1.RestoreDatabaseMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Spanner \\\\ Admin \\\\ Database \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nName of the database being created and restored to.\n\n### setName\n\nName of the database being created and restored to.\n\n### getSourceType\n\nThe type of the restore source.\n\n### setSourceType\n\nThe type of the restore source.\n\n### getBackupInfo\n\nInformation about the backup used to restore the database.\n\n### hasBackupInfo\n\n### setBackupInfo\n\nInformation about the backup used to restore the database.\n\n### getProgress\n\nThe progress of the\nRestoreDatabase\noperation.\n\n### hasProgress\n\n### clearProgress\n\n### setProgress\n\nThe progress of the\nRestoreDatabase\noperation.\n\n### getCancelTime\n\nThe time at which cancellation of this operation was received.\n\nOperations.CancelOperation\nstarts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not guaranteed.\nClients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a\n[google.rpc.Status.code](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1, corresponding to\n`Code.CANCELLED`.\n\n### hasCancelTime\n\n### clearCancelTime\n\n### setCancelTime\n\nThe time at which cancellation of this operation was received.\n\nOperations.CancelOperation\nstarts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not guaranteed.\nClients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a\n[google.rpc.Status.code](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html#_Google_Rpc_Status__getCode__) of 1, corresponding to\n`Code.CANCELLED`.\n\n### getOptimizeDatabaseOperationName\n\nIf exists, the name of the long-running operation that will be used to\ntrack the post-restore optimization process to optimize the performance of\nthe restored database, and remove the dependency on the restore source.\n\nThe name is of the form\n`projects/\u003cproject\u003e/instances/\u003cinstance\u003e/databases/\u003cdatabase\u003e/operations/\u003coperation\u003e`\nwhere the\n\n\n### setOptimizeDatabaseOperationName\n\nIf exists, the name of the long-running operation that will be used to\ntrack the post-restore optimization process to optimize the performance of\nthe restored database, and remove the dependency on the restore source.\n\nThe name is of the form\n`projects/\u003cproject\u003e/instances/\u003cinstance\u003e/databases/\u003cdatabase\u003e/operations/\u003coperation\u003e`\nwhere the\n\n\n### getSourceInfo"]]