<?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.ReservationSubBlockPhysicalTopology</code>
 */
class ReservationSubBlockPhysicalTopology extends \Google\Protobuf\Internal\Message
{
    /**
     * The hash of the capacity block within the cluster.
     *
     * Generated from protobuf field <code>optional string block = 93832333;</code>
     */
    protected $block = null;
    /**
     * The cluster name of the reservation subBlock.
     *
     * Generated from protobuf field <code>optional string cluster = 335221242;</code>
     */
    protected $cluster = null;
    /**
     * The hash of the capacity sub-block within the capacity block.
     *
     * Generated from protobuf field <code>optional string sub_block = 478033358;</code>
     */
    protected $sub_block = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $block
     *           The hash of the capacity block within the cluster.
     *     @type string $cluster
     *           The cluster name of the reservation subBlock.
     *     @type string $sub_block
     *           The hash of the capacity sub-block within the capacity block.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The hash of the capacity block within the cluster.
     *
     * Generated from protobuf field <code>optional string block = 93832333;</code>
     * @return string
     */
    public function getBlock()
    {
        return isset($this->block) ? $this->block : '';
    }

    public function hasBlock()
    {
        return isset($this->block);
    }

    public function clearBlock()
    {
        unset($this->block);
    }

    /**
     * The hash of the capacity block within the cluster.
     *
     * Generated from protobuf field <code>optional string block = 93832333;</code>
     * @param string $var
     * @return $this
     */
    public function setBlock($var)
    {
        GPBUtil::checkString($var, True);
        $this->block = $var;

        return $this;
    }

    /**
     * The cluster name of the reservation subBlock.
     *
     * Generated from protobuf field <code>optional string cluster = 335221242;</code>
     * @return string
     */
    public function getCluster()
    {
        return isset($this->cluster) ? $this->cluster : '';
    }

    public function hasCluster()
    {
        return isset($this->cluster);
    }

    public function clearCluster()
    {
        unset($this->cluster);
    }

    /**
     * The cluster name of the reservation subBlock.
     *
     * Generated from protobuf field <code>optional string cluster = 335221242;</code>
     * @param string $var
     * @return $this
     */
    public function setCluster($var)
    {
        GPBUtil::checkString($var, True);
        $this->cluster = $var;

        return $this;
    }

    /**
     * The hash of the capacity sub-block within the capacity block.
     *
     * Generated from protobuf field <code>optional string sub_block = 478033358;</code>
     * @return string
     */
    public function getSubBlock()
    {
        return isset($this->sub_block) ? $this->sub_block : '';
    }

    public function hasSubBlock()
    {
        return isset($this->sub_block);
    }

    public function clearSubBlock()
    {
        unset($this->sub_block);
    }

    /**
     * The hash of the capacity sub-block within the capacity block.
     *
     * Generated from protobuf field <code>optional string sub_block = 478033358;</code>
     * @param string $var
     * @return $this
     */
    public function setSubBlock($var)
    {
        GPBUtil::checkString($var, True);
        $this->sub_block = $var;

        return $this;
    }

}

