<?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;

/**
 * Represent the source AWS VM details.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.AwsSourceVmDetails</code>
 */
class AwsSourceVmDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The firmware type of the source VM.
     *
     * Generated from protobuf field <code>.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1;</code>
     */
    private $firmware = 0;
    /**
     * The total size of the disks being migrated in bytes.
     *
     * Generated from protobuf field <code>int64 committed_storage_bytes = 2;</code>
     */
    private $committed_storage_bytes = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $firmware
     *           The firmware type of the source VM.
     *     @type int|string $committed_storage_bytes
     *           The total size of the disks being migrated in bytes.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

    /**
     * The firmware type of the source VM.
     *
     * Generated from protobuf field <code>.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1;</code>
     * @return int
     */
    public function getFirmware()
    {
        return $this->firmware;
    }

    /**
     * The firmware type of the source VM.
     *
     * Generated from protobuf field <code>.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setFirmware($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\VMMigration\V1\AwsSourceVmDetails\Firmware::class);
        $this->firmware = $var;

        return $this;
    }

    /**
     * The total size of the disks being migrated in bytes.
     *
     * Generated from protobuf field <code>int64 committed_storage_bytes = 2;</code>
     * @return int|string
     */
    public function getCommittedStorageBytes()
    {
        return $this->committed_storage_bytes;
    }

    /**
     * The total size of the disks being migrated in bytes.
     *
     * Generated from protobuf field <code>int64 committed_storage_bytes = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCommittedStorageBytes($var)
    {
        GPBUtil::checkInt64($var);
        $this->committed_storage_bytes = $var;

        return $this;
    }

}

