rv.data.NetworkTriggerDataItem */ class NetworkTriggerDataItem extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.TriggerOptions trigger_options = 3; */ protected $trigger_options = null; /** * Generated from protobuf field .rv.data.TriggerCue trigger_cue = 4; */ protected $trigger_cue = null; protected $Type; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\TriggerOptions $trigger_options * @type \Rv\Data\TriggerCue $trigger_cue * @type \Rv\Data\Action $action * @type \Rv\Data\Cue $cue * } */ public function __construct($data = NULL) { \GPBMetadata\ProCore::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.TriggerOptions trigger_options = 3; * @return \Rv\Data\TriggerOptions|null */ public function getTriggerOptions() { return $this->trigger_options; } public function hasTriggerOptions() { return isset($this->trigger_options); } public function clearTriggerOptions() { unset($this->trigger_options); } /** * Generated from protobuf field .rv.data.TriggerOptions trigger_options = 3; * @param \Rv\Data\TriggerOptions $var * @return $this */ public function setTriggerOptions($var) { GPBUtil::checkMessage($var, \Rv\Data\TriggerOptions::class); $this->trigger_options = $var; return $this; } /** * Generated from protobuf field .rv.data.TriggerCue trigger_cue = 4; * @return \Rv\Data\TriggerCue|null */ public function getTriggerCue() { return $this->trigger_cue; } public function hasTriggerCue() { return isset($this->trigger_cue); } public function clearTriggerCue() { unset($this->trigger_cue); } /** * Generated from protobuf field .rv.data.TriggerCue trigger_cue = 4; * @param \Rv\Data\TriggerCue $var * @return $this */ public function setTriggerCue($var) { GPBUtil::checkMessage($var, \Rv\Data\TriggerCue::class); $this->trigger_cue = $var; return $this; } /** * Generated from protobuf field .rv.data.Action action = 1; * @return \Rv\Data\Action|null */ public function getAction() { return $this->readOneof(1); } public function hasAction() { return $this->hasOneof(1); } /** * Generated from protobuf field .rv.data.Action action = 1; * @param \Rv\Data\Action $var * @return $this */ public function setAction($var) { GPBUtil::checkMessage($var, \Rv\Data\Action::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .rv.data.Cue cue = 2; * @return \Rv\Data\Cue|null */ public function getCue() { return $this->readOneof(2); } public function hasCue() { return $this->hasOneof(2); } /** * Generated from protobuf field .rv.data.Cue cue = 2; * @param \Rv\Data\Cue $var * @return $this */ public function setCue($var) { GPBUtil::checkMessage($var, \Rv\Data\Cue::class); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getType() { return $this->whichOneof("Type"); } }