rv.analytics.UI.Toolbar
*/
class Toolbar extends \Google\Protobuf\Internal\Message
{
protected $Component;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Analytics\UI\Toolbar\TextStyle $text_style
* @type \Rv\Analytics\UI\Toolbar\Theme $theme
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\AnalyticsUI::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.analytics.UI.Toolbar.TextStyle text_style = 1;
* @return \Rv\Analytics\UI\Toolbar\TextStyle|null
*/
public function getTextStyle()
{
return $this->readOneof(1);
}
public function hasTextStyle()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .rv.analytics.UI.Toolbar.TextStyle text_style = 1;
* @param \Rv\Analytics\UI\Toolbar\TextStyle $var
* @return $this
*/
public function setTextStyle($var)
{
GPBUtil::checkMessage($var, \Rv\Analytics\UI\Toolbar\TextStyle::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .rv.analytics.UI.Toolbar.Theme theme = 2;
* @return \Rv\Analytics\UI\Toolbar\Theme|null
*/
public function getTheme()
{
return $this->readOneof(2);
}
public function hasTheme()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.analytics.UI.Toolbar.Theme theme = 2;
* @param \Rv\Analytics\UI\Toolbar\Theme $var
* @return $this
*/
public function setTheme($var)
{
GPBUtil::checkMessage($var, \Rv\Analytics\UI\Toolbar\Theme::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getComponent()
{
return $this->whichOneof("Component");
}
}