Class ProjectsResource.LocationsResource.AgentsResource.FlowsResource.TrainRequest
Trains the specified flow. Note that only the flow in 'draft' environment is trained. 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.FlowsResource.TrainRequest
Inherited Members
Namespace: Google.Apis.Dialogflow.v3
Assembly: Google.Apis.Dialogflow.v3.dll
Syntax
public class ProjectsResource.LocationsResource.AgentsResource.FlowsResource.TrainRequest : DialogflowBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
TrainRequest(IClientService, GoogleCloudDialogflowCxV3TrainFlowRequest, string)
Constructs a new Train request.
Declaration
public TrainRequest(IClientService service, GoogleCloudDialogflowCxV3TrainFlowRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowCxV3TrainFlowRequest | 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 flow to train. Format: projects//locations//agents//flows/
.
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 Train parameter list.
Declaration
protected override void InitParameters()