gogol-translate-0.1.1: Google Translate 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

Detect the language of text.

See: Translate API Reference for language.detections.list.

Synopsis

REST Resource

type DetectionsListResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (QueryParams "q" 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 #

Detect the language of text.

See: detectionsList smart constructor.

Instances

Eq DetectionsList Source # 
Data DetectionsList Source # 

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 # 
Generic DetectionsList Source # 

Associated Types

type Rep DetectionsList :: * -> * #

GoogleRequest DetectionsList Source # 
type Rep DetectionsList Source # 
type Rep DetectionsList = D1 (MetaData "DetectionsList" "Network.Google.Resource.Language.Detections.List" "gogol-translate-0.1.1-KdZ3DDcmZ1kgBSJy99q8A" True) (C1 (MetaCons "DetectionsList'" PrefixI True) (S1 (MetaSel (Just Symbol "_dlQ") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type Scopes DetectionsList Source # 
type Rs DetectionsList Source # 

Request Lenses

dlQ :: Lens' DetectionsList [Text] Source #

The text to detect