gogol-language-0.4.0: Google Cloud Natural Language 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.Language.Documents.AnnotateText

Contents

Description

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

See: Cloud Natural Language API Reference for language.documents.annotateText.

Synopsis

REST Resource

type DocumentsAnnotateTextResource = "v1" :> ("documents:annotateText" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnnotateTextRequest :> Post '[JSON] AnnotateTextResponse)))))))) Source #

A resource alias for language.documents.annotateText method which the DocumentsAnnotateText request conforms to.

Creating a Request

documentsAnnotateText Source #

Creates a value of DocumentsAnnotateText with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DocumentsAnnotateText Source #

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

See: documentsAnnotateText smart constructor.

Instances
Eq DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

Data DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

Methods

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

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

toConstr :: DocumentsAnnotateText -> Constr #

dataTypeOf :: DocumentsAnnotateText -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

Generic DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

Associated Types

type Rep DocumentsAnnotateText :: Type -> Type #

GoogleRequest DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

type Rep DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

type Rep DocumentsAnnotateText = D1 (MetaData "DocumentsAnnotateText" "Network.Google.Resource.Language.Documents.AnnotateText" "gogol-language-0.4.0-5pnSmGql6DrGvyDSKlfn7G" False) (C1 (MetaCons "DocumentsAnnotateText'" PrefixI True) ((S1 (MetaSel (Just "_datXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_datUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_datAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_datUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_datPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AnnotateTextRequest) :*: S1 (MetaSel (Just "_datCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes DocumentsAnnotateText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.AnnotateText

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

Defined in Network.Google.Resource.Language.Documents.AnnotateText

Request Lenses

datUploadProtocol :: Lens' DocumentsAnnotateText (Maybe Text) Source #

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

datUploadType :: Lens' DocumentsAnnotateText (Maybe Text) Source #

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