"description":"The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs.",
"description":"The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support."
},
"format":{
"type":"string",
"enumDescriptions":[
"Specifies the input is in HTML",
"Specifies the input is in plain textual format"
],
"location":"query",
"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."
},
"model":{
"description":"The `model` type requested for this translation. Valid values are\nlisted in public documentation.",
"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",
"location":"query"
},
"cid":{
"description":"The customization id for translate",
"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.",
"type":"string",
"location":"query"
},
"quotaUser":{
"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.",
"type":"string",
"location":"query"
},
"pp":{
"location":"query",
"description":"Pretty-print response.",
"default":"true",
"type":"boolean"
},
"bearer_token":{
"location":"query",
"description":"OAuth bearer token.",
"type":"string"
},
"oauth_token":{
"location":"query",
"description":"OAuth 2.0 token for the current user.",
"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.",
"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.",
"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.",
"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 request message for language detection.",
"type":"object",
"properties":{
"q":{
"description":"The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs.",
"items":{
"type":"string"
},
"type":"array"
}
},
"id":"DetectLanguageRequest"
},
"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')",
"type":"string"
}
},
"id":"LanguagesResource",
"type":"object"
},
"DetectionsListResponse":{
"type":"object",
"properties":{
"detections":{
"description":"A detections contains detection results of several text",
"items":{
"$ref":"DetectionsResource"
},
"type":"array"
}
},
"id":"DetectionsListResponse"
},
"GetSupportedLanguagesRequest":{
"description":"The request message for discovering supported languages.",
"type":"object",
"properties":{
"target":{
"description":"The language to use to return localized, human readable names of supported\nlanguages.",
"type":"string"
}
},
"id":"GetSupportedLanguagesRequest"
},
"LanguagesListResponse":{
"type":"object",
"properties":{
"languages":{
"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.",