gogol-dialogflow-0.4.0: Google Dialogflow SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

Contents

Description

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.

See: Dialogflow API Reference for dialogflow.projects.agent.sessions.detectIntent.

Synopsis

REST Resource

type ProjectsAgentSessionsDetectIntentResource = "v2" :> (CaptureMode "session" "detectIntent" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2DetectIntentRequest :> Post '[JSON] GoogleCloudDialogflowV2DetectIntentResponse)))))))) Source #

A resource alias for dialogflow.projects.agent.sessions.detectIntent method which the ProjectsAgentSessionsDetectIntent request conforms to.

Creating a Request

data ProjectsAgentSessionsDetectIntent Source #

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.

See: projectsAgentSessionsDetectIntent smart constructor.

Instances
Eq ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

Data ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsAgentSessionsDetectIntent -> c ProjectsAgentSessionsDetectIntent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsAgentSessionsDetectIntent #

toConstr :: ProjectsAgentSessionsDetectIntent -> Constr #

dataTypeOf :: ProjectsAgentSessionsDetectIntent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsAgentSessionsDetectIntent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsAgentSessionsDetectIntent) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsAgentSessionsDetectIntent -> ProjectsAgentSessionsDetectIntent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAgentSessionsDetectIntent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAgentSessionsDetectIntent -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsAgentSessionsDetectIntent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsAgentSessionsDetectIntent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsAgentSessionsDetectIntent -> m ProjectsAgentSessionsDetectIntent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAgentSessionsDetectIntent -> m ProjectsAgentSessionsDetectIntent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAgentSessionsDetectIntent -> m ProjectsAgentSessionsDetectIntent #

Show ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

Generic ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

Associated Types

type Rep ProjectsAgentSessionsDetectIntent :: Type -> Type #

GoogleRequest ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

type Rep ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

type Rep ProjectsAgentSessionsDetectIntent = D1 (MetaData "ProjectsAgentSessionsDetectIntent" "Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentSessionsDetectIntent'" PrefixI True) ((S1 (MetaSel (Just "_pasdiXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pasdiUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pasdiAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pasdiUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pasdiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2DetectIntentRequest)) :*: (S1 (MetaSel (Just "_pasdiSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pasdiCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

type Scopes ProjectsAgentSessionsDetectIntent = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/dialogflow" ': ([] :: [Symbol]))
type Rs ProjectsAgentSessionsDetectIntent Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.DetectIntent

Request Lenses

pasdiUploadProtocol :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pasdiUploadType :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pasdiSession :: Lens' ProjectsAgentSessionsDetectIntent Text Source #

Required. The name of the session this query is sent to. Format: `projects//agent/sessions/`. It's up to the API caller to choose an appropriate session ID. It can be a random number or some type of user identifier (preferably hashed). The length of the session ID must not exceed 36 bytes.