<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/managedidentities/v1beta1/managed_identities_service.proto

namespace Google\Cloud\ManagedIdentities\V1beta1;

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

/**
 * Response message for
 * [ResetAdminPassword][google.cloud.managedidentities.v1beta1.ResetAdminPassword]
 *
 * Generated from protobuf message <code>google.cloud.managedidentities.v1beta1.ResetAdminPasswordResponse</code>
 */
class ResetAdminPasswordResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * A random password. See [admin][google.cloud.managedidentities.v1beta1.Domain.admin] for more information.
     *
     * Generated from protobuf field <code>string password = 1;</code>
     */
    private $password = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $password
     *           A random password. See [admin][google.cloud.managedidentities.v1beta1.Domain.admin] for more information.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Managedidentities\V1Beta1\ManagedIdentitiesService::initOnce();
        parent::__construct($data);
    }

    /**
     * A random password. See [admin][google.cloud.managedidentities.v1beta1.Domain.admin] for more information.
     *
     * Generated from protobuf field <code>string password = 1;</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * A random password. See [admin][google.cloud.managedidentities.v1beta1.Domain.admin] for more information.
     *
     * Generated from protobuf field <code>string password = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->password = $var;

        return $this;
    }

}

