<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/websecurityscanner/v1beta/scan_config.proto

namespace Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Authentication;

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

/**
 * Describes authentication configuration that uses a custom account.
 *
 * Generated from protobuf message <code>google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount</code>
 */
class CustomAccount extends \Google\Protobuf\Internal\Message
{
    /**
     * Required.
     * The user name of the custom account.
     *
     * Generated from protobuf field <code>string username = 1;</code>
     */
    private $username = '';
    /**
     * Input only.
     * Required.
     * The password of the custom account. The credential is stored encrypted
     * and not returned in any response nor included in audit logs.
     *
     * Generated from protobuf field <code>string password = 2;</code>
     */
    private $password = '';
    /**
     * Required.
     * The login form URL of the website.
     *
     * Generated from protobuf field <code>string login_url = 3;</code>
     */
    private $login_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $username
     *           Required.
     *           The user name of the custom account.
     *     @type string $password
     *           Input only.
     *           Required.
     *           The password of the custom account. The credential is stored encrypted
     *           and not returned in any response nor included in audit logs.
     *     @type string $login_url
     *           Required.
     *           The login form URL of the website.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Websecurityscanner\V1Beta\ScanConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Required.
     * The user name of the custom account.
     *
     * Generated from protobuf field <code>string username = 1;</code>
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * Required.
     * The user name of the custom account.
     *
     * Generated from protobuf field <code>string username = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->username = $var;

        return $this;
    }

    /**
     * Input only.
     * Required.
     * The password of the custom account. The credential is stored encrypted
     * and not returned in any response nor included in audit logs.
     *
     * Generated from protobuf field <code>string password = 2;</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Input only.
     * Required.
     * The password of the custom account. The credential is stored encrypted
     * and not returned in any response nor included in audit logs.
     *
     * Generated from protobuf field <code>string password = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->password = $var;

        return $this;
    }

    /**
     * Required.
     * The login form URL of the website.
     *
     * Generated from protobuf field <code>string login_url = 3;</code>
     * @return string
     */
    public function getLoginUrl()
    {
        return $this->login_url;
    }

    /**
     * Required.
     * The login form URL of the website.
     *
     * Generated from protobuf field <code>string login_url = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setLoginUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->login_url = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomAccount::class, \Google\Cloud\WebSecurityScanner\V1beta\ScanConfig_Authentication_CustomAccount::class);

