Reference documentation and code samples for the Cloud Translation V3 Client class SupportedLanguage.
A single supported language response corresponds to information related to one supported language.
Generated from protobuf message google.cloud.translation.v3.SupportedLanguage
Namespace
Google \ Cloud \ Translate \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ language_code
string
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN').
↳ display_name
string
Human-readable name of the language localized in the display language specified in the request.
↳ support_source
bool
Can be used as a source language.
↳ support_target
bool
Can be used as a target language.
getLanguageCode
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN').
string
setLanguageCode
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN').
var
string
$this
getDisplayName
Human-readable name of the language localized in the display language specified in the request.
string
setDisplayName
Human-readable name of the language localized in the display language specified in the request.
var
string
$this
getSupportSource
Can be used as a source language.
bool
setSupportSource
Can be used as a source language.
var
bool
$this
getSupportTarget
Can be used as a target language.
bool
setSupportTarget
Can be used as a target language.
var
bool
$this