<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ReservationSlotStatus</code>
 */
class ReservationSlotStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. [Output Only] The physical topology of the reservation sub-block.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;</code>
     */
    protected $physical_topology = null;
    /**
     * Output only. The RDMA IP address of the physical host.
     *
     * Generated from protobuf field <code>repeated string rdma_ip_addresses = 167842531;</code>
     */
    private $rdma_ip_addresses;
    /**
     * Output only. The URIs of the instances currently running on this slot.
     *
     * Generated from protobuf field <code>repeated string running_instances = 536292350;</code>
     */
    private $running_instances;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\ReservationSlotPhysicalTopology $physical_topology
     *           Output only. [Output Only] The physical topology of the reservation sub-block.
     *     @type string[] $rdma_ip_addresses
     *           Output only. The RDMA IP address of the physical host.
     *     @type string[] $running_instances
     *           Output only. The URIs of the instances currently running on this slot.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. [Output Only] The physical topology of the reservation sub-block.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;</code>
     * @return \Google\Cloud\Compute\V1\ReservationSlotPhysicalTopology|null
     */
    public function getPhysicalTopology()
    {
        return $this->physical_topology;
    }

    public function hasPhysicalTopology()
    {
        return isset($this->physical_topology);
    }

    public function clearPhysicalTopology()
    {
        unset($this->physical_topology);
    }

    /**
     * Output only. [Output Only] The physical topology of the reservation sub-block.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;</code>
     * @param \Google\Cloud\Compute\V1\ReservationSlotPhysicalTopology $var
     * @return $this
     */
    public function setPhysicalTopology($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\ReservationSlotPhysicalTopology::class);
        $this->physical_topology = $var;

        return $this;
    }

    /**
     * Output only. The RDMA IP address of the physical host.
     *
     * Generated from protobuf field <code>repeated string rdma_ip_addresses = 167842531;</code>
     * @return RepeatedField<string>
     */
    public function getRdmaIpAddresses()
    {
        return $this->rdma_ip_addresses;
    }

    /**
     * Output only. The RDMA IP address of the physical host.
     *
     * Generated from protobuf field <code>repeated string rdma_ip_addresses = 167842531;</code>
     * @param string[] $var
     * @return $this
     */
    public function setRdmaIpAddresses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->rdma_ip_addresses = $arr;

        return $this;
    }

    /**
     * Output only. The URIs of the instances currently running on this slot.
     *
     * Generated from protobuf field <code>repeated string running_instances = 536292350;</code>
     * @return RepeatedField<string>
     */
    public function getRunningInstances()
    {
        return $this->running_instances;
    }

    /**
     * Output only. The URIs of the instances currently running on this slot.
     *
     * Generated from protobuf field <code>repeated string running_instances = 536292350;</code>
     * @param string[] $var
     * @return $this
     */
    public function setRunningInstances($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->running_instances = $arr;

        return $this;
    }

}

