Cloud Translation V3 Client - Class SupportedLanguages (1.13.3)

Reference documentation and code samples for the Cloud Translation V3 Client class SupportedLanguages.

The response message for discovering supported languages.

Generated from protobuf message google.cloud.translation.v3.SupportedLanguages

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ languages array<Google\Cloud\Translate\V3\SupportedLanguage>

A list of supported language responses. This list contains an entry for each language the Translation API supports.

getLanguages

A list of supported language responses. This list contains an entry for each language the Translation API supports.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLanguages

A list of supported language responses. This list contains an entry for each language the Translation API supports.

Parameter
NameDescription
var array<Google\Cloud\Translate\V3\SupportedLanguage>
Returns
TypeDescription
$this