Class ProjectsResource.AgentResource.SessionsResource.DetectIntentRequest
Processes a natural language query and returns structured, actionable data as a result. This method
is not idempotent, because it may cause contexts and session entity types to be updated, which in
turn might affect results of future queries. If you might use Agent
Assist or other CCAI products now or in the future,
consider using AnalyzeContent instead of DetectIntent
. AnalyzeContent
has additional
functionality for Agent Assist and other CCAI products. Note: Always use agent versions for
production traffic. See Versions and
environments.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.AgentResource.SessionsResource.DetectIntentRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>, IClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>, IClientServiceRequest
Constructors
DetectIntentRequest(IClientService, GoogleCloudDialogflowV2DetectIntentRequest, string)
Constructs a new DetectIntent request.
Declaration
public DetectIntentRequest(IClientService service, GoogleCloudDialogflowV2DetectIntentRequest body, string session)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowV2DetectIntentRequest | body | |
string | session |
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Session
Required. The name of the session this query is sent to. Format: projects//agent/sessions/
, or
projects//agent/environments//users//sessions/
. If Environment ID
is not specified, we
assume default 'draft' environment (Environment ID
might be referred to as environment name at
some places). If User ID
is not specified, we are using "-". It's up to the API caller to
choose an appropriate Session ID
and User Id
. They can be a random number or some type of
user and session identifiers (preferably hashed). The length of the Session ID
and User ID
must not exceed 36 characters. For more information, see the API interactions
guide. Note: Always use agent versions
for production traffic. See Versions and
environments.
Declaration
[RequestParameter("session", RequestParameterType.Path)]
public virtual string Session { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes DetectIntent parameter list.
Declaration
protected override void InitParameters()