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

/**
 * The properties of the last known good state for the Future Reservation.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.FutureReservationStatusLastKnownGoodStateFutureReservationSpecs</code>
 */
class FutureReservationStatusLastKnownGoodStateFutureReservationSpecs extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. [Output Only] The previous share settings of the Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;</code>
     */
    protected $share_settings = null;
    /**
     * Output only. [Output Only] The previous instance related properties of the
     * Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FutureReservationSpecificSKUProperties specific_sku_properties = 108887106;</code>
     */
    protected $specific_sku_properties = null;
    /**
     * Output only. [Output Only] The previous time window of the Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FutureReservationTimeWindow time_window = 422983074;</code>
     */
    protected $time_window = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\ShareSettings $share_settings
     *           Output only. [Output Only] The previous share settings of the Future Reservation.
     *     @type \Google\Cloud\Compute\V1\FutureReservationSpecificSKUProperties $specific_sku_properties
     *           Output only. [Output Only] The previous instance related properties of the
     *           Future Reservation.
     *     @type \Google\Cloud\Compute\V1\FutureReservationTimeWindow $time_window
     *           Output only. [Output Only] The previous time window of the Future Reservation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. [Output Only] The previous share settings of the Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;</code>
     * @return \Google\Cloud\Compute\V1\ShareSettings|null
     */
    public function getShareSettings()
    {
        return $this->share_settings;
    }

    public function hasShareSettings()
    {
        return isset($this->share_settings);
    }

    public function clearShareSettings()
    {
        unset($this->share_settings);
    }

    /**
     * Output only. [Output Only] The previous share settings of the Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;</code>
     * @param \Google\Cloud\Compute\V1\ShareSettings $var
     * @return $this
     */
    public function setShareSettings($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\ShareSettings::class);
        $this->share_settings = $var;

        return $this;
    }

    /**
     * Output only. [Output Only] The previous instance related properties of the
     * Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FutureReservationSpecificSKUProperties specific_sku_properties = 108887106;</code>
     * @return \Google\Cloud\Compute\V1\FutureReservationSpecificSKUProperties|null
     */
    public function getSpecificSkuProperties()
    {
        return $this->specific_sku_properties;
    }

    public function hasSpecificSkuProperties()
    {
        return isset($this->specific_sku_properties);
    }

    public function clearSpecificSkuProperties()
    {
        unset($this->specific_sku_properties);
    }

    /**
     * Output only. [Output Only] The previous instance related properties of the
     * Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FutureReservationSpecificSKUProperties specific_sku_properties = 108887106;</code>
     * @param \Google\Cloud\Compute\V1\FutureReservationSpecificSKUProperties $var
     * @return $this
     */
    public function setSpecificSkuProperties($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\FutureReservationSpecificSKUProperties::class);
        $this->specific_sku_properties = $var;

        return $this;
    }

    /**
     * Output only. [Output Only] The previous time window of the Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FutureReservationTimeWindow time_window = 422983074;</code>
     * @return \Google\Cloud\Compute\V1\FutureReservationTimeWindow|null
     */
    public function getTimeWindow()
    {
        return $this->time_window;
    }

    public function hasTimeWindow()
    {
        return isset($this->time_window);
    }

    public function clearTimeWindow()
    {
        unset($this->time_window);
    }

    /**
     * Output only. [Output Only] The previous time window of the Future Reservation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FutureReservationTimeWindow time_window = 422983074;</code>
     * @param \Google\Cloud\Compute\V1\FutureReservationTimeWindow $var
     * @return $this
     */
    public function setTimeWindow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\FutureReservationTimeWindow::class);
        $this->time_window = $var;

        return $this;
    }

}

