public sealed class RestoreServiceRequest : IMessage<RestoreServiceRequest>, IEquatable<RestoreServiceRequest>, IDeepCloneable<RestoreServiceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Dataproc Metastore v1beta 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\u003e\u003ccode\u003eRestoreServiceRequest\u003c/code\u003e is a class within the Google Cloud Dataproc Metastore v1beta API used to define a request for restoring a metastore service.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it compatible with protocol buffers and providing functionalities like deep cloning and equality comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e class requires specifying the service to restore, and a backup to restore from, which can be set as strings or as \u003ccode\u003eBackupName\u003c/code\u003e and \u003ccode\u003eServiceName\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThere are optional properties within \u003ccode\u003eRestoreServiceRequest\u003c/code\u003e, such as \u003ccode\u003eRequestId\u003c/code\u003e, which can be used for request de-duplication, and \u003ccode\u003eRestoreType\u003c/code\u003e, which dictates the type of restore operation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this api is 2.0.0-beta11.\u003c/p\u003e\n"]]],[],null,["# Dataproc Metastore v1beta API - Class RestoreServiceRequest (2.0.0-beta11)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta11 (latest)](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.RestoreServiceRequest)\n- [2.0.0-beta10](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/2.0.0-beta10/Google.Cloud.Metastore.V1Beta.RestoreServiceRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/1.0.0-beta02/Google.Cloud.Metastore.V1Beta.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 v1beta 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.V1Beta/latest/Google.Cloud.Metastore.V1Beta.RestoreServiceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreServiceRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.RestoreServiceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreServiceRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.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.V1Beta](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Metastore.V1Beta.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.V1Beta/latest/Google.Cloud.Metastore.V1Beta.BackupName)-typed view over the [Backup](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.RestoreServiceRequest#Google_Cloud_Metastore_V1Beta_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.V1Beta/latest/Google.Cloud.Metastore.V1Beta.ServiceName)-typed view over the [Service](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.RestoreServiceRequest#Google_Cloud_Metastore_V1Beta_RestoreServiceRequest_Service) resource name property."]]