Viewing file: TransliterationConfig.php (1.95 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/translate/v3/translation_service.proto
namespace Google\Cloud\Translate\V3;
use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil;
/** * Configures transliteration feature on top of translation. * * Generated from protobuf message <code>google.cloud.translation.v3.TransliterationConfig</code> */ class TransliterationConfig extends \Google\Protobuf\Internal\Message { /** * If true, source text in romanized form can be translated to the target * language. * * Generated from protobuf field <code>bool enable_transliteration = 1;</code> */ private $enable_transliteration = false;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type bool $enable_transliteration * If true, source text in romanized form can be translated to the target * language. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Translate\V3\TranslationService::initOnce(); parent::__construct($data); }
/** * If true, source text in romanized form can be translated to the target * language. * * Generated from protobuf field <code>bool enable_transliteration = 1;</code> * @return bool */ public function getEnableTransliteration() { return $this->enable_transliteration; }
/** * If true, source text in romanized form can be translated to the target * language. * * Generated from protobuf field <code>bool enable_transliteration = 1;</code> * @param bool $var * @return $this */ public function setEnableTransliteration($var) { GPBUtil::checkBool($var); $this->enable_transliteration = $var;
return $this; }
}
|