<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_dictionary_v1.proto

namespace Keyapis\Vc\V1;

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

/**
 * Тариф
 *
 * Generated from protobuf message <code>keyapis.vc.v1.Tariff</code>
 */
class Tariff extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     */
    protected $id = 0;
    /**
     * Наименование
     *
     * Generated from protobuf field <code>string title = 2;</code>
     */
    protected $title = '';
    /**
     * Параметр slug
     *
     * Generated from protobuf field <code>string slug = 3;</code>
     */
    protected $slug = '';
    /**
     * Тип статуса
     *
     * Generated from protobuf field <code>string status_kind = 4;</code>
     */
    protected $status_kind = '';
    /**
     * Дата действия от.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp from_at = 5;</code>
     */
    protected $from_at = null;
    /**
     * Дата действия до.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp to_at = 6;</code>
     */
    protected $to_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор
     *     @type string $title
     *           Наименование
     *     @type string $slug
     *           Параметр slug
     *     @type string $status_kind
     *           Тип статуса
     *     @type \Google\Protobuf\Timestamp $from_at
     *           Дата действия от.
     *           # Тип: DateTime
     *     @type \Google\Protobuf\Timestamp $to_at
     *           Дата действия до.
     *           # Тип: DateTime
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraDictionaryV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->id = $var;

        return $this;
    }

    /**
     * Наименование
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Наименование
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Параметр slug
     *
     * Generated from protobuf field <code>string slug = 3;</code>
     * @return string
     */
    public function getSlug()
    {
        return $this->slug;
    }

    /**
     * Параметр slug
     *
     * Generated from protobuf field <code>string slug = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setSlug($var)
    {
        GPBUtil::checkString($var, True);
        $this->slug = $var;

        return $this;
    }

    /**
     * Тип статуса
     *
     * Generated from protobuf field <code>string status_kind = 4;</code>
     * @return string
     */
    public function getStatusKind()
    {
        return $this->status_kind;
    }

    /**
     * Тип статуса
     *
     * Generated from protobuf field <code>string status_kind = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setStatusKind($var)
    {
        GPBUtil::checkString($var, True);
        $this->status_kind = $var;

        return $this;
    }

    /**
     * Дата действия от.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp from_at = 5;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getFromAt()
    {
        return $this->from_at;
    }

    public function hasFromAt()
    {
        return isset($this->from_at);
    }

    public function clearFromAt()
    {
        unset($this->from_at);
    }

    /**
     * Дата действия от.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp from_at = 5;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setFromAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->from_at = $var;

        return $this;
    }

    /**
     * Дата действия до.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp to_at = 6;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getToAt()
    {
        return $this->to_at;
    }

    public function hasToAt()
    {
        return isset($this->to_at);
    }

    public function clearToAt()
    {
        unset($this->to_at);
    }

    /**
     * Дата действия до.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp to_at = 6;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setToAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->to_at = $var;

        return $this;
    }

}

