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

namespace Google\Cloud\Container\V1;

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

/**
 * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
 * storage using Local SSD.
 *
 * Generated from protobuf message <code>google.container.v1.EphemeralStorageLocalSsdConfig</code>
 */
class EphemeralStorageLocalSsdConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
     * interfaces. Each local SSD is 375 GB in size.
     * If zero, it means to disable using local SSDs as ephemeral storage.
     * The limit for this value is dependent upon the maximum number of
     * disks available on a machine per zone. See:
     * https://cloud.google.com/compute/docs/disks/local-ssd
     * for more information.
     *
     * Generated from protobuf field <code>int32 local_ssd_count = 1;</code>
     */
    private $local_ssd_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $local_ssd_count
     *           Number of local SSDs to use to back ephemeral storage. Uses NVMe
     *           interfaces. Each local SSD is 375 GB in size.
     *           If zero, it means to disable using local SSDs as ephemeral storage.
     *           The limit for this value is dependent upon the maximum number of
     *           disks available on a machine per zone. See:
     *           https://cloud.google.com/compute/docs/disks/local-ssd
     *           for more information.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
     * interfaces. Each local SSD is 375 GB in size.
     * If zero, it means to disable using local SSDs as ephemeral storage.
     * The limit for this value is dependent upon the maximum number of
     * disks available on a machine per zone. See:
     * https://cloud.google.com/compute/docs/disks/local-ssd
     * for more information.
     *
     * Generated from protobuf field <code>int32 local_ssd_count = 1;</code>
     * @return int
     */
    public function getLocalSsdCount()
    {
        return $this->local_ssd_count;
    }

    /**
     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
     * interfaces. Each local SSD is 375 GB in size.
     * If zero, it means to disable using local SSDs as ephemeral storage.
     * The limit for this value is dependent upon the maximum number of
     * disks available on a machine per zone. See:
     * https://cloud.google.com/compute/docs/disks/local-ssd
     * for more information.
     *
     * Generated from protobuf field <code>int32 local_ssd_count = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setLocalSsdCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->local_ssd_count = $var;

        return $this;
    }

}

