"description":"The source language of the initial request, detected automatically, if\nno source language was passed within the initial request. If the\nsource language was passed, auto-detection of the language will not\noccur and this field will be empty.",
"type":"string"
},
"model":{
"description":"The `model` type used for this translation. Valid values are\nlisted in public documentation. Can be different from requested `model`.\nPresent only if specific model type was explicitly requested.",
"type":"string"
},
"translatedText":{
"description":"Text translated into the target language.",
"type":"string"
}
},
"id":"TranslationsResource",
"type":"object"
},
"DetectionsResource":{
"id":"DetectionsResource",
"description":"An array of languages which we detect for the given text The most likely language list first.",
"items":{
"properties":{
"confidence":{
"format":"float",
"description":"The confidence of the detection result of this language.",
"type":"number"
},
"language":{
"description":"The language we detected.",
"type":"string"
},
"isReliable":{
"description":"A boolean to indicate is the language detection result reliable.",
"description":"The format of the source text, in either HTML (default) or plain-text. A\nvalue of \"html\" indicates HTML and a value of \"text\" indicates plain-text.",
"type":"string"
},
"q":{
"description":"The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.",
"items":{
"type":"string"
},
"type":"array"
},
"source":{
"description":"The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.",
"type":"string"
},
"model":{
"description":"The `model` type requested for this translation. Valid values are\nlisted in public documentation.",
"description":"The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs.",
"description":"The request message for language detection.",
"type":"object"
},
"LanguagesResource":{
"properties":{
"name":{
"description":"Human readable name of the language localized to the target language.",
"type":"string"
},
"language":{
"description":"Supported language code, generally consisting of its ISO 639-1\nidentifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including\nlanguage + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')",
"description":"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.",
"description":"The customization id for translate",
"type":"string",
"repeated":true,
"location":"query"
},
"target":{
"location":"query",
"description":"The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support.",
"required":true,
"type":"string"
},
"format":{
"enum":[
"html",
"text"
],
"description":"The format of the source text, in either HTML (default) or plain-text. A\nvalue of \"html\" indicates HTML and a value of \"text\" indicates plain-text.",
"type":"string",
"enumDescriptions":[
"Specifies the input is in HTML",
"Specifies the input is in plain textual format"
],
"location":"query"
},
"model":{
"location":"query",
"description":"The `model` type requested for this translation. Valid values are\nlisted in public documentation.",
"type":"string"
},
"q":{
"repeated":true,
"location":"query",
"description":"The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.",
"required":true,
"type":"string"
},
"source":{
"location":"query",
"description":"The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.",
"description":"The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs.",
"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",