Cloud Translation V3 Client - Class Romanization (1.20.0)

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

A single romanization response.

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

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ romanized_text string

Romanized text. If an error occurs during romanization, this field might be excluded from the response.

↳ detected_language_code string

The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.

getRomanizedText

Romanized text.

If an error occurs during romanization, this field might be excluded from the response.

Returns
Type Description
string

setRomanizedText

Romanized text.

If an error occurs during romanization, this field might be excluded from the response.

Parameter
Name Description
var string
Returns
Type Description
$this

getDetectedLanguageCode

The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.

Returns
Type Description
string

setDetectedLanguageCode

The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.

Parameter
Name Description
var string
Returns
Type Description
$this