public sealed class RestoreServiceRequest : IMessage<RestoreServiceRequest>, IEquatable<RestoreServiceRequest>, IDeepCloneable<RestoreServiceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Dataproc Metastore v1 API class RestoreServiceRequest.
Request message for [DataprocMetastore.Restore][].
Optional. A request ID. Specify a unique request ID to allow the server to
ignore the request if it has completed. The server will ignore subsequent
requests that provide a duplicate request ID for at least 60 minutes after
the first request.
For example, if an initial request times out, followed by another request
with the same request ID, the server ignores the second request to prevent
the creation of duplicate commitments.
The request ID must be a valid
UUID.
A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e class within the Google Cloud Dataproc Metastore v1 API, detailing its purpose as a request message for restoring a Dataproc Metastore.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Metastore.V1\u003c/code\u003e namespace, and the latest version of the class documentation is version 2.9.0, with a history of documentation spanning back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e class includes properties for specifying the backup resource name (\u003ccode\u003eBackup\u003c/code\u003e), the service resource name (\u003ccode\u003eService\u003c/code\u003e), a request ID (\u003ccode\u003eRequestId\u003c/code\u003e), and the type of restore (\u003ccode\u003eRestoreType\u003c/code\u003e), along with corresponding typed views.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e class has two constructors, one empty and one taking another \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits members from the base object class, and it implements four interfaces, such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"]]],[],null,["# Dataproc Metastore v1 API - Class RestoreServiceRequest (2.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.8.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.7.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.6.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.5.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.4.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.3.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.2.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.1.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/2.0.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/1.1.0/Google.Cloud.Metastore.V1.RestoreServiceRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Metastore.V1/1.0.0/Google.Cloud.Metastore.V1.RestoreServiceRequest) \n\n public sealed class RestoreServiceRequest : IMessage\u003cRestoreServiceRequest\u003e, IEquatable\u003cRestoreServiceRequest\u003e, IDeepCloneable\u003cRestoreServiceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dataproc Metastore v1 API class RestoreServiceRequest.\n\nRequest message for \\[DataprocMetastore.Restore\\]\\[\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RestoreServiceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreServiceRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.RestoreServiceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreServiceRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.RestoreServiceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreServiceRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.RestoreServiceRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Metastore.V1](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Metastore.V1.dll\n\nConstructors\n------------\n\n### RestoreServiceRequest()\n\n public RestoreServiceRequest()\n\n### RestoreServiceRequest(RestoreServiceRequest)\n\n public RestoreServiceRequest(RestoreServiceRequest other)\n\nProperties\n----------\n\n### Backup\n\n public string Backup { get; set; }\n\nRequired. The relative resource name of the metastore service backup to\nrestore from, in the following form:\n\n`projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.\n\n### BackupAsBackupName\n\n public BackupName BackupAsBackupName { get; set; }\n\n[BackupName](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.BackupName)-typed view over the [Backup](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.RestoreServiceRequest#Google_Cloud_Metastore_V1_RestoreServiceRequest_Backup) resource name property.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A request ID. Specify a unique request ID to allow the server to\nignore the request if it has completed. The server will ignore subsequent\nrequests that provide a duplicate request ID for at least 60 minutes after\nthe first request.\n\nFor example, if an initial request times out, followed by another request\nwith the same request ID, the server ignores the second request to prevent\nthe creation of duplicate commitments.\n\nThe request ID must be a valid\n[UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).\nA zero UUID (00000000-0000-0000-0000-000000000000) is not supported.\n\n### RestoreType\n\n public Restore.Types.RestoreType RestoreType { get; set; }\n\nOptional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.\n\n### Service\n\n public string Service { get; set; }\n\nRequired. The relative resource name of the metastore service to run\nrestore, in the following form:\n\n`projects/{project_id}/locations/{location_id}/services/{service_id}`.\n\n### ServiceAsServiceName\n\n public ServiceName ServiceAsServiceName { get; set; }\n\n[ServiceName](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.ServiceName)-typed view over the [Service](/dotnet/docs/reference/Google.Cloud.Metastore.V1/latest/Google.Cloud.Metastore.V1.RestoreServiceRequest#Google_Cloud_Metastore_V1_RestoreServiceRequest_Service) resource name property."]]