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

namespace Rv\Data\API_v1_Timer;

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

/**
 * Generated from protobuf message <code>rv.data.API_v1_Timer.API_v1_Timer_Elapsed</code>
 */
class API_v1_Timer_Elapsed extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 start_time = 1;</code>
     */
    protected $start_time = 0;
    /**
     * Generated from protobuf field <code>int32 end_time = 2;</code>
     */
    protected $end_time = 0;
    /**
     * Generated from protobuf field <code>bool has_end_time = 3;</code>
     */
    protected $has_end_time = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $start_time
     *     @type int $end_time
     *     @type bool $has_end_time
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Timer::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool has_end_time = 3;</code>
     * @return bool
     */
    public function getHasEndTime()
    {
        return $this->has_end_time;
    }

    /**
     * Generated from protobuf field <code>bool has_end_time = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setHasEndTime($var)
    {
        GPBUtil::checkBool($var);
        $this->has_end_time = $var;

        return $this;
    }

}

