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

namespace Rv\Analytics\Trackedevents;

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

/**
 * Generated from protobuf message <code>rv.analytics.trackedevents.StopCapture</code>
 */
class StopCapture extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double duration = 1;</code>
     */
    protected $duration = 0.0;
    /**
     * Generated from protobuf field <code>int32 dropped_frames = 2;</code>
     */
    protected $dropped_frames = 0;
    /**
     * Generated from protobuf field <code>double percent_dropped_frames = 3;</code>
     */
    protected $percent_dropped_frames = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $duration
     *     @type int $dropped_frames
     *     @type float $percent_dropped_frames
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTrackedEvents::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 dropped_frames = 2;</code>
     * @return int
     */
    public function getDroppedFrames()
    {
        return $this->dropped_frames;
    }

    /**
     * Generated from protobuf field <code>int32 dropped_frames = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setDroppedFrames($var)
    {
        GPBUtil::checkInt32($var);
        $this->dropped_frames = $var;

        return $this;
    }

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

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

        return $this;
    }

}

