<?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.ScratchDisks</code>
 */
class ScratchDisks extends \Google\Protobuf\Internal\Message
{
    /**
     * Size of the scratch disk, defined in GB.
     *
     * Generated from protobuf field <code>optional int32 disk_gb = 60990141;</code>
     */
    private $disk_gb = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $disk_gb
     *           Size of the scratch disk, defined in GB.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Size of the scratch disk, defined in GB.
     *
     * Generated from protobuf field <code>optional int32 disk_gb = 60990141;</code>
     * @return int
     */
    public function getDiskGb()
    {
        return isset($this->disk_gb) ? $this->disk_gb : 0;
    }

    public function hasDiskGb()
    {
        return isset($this->disk_gb);
    }

    public function clearDiskGb()
    {
        unset($this->disk_gb);
    }

    /**
     * Size of the scratch disk, defined in GB.
     *
     * Generated from protobuf field <code>optional int32 disk_gb = 60990141;</code>
     * @param int $var
     * @return $this
     */
    public function setDiskGb($var)
    {
        GPBUtil::checkInt32($var);
        $this->disk_gb = $var;

        return $this;
    }

}

