Class ProjectsResource.LocationsResource.AgentsResource.RestoreRequest
Restores the specified agent from a binary file. Replaces the current agent with a new one. Note
that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This
method is a long-running
operation. The returned
Operation
type has the following method-specific fields: - metadata
: An empty Struct
message -
response
: An Empty
message Note:
You should always train a flow prior to sending it queries. See the training
documentation.
Inheritance
ProjectsResource.LocationsResource.AgentsResource.RestoreRequest
Inherited Members
Namespace: Google.Apis.Dialogflow.v3beta1
Assembly: Google.Apis.Dialogflow.v3beta1.dll
Syntax
public class ProjectsResource.LocationsResource.AgentsResource.RestoreRequest : DialogflowBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
RestoreRequest(IClientService, GoogleCloudDialogflowCxV3beta1RestoreAgentRequest, string)
Constructs a new Restore request.
Declaration
public RestoreRequest(IClientService service, GoogleCloudDialogflowCxV3beta1RestoreAgentRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowCxV3beta1RestoreAgentRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The name of the agent to restore into. Format: projects//locations//agents/
.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Restore parameter list.
Declaration
protected override void InitParameters()