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.Translate.Types

Contents

Description

 
Synopsis

Service Configuration

translateService :: ServiceConfig Source #

Default request referring to version v2 of the Google Cloud Translation API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #

View and manage your data across Google Cloud Platform services

cloudTranslationScope :: Proxy '["https://www.googleapis.com/auth/cloud-translation"] Source #

Translate text from one language to another using Google Translate

DetectLanguageRequest

data DetectLanguageRequest Source #

The request message for language detection.

See: detectLanguageRequest smart constructor.

Instances
Eq DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: DetectLanguageRequest -> Constr #

dataTypeOf :: DetectLanguageRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep DetectLanguageRequest :: Type -> Type #

ToJSON DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep DetectLanguageRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep DetectLanguageRequest = D1 (MetaData "DetectLanguageRequest" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" True) (C1 (MetaCons "DetectLanguageRequest'" PrefixI True) (S1 (MetaSel (Just "_dlrQ") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text]))))

detectLanguageRequest :: DetectLanguageRequest Source #

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

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

dlrQ :: Lens' DetectLanguageRequest [Text] Source #

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

TranslationsResource

data TranslationsResource Source #

Instances
Eq TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: TranslationsResource -> Constr #

dataTypeOf :: TranslationsResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep TranslationsResource :: Type -> Type #

ToJSON TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep TranslationsResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep TranslationsResource = D1 (MetaData "TranslationsResource" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "TranslationsResource'" PrefixI True) (S1 (MetaSel (Just "_trDetectedSourceLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_trModel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_trTranslatedText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

translationsResource :: TranslationsResource Source #

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

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

trDetectedSourceLanguage :: Lens' TranslationsResource (Maybe Text) Source #

The source language of the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language will not occur and this field will be empty.

trModel :: Lens' TranslationsResource (Maybe Text) Source #

The `model` type used for this translation. Valid values are listed in public documentation. Can be different from requested `model`. Present only if specific model type was explicitly requested.

trTranslatedText :: Lens' TranslationsResource (Maybe Text) Source #

Text translated into the target language.

TranslateTextRequest

data TranslateTextRequest Source #

The main translation request message for the Cloud Translation API.

See: translateTextRequest smart constructor.

Instances
Eq TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: TranslateTextRequest -> Constr #

dataTypeOf :: TranslateTextRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep TranslateTextRequest :: Type -> Type #

ToJSON TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep TranslateTextRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep TranslateTextRequest = D1 (MetaData "TranslateTextRequest" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "TranslateTextRequest'" PrefixI True) ((S1 (MetaSel (Just "_ttrFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ttrQ") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_ttrModel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ttrSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ttrTarget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

translateTextRequest :: TranslateTextRequest Source #

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

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

ttrFormat :: Lens' TranslateTextRequest (Maybe Text) Source #

The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

ttrQ :: Lens' TranslateTextRequest [Text] Source #

The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

ttrModel :: Lens' TranslateTextRequest (Maybe Text) Source #

The `model` type requested for this translation. Valid values are listed in public documentation.

ttrSource :: Lens' TranslateTextRequest (Maybe Text) Source #

The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.

ttrTarget :: Lens' TranslateTextRequest (Maybe Text) Source #

The language to use for translation of the input text, set to one of the language codes listed in Language Support.

DetectionsListResponse

data DetectionsListResponse Source #

Instances
Eq DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: DetectionsListResponse -> Constr #

dataTypeOf :: DetectionsListResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep DetectionsListResponse :: Type -> Type #

ToJSON DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep DetectionsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep DetectionsListResponse = D1 (MetaData "DetectionsListResponse" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" True) (C1 (MetaCons "DetectionsListResponse'" PrefixI True) (S1 (MetaSel (Just "_dlrDetections") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [[DetectionsResourceItem]]))))

detectionsListResponse :: DetectionsListResponse Source #

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

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

dlrDetections :: Lens' DetectionsListResponse [[DetectionsResourceItem]] Source #

A detections contains detection results of several text

GetSupportedLanguagesRequest

data GetSupportedLanguagesRequest Source #

The request message for discovering supported languages.

See: getSupportedLanguagesRequest smart constructor.

Instances
Eq GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: GetSupportedLanguagesRequest -> Constr #

dataTypeOf :: GetSupportedLanguagesRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep GetSupportedLanguagesRequest :: Type -> Type #

ToJSON GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep GetSupportedLanguagesRequest Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep GetSupportedLanguagesRequest = D1 (MetaData "GetSupportedLanguagesRequest" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" True) (C1 (MetaCons "GetSupportedLanguagesRequest'" PrefixI True) (S1 (MetaSel (Just "_gslrTarget") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

getSupportedLanguagesRequest :: GetSupportedLanguagesRequest Source #

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

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

gslrTarget :: Lens' GetSupportedLanguagesRequest (Maybe Text) Source #

The language to use to return localized, human readable names of supported languages.

LanguagesListResponse

data LanguagesListResponse Source #

Instances
Eq LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: LanguagesListResponse -> Constr #

dataTypeOf :: LanguagesListResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep LanguagesListResponse :: Type -> Type #

ToJSON LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep LanguagesListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep LanguagesListResponse = D1 (MetaData "LanguagesListResponse" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" True) (C1 (MetaCons "LanguagesListResponse'" PrefixI True) (S1 (MetaSel (Just "_llrLanguages") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [LanguagesResource]))))

languagesListResponse :: LanguagesListResponse Source #

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

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

llrLanguages :: Lens' LanguagesListResponse [LanguagesResource] Source #

List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.

DetectionsResourceItem

data DetectionsResourceItem Source #

Instances
Eq DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: DetectionsResourceItem -> Constr #

dataTypeOf :: DetectionsResourceItem -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep DetectionsResourceItem :: Type -> Type #

ToJSON DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep DetectionsResourceItem Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep DetectionsResourceItem = D1 (MetaData "DetectionsResourceItem" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "DetectionsResourceItem'" PrefixI True) (S1 (MetaSel (Just "_driConfidence") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double))) :*: (S1 (MetaSel (Just "_driIsReliable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_driLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

detectionsResourceItem :: DetectionsResourceItem Source #

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

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

driConfidence :: Lens' DetectionsResourceItem (Maybe Double) Source #

The confidence of the detection result of this language.

driIsReliable :: Lens' DetectionsResourceItem (Maybe Bool) Source #

A boolean to indicate is the language detection result reliable.

driLanguage :: Lens' DetectionsResourceItem (Maybe Text) Source #

The language we detected.

Xgafv

data Xgafv Source #

V1 error format.

Constructors

X1

1 v1 error format

X2

2 v2 error format

Instances
Enum Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Eq Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Methods

(==) :: Xgafv -> Xgafv -> Bool #

(/=) :: Xgafv -> Xgafv -> Bool #

Data Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Methods

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

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

toConstr :: Xgafv -> Constr #

dataTypeOf :: Xgafv -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Methods

compare :: Xgafv -> Xgafv -> Ordering #

(<) :: Xgafv -> Xgafv -> Bool #

(<=) :: Xgafv -> Xgafv -> Bool #

(>) :: Xgafv -> Xgafv -> Bool #

(>=) :: Xgafv -> Xgafv -> Bool #

max :: Xgafv -> Xgafv -> Xgafv #

min :: Xgafv -> Xgafv -> Xgafv #

Read Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Show Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Methods

showsPrec :: Int -> Xgafv -> ShowS #

show :: Xgafv -> String #

showList :: [Xgafv] -> ShowS #

Generic Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Associated Types

type Rep Xgafv :: Type -> Type #

Methods

from :: Xgafv -> Rep Xgafv x #

to :: Rep Xgafv x -> Xgafv #

Hashable Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Methods

hashWithSalt :: Int -> Xgafv -> Int #

hash :: Xgafv -> Int #

ToJSON Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

FromJSON Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

FromHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

ToHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

type Rep Xgafv Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

type Rep Xgafv = D1 (MetaData "Xgafv" "Network.Google.Translate.Types.Sum" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "X1" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "X2" PrefixI False) (U1 :: Type -> Type))

LanguagesResource

data LanguagesResource Source #

Instances
Eq LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: LanguagesResource -> Constr #

dataTypeOf :: LanguagesResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Show LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep LanguagesResource :: Type -> Type #

ToJSON LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep LanguagesResource Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep LanguagesResource = D1 (MetaData "LanguagesResource" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "LanguagesResource'" PrefixI True) (S1 (MetaSel (Just "_lrName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lrLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

languagesResource :: LanguagesResource Source #

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

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

lrName :: Lens' LanguagesResource (Maybe Text) Source #

Human readable name of the language localized to the target language.

lrLanguage :: Lens' LanguagesResource (Maybe Text) Source #

Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')

TranslationsListFormat

data TranslationsListFormat Source #

The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

Constructors

HTML

html Specifies the input is in HTML

Text

text Specifies the input is in plain textual format

Instances
Enum TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Eq TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Data TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Methods

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

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

toConstr :: TranslationsListFormat -> Constr #

dataTypeOf :: TranslationsListFormat -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Read TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Show TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Generic TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

Associated Types

type Rep TranslationsListFormat :: Type -> Type #

Hashable TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

ToJSON TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

FromJSON TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

FromHttpApiData TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

ToHttpApiData TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

type Rep TranslationsListFormat Source # 
Instance details

Defined in Network.Google.Translate.Types.Sum

type Rep TranslationsListFormat = D1 (MetaData "TranslationsListFormat" "Network.Google.Translate.Types.Sum" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "HTML" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Text" PrefixI False) (U1 :: Type -> Type))

TranslationsListResponse

data TranslationsListResponse Source #

The main language translation response message.

See: translationsListResponse smart constructor.

Instances
Eq TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Data TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Methods

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

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

toConstr :: TranslationsListResponse -> Constr #

dataTypeOf :: TranslationsListResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Generic TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

Associated Types

type Rep TranslationsListResponse :: Type -> Type #

ToJSON TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

FromJSON TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep TranslationsListResponse Source # 
Instance details

Defined in Network.Google.Translate.Types.Product

type Rep TranslationsListResponse = D1 (MetaData "TranslationsListResponse" "Network.Google.Translate.Types.Product" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" True) (C1 (MetaCons "TranslationsListResponse'" PrefixI True) (S1 (MetaSel (Just "_tlrTranslations") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [TranslationsResource]))))

translationsListResponse :: TranslationsListResponse Source #

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

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

tlrTranslations :: Lens' TranslationsListResponse [TranslationsResource] Source #

Translations contains list of translation results of given text