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
$source_lang
Generated from protobuf field <code>string source_lang = 2;</code>
protected
mixed
$source_lang
= ''
$source_text
Generated from protobuf field <code>string source_text = 1;</code>
protected
mixed
$source_text
= ''
$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
stringgetSourceText()
Generated from protobuf field <code>string source_text = 1;</code>
public
getSourceText() : string
Return values
stringgetTranslations()
map of lang_code -> translated_text
public
getTranslations() : MapField
Generated from protobuf field map<string, string> translations = 3;
Return values
MapFieldsetSourceLang()
Generated from protobuf field <code>string source_lang = 2;</code>
public
setSourceLang(string $var) : $this
Parameters
- $var : string
Return values
$thissetSourceText()
Generated from protobuf field <code>string source_text = 1;</code>
public
setSourceText(string $var) : $this
Parameters
- $var : string
Return values
$thissetTranslations()
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