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

namespace Deviceapis\Device\V1\PostUserNameReplaceRequest;

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

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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $target_username
     *           Имя пользователя
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceUserV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Имя пользователя
     *
     * Generated from protobuf field <code>string target_username = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getTargetUsername()
    {
        return $this->target_username;
    }

    /**
     * Имя пользователя
     *
     * Generated from protobuf field <code>string target_username = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setTargetUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->target_username = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReplaceTo::class, \Deviceapis\Device\V1\PostUserNameReplaceRequest_ReplaceTo::class);

