Cloud Translation V3 Client - Class SupportedLanguage (1.13.3)

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
NameDescription
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').

Returns
TypeDescription
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').

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Human-readable name of the language localized in the display language specified in the request.

Returns
TypeDescription
string

setDisplayName

Human-readable name of the language localized in the display language specified in the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSupportSource

Can be used as a source language.

Returns
TypeDescription
bool

setSupportSource

Can be used as a source language.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getSupportTarget

Can be used as a target language.

Returns
TypeDescription
bool

setSupportTarget

Can be used as a target language.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this