public sealed class RestoreAgentRequest : IMessage<RestoreAgentRequest>, IEquatable<RestoreAgentRequest>, IDeepCloneable<RestoreAgentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class RestoreAgentRequest.
The request message for
[Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
The URI to a Google Cloud Storage file containing the agent to restore.
Note: The URI must start with "gs://".
Dialogflow performs a read operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have read permissions for the object. For more information, see
Dialogflow access
control.
[[["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-03 UTC."],[[["\u003cp\u003e\u003ccode\u003eRestoreAgentRequest\u003c/code\u003e is a class in the Google Cloud Dialogflow v2beta1 API, representing a request to restore an agent, specifically for the \u003ccode\u003eAgents.RestoreAgent\u003c/code\u003e operation.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports agent restoration via compressed byte content (\u003ccode\u003eAgentContent\u003c/code\u003e) or a Google Cloud Storage URI (\u003ccode\u003eAgentUri\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRestoreAgentRequest\u003c/code\u003e requires a \u003ccode\u003eParent\u003c/code\u003e property that indicates the project associated with the agent being restored, formatted as \u003ccode\u003eprojects/<Project ID>\u003c/code\u003e or \u003ccode\u003eprojects/<Project ID>/locations/<Location ID>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is derived from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides multiple ways to view the \u003ccode\u003eParent\u003c/code\u003e property, including \u003ccode\u003eLocationName\u003c/code\u003e, \u003ccode\u003eProjectName\u003c/code\u003e, or generic \u003ccode\u003eIResourceName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class RestoreAgentRequest (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest) \n\n public sealed class RestoreAgentRequest : IMessage\u003cRestoreAgentRequest\u003e, IEquatable\u003cRestoreAgentRequest\u003e, IDeepCloneable\u003cRestoreAgentRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class RestoreAgentRequest.\n\nThe request message for\n\\[Agents.RestoreAgent\\]\\[google.cloud.dialogflow.v2beta1.Agents.RestoreAgent\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RestoreAgentRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreAgentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreAgentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreAgentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest), [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.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### RestoreAgentRequest()\n\n public RestoreAgentRequest()\n\n### RestoreAgentRequest(RestoreAgentRequest)\n\n public RestoreAgentRequest(RestoreAgentRequest other)\n\nProperties\n----------\n\n### AgentCase\n\n public RestoreAgentRequest.AgentOneofCase AgentCase { get; }\n\n### AgentContent\n\n public ByteString AgentContent { get; set; }\n\nZip compressed raw byte content for agent.\n\n### AgentUri\n\n public string AgentUri { get; set; }\n\nThe URI to a Google Cloud Storage file containing the agent to restore.\nNote: The URI must start with \"gs://\".\n\nDialogflow performs a read operation for the Cloud Storage object\non the caller's behalf, so your request authentication must\nhave read permissions for the object. For more information, see\n[Dialogflow access\ncontrol](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).\n\n### HasAgentContent\n\n public bool HasAgentContent { get; }\n\nGets whether the \"agent_content\" field is set\n\n### HasAgentUri\n\n public bool HasAgentUri { get; }\n\nGets whether the \"agent_uri\" field is set\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project that the agent to restore is associated with.\nFormat: `projects/\u003cProject ID\u003e` or\n`projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest#Google_Cloud_Dialogflow_V2Beta1_RestoreAgentRequest_Parent) resource name property.\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest#Google_Cloud_Dialogflow_V2Beta1_RestoreAgentRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest#Google_Cloud_Dialogflow_V2Beta1_RestoreAgentRequest_Parent) resource name property."]]