rv.data.ProLink.ClientAction
*/
class ClientAction extends \Google\Protobuf\Internal\Message
{
protected $ActionType;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\ProLink\ClientAction\AddConnection $add_connection
* @type \Rv\Data\ProLink\ClientAction\RemoveConnection $remove_connection
* @type \Rv\Data\ProLink\ClientAction\CancelAction $cancel_action
* @type \Rv\Data\ProLink\ClientAction\RenderTime $render_time
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApi::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.AddConnection add_connection = 1;
* @return \Rv\Data\ProLink\ClientAction\AddConnection|null
*/
public function getAddConnection()
{
return $this->readOneof(1);
}
public function hasAddConnection()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.AddConnection add_connection = 1;
* @param \Rv\Data\ProLink\ClientAction\AddConnection $var
* @return $this
*/
public function setAddConnection($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\AddConnection::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.RemoveConnection remove_connection = 2;
* @return \Rv\Data\ProLink\ClientAction\RemoveConnection|null
*/
public function getRemoveConnection()
{
return $this->readOneof(2);
}
public function hasRemoveConnection()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.RemoveConnection remove_connection = 2;
* @param \Rv\Data\ProLink\ClientAction\RemoveConnection $var
* @return $this
*/
public function setRemoveConnection($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\RemoveConnection::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.CancelAction cancel_action = 3;
* @return \Rv\Data\ProLink\ClientAction\CancelAction|null
*/
public function getCancelAction()
{
return $this->readOneof(3);
}
public function hasCancelAction()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.CancelAction cancel_action = 3;
* @param \Rv\Data\ProLink\ClientAction\CancelAction $var
* @return $this
*/
public function setCancelAction($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\CancelAction::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.RenderTime render_time = 4;
* @return \Rv\Data\ProLink\ClientAction\RenderTime|null
*/
public function getRenderTime()
{
return $this->readOneof(4);
}
public function hasRenderTime()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field .rv.data.ProLink.ClientAction.RenderTime render_time = 4;
* @param \Rv\Data\ProLink\ClientAction\RenderTime $var
* @return $this
*/
public function setRenderTime($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\RenderTime::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* @return string
*/
public function getActionType()
{
return $this->whichOneof("ActionType");
}
}