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

namespace Deviceapis\Device\V1;

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

/**
 * Настройки Ntp-сервера
 *
 * Generated from protobuf message <code>deviceapis.device.v1.Ntp</code>
 */
class Ntp extends \Google\Protobuf\Internal\Message
{
    /**
     * Адрес Ntp-сервера.
     * Сетевой адрес и порт.
     * Пример: 192.168.0.1:123, ntp.acme.io:4460
     *
     * Generated from protobuf field <code>string address = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $address = '';
    /**
     * Таймзона
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Ntp.TimeZoneType time_zone_type = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $time_zone_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $address
     *           Адрес Ntp-сервера.
     *           Сетевой адрес и порт.
     *           Пример: 192.168.0.1:123, ntp.acme.io:4460
     *     @type int $time_zone_type
     *           Таймзона
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceNtpV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Адрес Ntp-сервера.
     * Сетевой адрес и порт.
     * Пример: 192.168.0.1:123, ntp.acme.io:4460
     *
     * Generated from protobuf field <code>string address = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getAddress()
    {
        return $this->address;
    }

    /**
     * Адрес Ntp-сервера.
     * Сетевой адрес и порт.
     * Пример: 192.168.0.1:123, ntp.acme.io:4460
     *
     * Generated from protobuf field <code>string address = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->address = $var;

        return $this;
    }

    /**
     * Таймзона
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Ntp.TimeZoneType time_zone_type = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getTimeZoneType()
    {
        return $this->time_zone_type;
    }

    /**
     * Таймзона
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Ntp.TimeZoneType time_zone_type = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setTimeZoneType($var)
    {
        GPBUtil::checkEnum($var, \Deviceapis\Device\V1\Ntp\TimeZoneType::class);
        $this->time_zone_type = $var;

        return $this;
    }

}

