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

namespace Google\Cloud\BareMetalSolution\V2;

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

/**
 * Request for emergency resize Volume.
 *
 * Generated from protobuf message <code>google.cloud.baremetalsolution.v2.ResizeVolumeRequest</code>
 */
class ResizeVolumeRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Volume to resize.
     *
     * Generated from protobuf field <code>string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $volume = '';
    /**
     * New Volume size, in GiB.
     *
     * Generated from protobuf field <code>int64 size_gib = 2;</code>
     */
    private $size_gib = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $volume
     *           Required. Volume to resize.
     *     @type int|string $size_gib
     *           New Volume size, in GiB.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Volume::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Volume to resize.
     *
     * Generated from protobuf field <code>string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getVolume()
    {
        return $this->volume;
    }

    /**
     * Required. Volume to resize.
     *
     * Generated from protobuf field <code>string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setVolume($var)
    {
        GPBUtil::checkString($var, True);
        $this->volume = $var;

        return $this;
    }

    /**
     * New Volume size, in GiB.
     *
     * Generated from protobuf field <code>int64 size_gib = 2;</code>
     * @return int|string
     */
    public function getSizeGib()
    {
        return $this->size_gib;
    }

    /**
     * New Volume size, in GiB.
     *
     * Generated from protobuf field <code>int64 size_gib = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setSizeGib($var)
    {
        GPBUtil::checkInt64($var);
        $this->size_gib = $var;

        return $this;
    }

}

