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

namespace Google\Cloud\MigrationCenter\V1\ReportSummary;

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

/**
 * Represents the assets allocated to a specific Sole-Tenant node type.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation</code>
 */
class SoleTenantNodeAllocation extends \Google\Protobuf\Internal\Message
{
    /**
     * Sole Tenant node type, e.g. "m3-node-128-3904"
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.SoleTenantNodeType node = 1;</code>
     */
    protected $node = null;
    /**
     * Count of this node type to be provisioned
     *
     * Generated from protobuf field <code>int64 node_count = 2;</code>
     */
    protected $node_count = 0;
    /**
     * Count of assets allocated to these nodes
     *
     * Generated from protobuf field <code>int64 allocated_asset_count = 3;</code>
     */
    protected $allocated_asset_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\MigrationCenter\V1\SoleTenantNodeType $node
     *           Sole Tenant node type, e.g. "m3-node-128-3904"
     *     @type int|string $node_count
     *           Count of this node type to be provisioned
     *     @type int|string $allocated_asset_count
     *           Count of assets allocated to these nodes
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Sole Tenant node type, e.g. "m3-node-128-3904"
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.SoleTenantNodeType node = 1;</code>
     * @return \Google\Cloud\MigrationCenter\V1\SoleTenantNodeType|null
     */
    public function getNode()
    {
        return $this->node;
    }

    public function hasNode()
    {
        return isset($this->node);
    }

    public function clearNode()
    {
        unset($this->node);
    }

    /**
     * Sole Tenant node type, e.g. "m3-node-128-3904"
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.SoleTenantNodeType node = 1;</code>
     * @param \Google\Cloud\MigrationCenter\V1\SoleTenantNodeType $var
     * @return $this
     */
    public function setNode($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\MigrationCenter\V1\SoleTenantNodeType::class);
        $this->node = $var;

        return $this;
    }

    /**
     * Count of this node type to be provisioned
     *
     * Generated from protobuf field <code>int64 node_count = 2;</code>
     * @return int|string
     */
    public function getNodeCount()
    {
        return $this->node_count;
    }

    /**
     * Count of this node type to be provisioned
     *
     * Generated from protobuf field <code>int64 node_count = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setNodeCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->node_count = $var;

        return $this;
    }

    /**
     * Count of assets allocated to these nodes
     *
     * Generated from protobuf field <code>int64 allocated_asset_count = 3;</code>
     * @return int|string
     */
    public function getAllocatedAssetCount()
    {
        return $this->allocated_asset_count;
    }

    /**
     * Count of assets allocated to these nodes
     *
     * Generated from protobuf field <code>int64 allocated_asset_count = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAllocatedAssetCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->allocated_asset_count = $var;

        return $this;
    }

}


