Cloud Translation V3 Client - Class SupportedLanguages (1.18.1)

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

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
Google\Protobuf\Internal\RepeatedField

setLanguages

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

Parameter
Name Description
var array<Google\Cloud\Translate\V3\SupportedLanguage>
Returns
Type Description
$this