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.List

Contents

Description

Detects the language of text within a request.

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

Synopsis

REST Resource

type DetectionsListResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (QueryParams "q" Text :> (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 :> Get '[JSON] DetectionsListResponse)))))))))))) Source #

A resource alias for language.detections.list method which the DetectionsList request conforms to.

Creating a Request

detectionsList Source #

Arguments

:: [Text]

dlQ

-> DetectionsList 

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

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

data DetectionsList Source #

Detects the language of text within a request.

See: detectionsList smart constructor.

Instances
Eq DetectionsList Source # 
Instance details

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

Data DetectionsList Source # 
Instance details

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

Methods

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

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

toConstr :: DetectionsList -> Constr #

dataTypeOf :: DetectionsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DetectionsList Source # 
Instance details

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

Generic DetectionsList Source # 
Instance details

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

Associated Types

type Rep DetectionsList :: Type -> Type #

GoogleRequest DetectionsList Source # 
Instance details

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

Associated Types

type Rs DetectionsList :: Type #

type Scopes DetectionsList :: [Symbol] #

type Rep DetectionsList Source # 
Instance details

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

type Scopes DetectionsList Source # 
Instance details

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

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

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

Request Lenses

dlUploadProtocol :: Lens' DetectionsList (Maybe Text) Source #

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

dlPp :: Lens' DetectionsList Bool Source #

Pretty-print response.

dlUploadType :: Lens' DetectionsList (Maybe Text) Source #

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

dlQ :: Lens' DetectionsList [Text] Source #

The input text upon which to perform language detection. Repeat this parameter to perform language detection on multiple text inputs.