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

namespace Keyapis\Device\V1\Preset\VideoConfig;

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

/**
 * Пользователь
 *
 * Generated from protobuf message <code>keyapis.device.v1.Preset.VideoConfig.RtspUser</code>
 */
class RtspUser extends \Google\Protobuf\Internal\Message
{
    /**
     * Имя пользователя.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string username = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $username = '';
    /**
     * Пароль.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string password = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $password = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $username
     *           Имя пользователя.
     *           # Диапазон: 3..256
     *     @type string $password
     *           Пароль.
     *           # Диапазон: 3..256
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Имя пользователя.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string username = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * Имя пользователя.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string username = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->username = $var;

        return $this;
    }

    /**
     * Пароль.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string password = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Пароль.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string password = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->password = $var;

        return $this;
    }

}

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

