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

namespace Google\Cloud\VMMigration\V1;

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

/**
 * VmwareSourceDetails message describes a specific source details for the
 * vmware source type.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.VmwareSourceDetails</code>
 */
class VmwareSourceDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The credentials username.
     *
     * Generated from protobuf field <code>string username = 1;</code>
     */
    private $username = '';
    /**
     * Input only. The credentials password. This is write only and can not be
     * read in a GET operation.
     *
     * Generated from protobuf field <code>string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     */
    private $password = '';
    /**
     * The ip address of the vcenter this Source represents.
     *
     * Generated from protobuf field <code>string vcenter_ip = 3;</code>
     */
    private $vcenter_ip = '';
    /**
     * The thumbprint representing the certificate for the vcenter.
     *
     * Generated from protobuf field <code>string thumbprint = 4;</code>
     */
    private $thumbprint = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $username
     *           The credentials username.
     *     @type string $password
     *           Input only. The credentials password. This is write only and can not be
     *           read in a GET operation.
     *     @type string $vcenter_ip
     *           The ip address of the vcenter this Source represents.
     *     @type string $thumbprint
     *           The thumbprint representing the certificate for the vcenter.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

    /**
     * The credentials username.
     *
     * Generated from protobuf field <code>string username = 1;</code>
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * The credentials username.
     *
     * 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. The credentials password. This is write only and can not be
     * read in a GET operation.
     *
     * Generated from protobuf field <code>string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Input only. The credentials password. This is write only and can not be
     * read in a GET operation.
     *
     * Generated from protobuf field <code>string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->password = $var;

        return $this;
    }

    /**
     * The ip address of the vcenter this Source represents.
     *
     * Generated from protobuf field <code>string vcenter_ip = 3;</code>
     * @return string
     */
    public function getVcenterIp()
    {
        return $this->vcenter_ip;
    }

    /**
     * The ip address of the vcenter this Source represents.
     *
     * Generated from protobuf field <code>string vcenter_ip = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setVcenterIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->vcenter_ip = $var;

        return $this;
    }

    /**
     * The thumbprint representing the certificate for the vcenter.
     *
     * Generated from protobuf field <code>string thumbprint = 4;</code>
     * @return string
     */
    public function getThumbprint()
    {
        return $this->thumbprint;
    }

    /**
     * The thumbprint representing the certificate for the vcenter.
     *
     * Generated from protobuf field <code>string thumbprint = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbprint($var)
    {
        GPBUtil::checkString($var, True);
        $this->thumbprint = $var;

        return $this;
    }

}

