<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_ticker_v1.proto

namespace Deviceapis\Device\V1;

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

/**
 * Настройки Ticker
 *
 * Generated from protobuf message <code>deviceapis.device.v1.Ticker</code>
 */
class Ticker extends \Google\Protobuf\Internal\Message
{
    /**
     * Режим строки
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Ticker.ModeType mode_type = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $mode_type = 0;
    /**
     * Скорость, символов в минуту
     *
     * Generated from protobuf field <code>int32 speed = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $speed = 0;
    /**
     * Задержка смены строки, секунд
     *
     * Generated from protobuf field <code>int32 delay = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $delay = 0;
    /**
     * Строки
     *
     * Generated from protobuf field <code>repeated string lines = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    private $lines;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $mode_type
     *           Режим строки
     *     @type int $speed
     *           Скорость, символов в минуту
     *     @type int $delay
     *           Задержка смены строки, секунд
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $lines
     *           Строки
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceTickerV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Режим строки
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Ticker.ModeType mode_type = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getModeType()
    {
        return $this->mode_type;
    }

    /**
     * Режим строки
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Ticker.ModeType mode_type = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setModeType($var)
    {
        GPBUtil::checkEnum($var, \Deviceapis\Device\V1\Ticker\ModeType::class);
        $this->mode_type = $var;

        return $this;
    }

    /**
     * Скорость, символов в минуту
     *
     * Generated from protobuf field <code>int32 speed = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getSpeed()
    {
        return $this->speed;
    }

    /**
     * Скорость, символов в минуту
     *
     * Generated from protobuf field <code>int32 speed = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setSpeed($var)
    {
        GPBUtil::checkInt32($var);
        $this->speed = $var;

        return $this;
    }

    /**
     * Задержка смены строки, секунд
     *
     * Generated from protobuf field <code>int32 delay = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getDelay()
    {
        return $this->delay;
    }

    /**
     * Задержка смены строки, секунд
     *
     * Generated from protobuf field <code>int32 delay = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setDelay($var)
    {
        GPBUtil::checkInt32($var);
        $this->delay = $var;

        return $this;
    }

    /**
     * Строки
     *
     * Generated from protobuf field <code>repeated string lines = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLines()
    {
        return $this->lines;
    }

    /**
     * Строки
     *
     * Generated from protobuf field <code>repeated string lines = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->lines = $arr;

        return $this;
    }

}

