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

namespace Keyapis\Device\V1\Preset;

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

/**
 * Параметр SIP
 *
 * Generated from protobuf message <code>keyapis.device.v1.Preset.Sip</code>
 */
class Sip extends \Google\Protobuf\Internal\Message
{
    /**
     * Хост.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string host = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $host = '';
    /**
     * Порт.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 port = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $port = 0;
    /**
     * Хост reg.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string reg_host = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $reg_host = '';
    /**
     * Порт reg.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 reg_port = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $reg_port = 0;
    /**
     * Хост proxy.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string proxy_host = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $proxy_host = '';
    /**
     * Порт proxy.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 proxy_port = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $proxy_port = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $host
     *           Хост.
     *           # Диапазон: 5..256
     *     @type int $port
     *           Порт.
     *           # Диапазон: 1..65536
     *     @type string $reg_host
     *           Хост reg.
     *           # Диапазон: 5..256
     *     @type int $reg_port
     *           Порт reg.
     *           # Диапазон: 1..65536
     *     @type string $proxy_host
     *           Хост proxy.
     *           # Диапазон: 5..256
     *     @type int $proxy_port
     *           Порт proxy.
     *           # Диапазон: 1..65536
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Хост.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string host = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Хост.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string host = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * Порт.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 port = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getPort()
    {
        return $this->port;
    }

    /**
     * Порт.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 port = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->port = $var;

        return $this;
    }

    /**
     * Хост reg.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string reg_host = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getRegHost()
    {
        return $this->reg_host;
    }

    /**
     * Хост reg.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string reg_host = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setRegHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->reg_host = $var;

        return $this;
    }

    /**
     * Порт reg.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 reg_port = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getRegPort()
    {
        return $this->reg_port;
    }

    /**
     * Порт reg.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 reg_port = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setRegPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->reg_port = $var;

        return $this;
    }

    /**
     * Хост proxy.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string proxy_host = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getProxyHost()
    {
        return $this->proxy_host;
    }

    /**
     * Хост proxy.
     * # Диапазон: 5..256
     *
     * Generated from protobuf field <code>string proxy_host = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setProxyHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->proxy_host = $var;

        return $this;
    }

    /**
     * Порт proxy.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 proxy_port = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getProxyPort()
    {
        return $this->proxy_port;
    }

    /**
     * Порт proxy.
     * # Диапазон: 1..65536
     *
     * Generated from protobuf field <code>int32 proxy_port = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setProxyPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->proxy_port = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sip::class, \Keyapis\Device\V1\Preset_Sip::class);

