<?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;

/**
 * Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ResourceStatus</code>
 */
class ResourceStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * [Output Only] An opaque ID of the host on which the VM is running.
     *
     * Generated from protobuf field <code>optional string physical_host = 464370704;</code>
     */
    private $physical_host = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $physical_host
     *           [Output Only] An opaque ID of the host on which the VM is running.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * [Output Only] An opaque ID of the host on which the VM is running.
     *
     * Generated from protobuf field <code>optional string physical_host = 464370704;</code>
     * @return string
     */
    public function getPhysicalHost()
    {
        return isset($this->physical_host) ? $this->physical_host : '';
    }

    public function hasPhysicalHost()
    {
        return isset($this->physical_host);
    }

    public function clearPhysicalHost()
    {
        unset($this->physical_host);
    }

    /**
     * [Output Only] An opaque ID of the host on which the VM is running.
     *
     * Generated from protobuf field <code>optional string physical_host = 464370704;</code>
     * @param string $var
     * @return $this
     */
    public function setPhysicalHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->physical_host = $var;

        return $this;
    }

}

