rv.data.Graphics.Text.AlternateText */ class AlternateText extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string key = 1; */ protected $key = ''; protected $ContentType; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $key * @type string $plain_text * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string key = 1; * @return string */ public function getKey() { return $this->key; } /** * Generated from protobuf field string key = 1; * @param string $var * @return $this */ public function setKey($var) { GPBUtil::checkString($var, True); $this->key = $var; return $this; } /** * Generated from protobuf field string plain_text = 2; * @return string */ public function getPlainText() { return $this->readOneof(2); } public function hasPlainText() { return $this->hasOneof(2); } /** * Generated from protobuf field string plain_text = 2; * @param string $var * @return $this */ public function setPlainText($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getContentType() { return $this->whichOneof("ContentType"); } }