gogol-translate-0.4.0: Google Cloud Translation 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.Detections.Detect

Contents

Description

Detects the language of text within a request.

See: Google Cloud Translation API Reference for language.detections.detect.

Synopsis

REST Resource

type DetectionsDetectResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DetectLanguageRequest :> Post '[JSON] DetectionsListResponse)))))))))))) Source #

A resource alias for language.detections.detect method which the DetectionsDetect request conforms to.

Creating a Request

detectionsDetect Source #

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

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

data DetectionsDetect Source #

Detects the language of text within a request.

See: detectionsDetect smart constructor.

Instances
Eq DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

Data DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

Methods

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

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

toConstr :: DetectionsDetect -> Constr #

dataTypeOf :: DetectionsDetect -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

Generic DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

Associated Types

type Rep DetectionsDetect :: Type -> Type #

GoogleRequest DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

Associated Types

type Rs DetectionsDetect :: Type #

type Scopes DetectionsDetect :: [Symbol] #

type Rep DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

type Scopes DetectionsDetect Source # 
Instance details

Defined in Network.Google.Resource.Language.Detections.Detect

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

Defined in Network.Google.Resource.Language.Detections.Detect

Request Lenses

ddUploadProtocol :: Lens' DetectionsDetect (Maybe Text) Source #

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

ddPp :: Lens' DetectionsDetect Bool Source #

Pretty-print response.

ddUploadType :: Lens' DetectionsDetect (Maybe Text) Source #

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