Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.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. Note: Always use agent versions for production traffic. See Versions and environments.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>
ProjectsResource.LocationsResource.AgentResource.SessionsResource.DetectIntentRequest
Implements
IClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>
IClientServiceRequest
Inherited Members
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Xgafv
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.AccessToken
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Alt
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Callback
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Fields
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Key
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.OauthToken
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.PrettyPrint
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.QuotaUser
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.UploadType
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.UploadProtocol
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Execute()
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ExecuteAsync()
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.GetDefaultETagAction(String)
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ETagAction
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ModifyRequest
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.ValidateParameters
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.RequestParameters
ClientServiceRequest<GoogleCloudDialogflowV2DetectIntentResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class 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
System.String session

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2DetectIntentResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2DetectIntentResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2DetectIntentResponse>.RestPath

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
System.String

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2DetectIntentResponse>.GetBody()

InitParameters()

Initializes DetectIntent parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Dialogflow.v2.DialogflowBaseServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2DetectIntentResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top