rv.data.SlideElement
*/
class SlideElement extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Slide.Element element = 1;
*/
protected $element = null;
/**
* Generated from protobuf field int32 build_index = 2;
*/
protected $build_index = 0;
/**
* Generated from protobuf field .rv.data.MusicKeyScale base_key = 3;
*/
protected $base_key = null;
/**
* Generated from protobuf field .rv.data.MusicKeyScale target_key = 4;
*/
protected $target_key = null;
/**
* Generated from protobuf field repeated .rv.data.WebFillTokenAndCookies.Cookie cookies = 5;
*/
private $cookies;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\Slide\Element $element
* @type int $build_index
* @type \Rv\Data\MusicKeyScale $base_key
* @type \Rv\Data\MusicKeyScale $target_key
* @type array<\Rv\Data\WebFillTokenAndCookies\Cookie>|\Google\Protobuf\Internal\RepeatedField $cookies
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Rv2D::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.Slide.Element element = 1;
* @return \Rv\Data\Slide\Element|null
*/
public function getElement()
{
return $this->element;
}
public function hasElement()
{
return isset($this->element);
}
public function clearElement()
{
unset($this->element);
}
/**
* Generated from protobuf field .rv.data.Slide.Element element = 1;
* @param \Rv\Data\Slide\Element $var
* @return $this
*/
public function setElement($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Slide\Element::class);
$this->element = $var;
return $this;
}
/**
* Generated from protobuf field int32 build_index = 2;
* @return int
*/
public function getBuildIndex()
{
return $this->build_index;
}
/**
* Generated from protobuf field int32 build_index = 2;
* @param int $var
* @return $this
*/
public function setBuildIndex($var)
{
GPBUtil::checkInt32($var);
$this->build_index = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.MusicKeyScale base_key = 3;
* @return \Rv\Data\MusicKeyScale|null
*/
public function getBaseKey()
{
return $this->base_key;
}
public function hasBaseKey()
{
return isset($this->base_key);
}
public function clearBaseKey()
{
unset($this->base_key);
}
/**
* Generated from protobuf field .rv.data.MusicKeyScale base_key = 3;
* @param \Rv\Data\MusicKeyScale $var
* @return $this
*/
public function setBaseKey($var)
{
GPBUtil::checkMessage($var, \Rv\Data\MusicKeyScale::class);
$this->base_key = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.MusicKeyScale target_key = 4;
* @return \Rv\Data\MusicKeyScale|null
*/
public function getTargetKey()
{
return $this->target_key;
}
public function hasTargetKey()
{
return isset($this->target_key);
}
public function clearTargetKey()
{
unset($this->target_key);
}
/**
* Generated from protobuf field .rv.data.MusicKeyScale target_key = 4;
* @param \Rv\Data\MusicKeyScale $var
* @return $this
*/
public function setTargetKey($var)
{
GPBUtil::checkMessage($var, \Rv\Data\MusicKeyScale::class);
$this->target_key = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.WebFillTokenAndCookies.Cookie cookies = 5;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getCookies()
{
return $this->cookies;
}
/**
* Generated from protobuf field repeated .rv.data.WebFillTokenAndCookies.Cookie cookies = 5;
* @param array<\Rv\Data\WebFillTokenAndCookies\Cookie>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setCookies($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\WebFillTokenAndCookies\Cookie::class);
$this->cookies = $arr;
return $this;
}
}