<?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.LiveVideo</code>
 */
class LiveVideo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 1;</code>
     */
    protected $visual_media = null;
    /**
     * Generated from protobuf field <code>double frame_rate = 2;</code>
     */
    protected $frame_rate = 0.0;
    /**
     * Generated from protobuf field <code>uint32 audio_channel_count = 3;</code>
     */
    protected $audio_channel_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\TriggerMediaInformation\VisualMedia $visual_media
     *     @type float $frame_rate
     *     @type int $audio_channel_count
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTriggerMedia::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 1;</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 = 1;</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>double frame_rate = 2;</code>
     * @return float
     */
    public function getFrameRate()
    {
        return $this->frame_rate;
    }

    /**
     * Generated from protobuf field <code>double frame_rate = 2;</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 = 3;</code>
     * @return int
     */
    public function getAudioChannelCount()
    {
        return $this->audio_channel_count;
    }

    /**
     * Generated from protobuf field <code>uint32 audio_channel_count = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setAudioChannelCount($var)
    {
        GPBUtil::checkUint32($var);
        $this->audio_channel_count = $var;

        return $this;
    }

}

