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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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, BCP-47 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 source language. |
↳ support_target |
bool
Can be used as target language. |
getLanguageCode
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
Returns | |
---|---|
Type | Description |
string |
setLanguageCode
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Human readable name of the language localized in the display language specified in the request.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Human readable name of the language localized in the display language specified in the request.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSupportSource
Can be used as source language.
Returns | |
---|---|
Type | Description |
bool |
setSupportSource
Can be used as source language.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getSupportTarget
Can be used as target language.
Returns | |
---|---|
Type | Description |
bool |
setSupportTarget
Can be used as target language.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |