- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
269 lines
7.4 KiB
PHP
269 lines
7.4 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: analyticsTriggerMedia.proto
|
|
|
|
namespace Rv\Analytics\TriggerMediaInformation;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.analytics.TriggerMediaInformation.Video</code>
|
|
*/
|
|
class Video extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 7;</code>
|
|
*/
|
|
protected $visual_media = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Video.PlaybackBehavior playback_behavior = 8;</code>
|
|
*/
|
|
protected $playback_behavior = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.CompletionTarget completion_target = 9;</code>
|
|
*/
|
|
protected $completion_target = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool soft_loop_enabled = 10;</code>
|
|
*/
|
|
protected $soft_loop_enabled = false;
|
|
/**
|
|
* Generated from protobuf field <code>double soft_loop_duration = 11;</code>
|
|
*/
|
|
protected $soft_loop_duration = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>double frame_rate = 12;</code>
|
|
*/
|
|
protected $frame_rate = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 audio_channel_count = 13;</code>
|
|
*/
|
|
protected $audio_channel_count = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transport transport = 14;</code>
|
|
*/
|
|
protected $transport = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Analytics\TriggerMediaInformation\VisualMedia $visual_media
|
|
* @type int $playback_behavior
|
|
* @type int $completion_target
|
|
* @type bool $soft_loop_enabled
|
|
* @type float $soft_loop_duration
|
|
* @type float $frame_rate
|
|
* @type int $audio_channel_count
|
|
* @type \Rv\Analytics\TriggerMediaInformation\Transport $transport
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\AnalyticsTriggerMedia::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 7;</code>
|
|
* @return \Rv\Analytics\TriggerMediaInformation\VisualMedia|null
|
|
*/
|
|
public function getVisualMedia()
|
|
{
|
|
return $this->visual_media;
|
|
}
|
|
|
|
public function hasVisualMedia()
|
|
{
|
|
return isset($this->visual_media);
|
|
}
|
|
|
|
public function clearVisualMedia()
|
|
{
|
|
unset($this->visual_media);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 7;</code>
|
|
* @param \Rv\Analytics\TriggerMediaInformation\VisualMedia $var
|
|
* @return $this
|
|
*/
|
|
public function setVisualMedia($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Analytics\TriggerMediaInformation\VisualMedia::class);
|
|
$this->visual_media = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Video.PlaybackBehavior playback_behavior = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getPlaybackBehavior()
|
|
{
|
|
return $this->playback_behavior;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Video.PlaybackBehavior playback_behavior = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaybackBehavior($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Analytics\TriggerMediaInformation\Video\PlaybackBehavior::class);
|
|
$this->playback_behavior = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.CompletionTarget completion_target = 9;</code>
|
|
* @return int
|
|
*/
|
|
public function getCompletionTarget()
|
|
{
|
|
return $this->completion_target;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.CompletionTarget completion_target = 9;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setCompletionTarget($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Analytics\TriggerMediaInformation\CompletionTarget::class);
|
|
$this->completion_target = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool soft_loop_enabled = 10;</code>
|
|
* @return bool
|
|
*/
|
|
public function getSoftLoopEnabled()
|
|
{
|
|
return $this->soft_loop_enabled;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool soft_loop_enabled = 10;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setSoftLoopEnabled($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->soft_loop_enabled = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double soft_loop_duration = 11;</code>
|
|
* @return float
|
|
*/
|
|
public function getSoftLoopDuration()
|
|
{
|
|
return $this->soft_loop_duration;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double soft_loop_duration = 11;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setSoftLoopDuration($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->soft_loop_duration = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double frame_rate = 12;</code>
|
|
* @return float
|
|
*/
|
|
public function getFrameRate()
|
|
{
|
|
return $this->frame_rate;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double frame_rate = 12;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setFrameRate($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->frame_rate = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 audio_channel_count = 13;</code>
|
|
* @return int
|
|
*/
|
|
public function getAudioChannelCount()
|
|
{
|
|
return $this->audio_channel_count;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 audio_channel_count = 13;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setAudioChannelCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->audio_channel_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transport transport = 14;</code>
|
|
* @return \Rv\Analytics\TriggerMediaInformation\Transport|null
|
|
*/
|
|
public function getTransport()
|
|
{
|
|
return $this->transport;
|
|
}
|
|
|
|
public function hasTransport()
|
|
{
|
|
return isset($this->transport);
|
|
}
|
|
|
|
public function clearTransport()
|
|
{
|
|
unset($this->transport);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transport transport = 14;</code>
|
|
* @param \Rv\Analytics\TriggerMediaInformation\Transport $var
|
|
* @return $this
|
|
*/
|
|
public function setTransport($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Analytics\TriggerMediaInformation\Transport::class);
|
|
$this->transport = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|