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

namespace Deviceapis\Device\V1\PostUserPasswordReplaceRequest;

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

/**
 * Поле на замену
 *
 * Generated from protobuf message <code>deviceapis.device.v1.PostUserPasswordReplaceRequest.ReplaceTo</code>
 */
class ReplaceTo extends \Google\Protobuf\Internal\Message
{
    /**
     * Пароль
     *
     * Generated from protobuf field <code>string password = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $password = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $password
     *           Пароль
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceUserV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Пароль
     *
     * Generated from protobuf field <code>string password = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Пароль
     *
     * Generated from protobuf field <code>string password = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</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(ReplaceTo::class, \Deviceapis\Device\V1\PostUserPasswordReplaceRequest_ReplaceTo::class);

