Documentation

InsightsTextTranslationResult extends Message
in package

Generated from protobuf message <code>plugnmeet.InsightsTextTranslationResult</code>

Table of Contents

Properties

$source_lang  : mixed
Generated from protobuf field <code>string source_lang = 2;</code>
$source_text  : mixed
Generated from protobuf field <code>string source_text = 1;</code>
$translations  : mixed
map of lang_code -> translated_text

Methods

__construct()  : mixed
Constructor.
getSourceLang()  : string
Generated from protobuf field <code>string source_lang = 2;</code>
getSourceText()  : string
Generated from protobuf field <code>string source_text = 1;</code>
getTranslations()  : MapField
map of lang_code -> translated_text
setSourceLang()  : $this
Generated from protobuf field <code>string source_lang = 2;</code>
setSourceText()  : $this
Generated from protobuf field <code>string source_text = 1;</code>
setTranslations()  : $this
map of lang_code -> translated_text

Properties

$translations

map of lang_code -> translated_text

private mixed $translations

Generated from protobuf field map<string, string> translations = 3;

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
$data : array<string|int, mixed> = null

{ Optional. Data for populating the Message object.

@type string $source_text
@type string $source_lang
@type array|\Google\Protobuf\Internal\MapField $translations
      map of lang_code -> translated_text

}

getSourceLang()

Generated from protobuf field <code>string source_lang = 2;</code>

public getSourceLang() : string
Return values
string

getSourceText()

Generated from protobuf field <code>string source_text = 1;</code>

public getSourceText() : string
Return values
string

getTranslations()

map of lang_code -> translated_text

public getTranslations() : MapField

Generated from protobuf field map<string, string> translations = 3;

Return values
MapField

setSourceLang()

Generated from protobuf field <code>string source_lang = 2;</code>

public setSourceLang(string $var) : $this
Parameters
$var : string
Return values
$this

setSourceText()

Generated from protobuf field <code>string source_text = 1;</code>

public setSourceText(string $var) : $this
Parameters
$var : string
Return values
$this

setTranslations()

map of lang_code -> translated_text

public setTranslations(array<string|int, mixed>|MapField $var) : $this

Generated from protobuf field map<string, string> translations = 3;

Parameters
$var : array<string|int, mixed>|MapField
Return values
$this

        
On this page

Search results