<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: action.proto

namespace Rv\Data\Action\MediaType;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.data.Action.MediaType.Audio</code>
 */
class Audio extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.PlaybackBehavior playback_behavior = 1;</code>
     */
    protected $playback_behavior = 0;
    /**
     * Generated from protobuf field <code>double loop_time = 2;</code>
     */
    protected $loop_time = 0.0;
    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 3;</code>
     */
    protected $times_to_loop = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.Audio.MediaActionAudioType audio_type = 4;</code>
     */
    protected $audio_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $playback_behavior
     *     @type float $loop_time
     *     @type int $times_to_loop
     *     @type int $audio_type
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.PlaybackBehavior playback_behavior = 1;</code>
     * @return int
     */
    public function getPlaybackBehavior()
    {
        return $this->playback_behavior;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.PlaybackBehavior playback_behavior = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPlaybackBehavior($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\MediaType\PlaybackBehavior::class);
        $this->playback_behavior = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double loop_time = 2;</code>
     * @return float
     */
    public function getLoopTime()
    {
        return $this->loop_time;
    }

    /**
     * Generated from protobuf field <code>double loop_time = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setLoopTime($var)
    {
        GPBUtil::checkDouble($var);
        $this->loop_time = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 3;</code>
     * @return int
     */
    public function getTimesToLoop()
    {
        return $this->times_to_loop;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.Audio.MediaActionAudioType audio_type = 4;</code>
     * @return int
     */
    public function getAudioType()
    {
        return $this->audio_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.Audio.MediaActionAudioType audio_type = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setAudioType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\MediaType\Audio\MediaActionAudioType::class);
        $this->audio_type = $var;

        return $this;
    }

}

