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

/**
 * A VMWare Engine Node
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.ReportSummary.VmwareNode</code>
 */
class VmwareNode extends \Google\Protobuf\Internal\Message
{
    /**
     * Code to identify VMware Engine node series, e.g. "ve1-standard-72". Based
     * on the displayName of
     * cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.nodeTypes
     *
     * Generated from protobuf field <code>string code = 1;</code>
     */
    protected $code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $code
     *           Code to identify VMware Engine node series, e.g. "ve1-standard-72". Based
     *           on the displayName of
     *           cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.nodeTypes
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Code to identify VMware Engine node series, e.g. "ve1-standard-72". Based
     * on the displayName of
     * cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.nodeTypes
     *
     * Generated from protobuf field <code>string code = 1;</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Code to identify VMware Engine node series, e.g. "ve1-standard-72". Based
     * on the displayName of
     * cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.nodeTypes
     *
     * Generated from protobuf field <code>string code = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

}


