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 \ V3
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, 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
Type
Description
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
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Translation V3 Client - Class SupportedLanguage (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.SupportedLanguage)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.SupportedLanguage)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.SupportedLanguage)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.SupportedLanguage)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.SupportedLanguage)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.SupportedLanguage)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.SupportedLanguage)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.SupportedLanguage)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.SupportedLanguage)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.SupportedLanguage)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.SupportedLanguage)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.SupportedLanguage) \nReference documentation and code samples for the Cloud Translation V3 Client class SupportedLanguage.\n\nA single supported language response corresponds to information related\nto one supported language.\n\nGenerated from protobuf message `google.cloud.translation.v3.SupportedLanguage`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLanguageCode\n\nSupported language code, generally consisting of its ISO 639-1\nidentifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes\nincluding language and region identifiers are returned (for example,\n'zh-TW' and 'zh-CN').\n\n### setLanguageCode\n\nSupported language code, generally consisting of its ISO 639-1\nidentifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes\nincluding language and region identifiers are returned (for example,\n'zh-TW' and 'zh-CN').\n\n### getDisplayName\n\nHuman-readable name of the language localized in the display language\nspecified in the request.\n\n### setDisplayName\n\nHuman-readable name of the language localized in the display language\nspecified in the request.\n\n### getSupportSource\n\nCan be used as a source language.\n\n### setSupportSource\n\nCan be used as a source language.\n\n### getSupportTarget\n\nCan be used as a target language.\n\n### setSupportTarget\n\nCan be used as a target language."]]