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

namespace Rv\Data\API_v1_Message\API_v1_MessageToken;

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

/**
 * Generated from protobuf message <code>rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken</code>
 */
class API_v1_ClockToken extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken.API_v1_ClockTokenFormat date = 1;</code>
     */
    protected $date = 0;
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken.API_v1_ClockTokenFormat time = 2;</code>
     */
    protected $time = 0;
    /**
     * Generated from protobuf field <code>bool is_24_hours = 3;</code>
     */
    protected $is_24_hours = false;

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken.API_v1_ClockTokenFormat date = 1;</code>
     * @return int
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken.API_v1_ClockTokenFormat date = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setDate($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\API_v1_Message\API_v1_MessageToken\API_v1_ClockToken\API_v1_ClockTokenFormat::class);
        $this->date = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken.API_v1_ClockTokenFormat time = 2;</code>
     * @return int
     */
    public function getTime()
    {
        return $this->time;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Message.API_v1_MessageToken.API_v1_ClockToken.API_v1_ClockTokenFormat time = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTime($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\API_v1_Message\API_v1_MessageToken\API_v1_ClockToken\API_v1_ClockTokenFormat::class);
        $this->time = $var;

        return $this;
    }

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

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

        return $this;
    }

}

