Class ProjectsResource.SetAgentRequest
Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.
Inheritance
ProjectsResource.SetAgentRequest
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.SetAgentRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Agent>, IClientServiceRequest<GoogleCloudDialogflowV2Agent>, IClientServiceRequest
Constructors
SetAgentRequest(IClientService, GoogleCloudDialogflowV2Agent, string)
Constructs a new SetAgent request.
Declaration
public SetAgentRequest(IClientService service, GoogleCloudDialogflowV2Agent body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowV2Agent | body | |
string | parent |
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
Parent
Required. The project of this agent. Format: projects/
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Optional. The mask to control which fields get updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes SetAgent parameter list.
Declaration
protected override void InitParameters()