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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.NodeGroupsAddNodesRequest</code>
 */
class NodeGroupsAddNodesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Count of additional nodes to be added to the node group.
     *
     * Generated from protobuf field <code>optional int32 additional_node_count = 134997930;</code>
     */
    private $additional_node_count = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $additional_node_count
     *           Count of additional nodes to be added to the node group.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Count of additional nodes to be added to the node group.
     *
     * Generated from protobuf field <code>optional int32 additional_node_count = 134997930;</code>
     * @return int
     */
    public function getAdditionalNodeCount()
    {
        return isset($this->additional_node_count) ? $this->additional_node_count : 0;
    }

    public function hasAdditionalNodeCount()
    {
        return isset($this->additional_node_count);
    }

    public function clearAdditionalNodeCount()
    {
        unset($this->additional_node_count);
    }

    /**
     * Count of additional nodes to be added to the node group.
     *
     * Generated from protobuf field <code>optional int32 additional_node_count = 134997930;</code>
     * @param int $var
     * @return $this
     */
    public function setAdditionalNodeCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->additional_node_count = $var;

        return $this;
    }

}

