<?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 all output fields set on ResourcePolicy.
 * The internal structure of this "status" field should mimic the structure
 * of ResourcePolicy proto specification.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ResourcePolicyResourceStatus</code>
 */
class ResourcePolicyResourceStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. [Output Only] Specifies a set of output values reffering to
     * the instance_schedule_policy system status.
     * This field should have the same name as corresponding policy field.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instance_schedule_policy = 344877104;</code>
     */
    protected $instance_schedule_policy = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\ResourcePolicyResourceStatusInstanceSchedulePolicyStatus $instance_schedule_policy
     *           Output only. [Output Only] Specifies a set of output values reffering to
     *           the instance_schedule_policy system status.
     *           This field should have the same name as corresponding policy field.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. [Output Only] Specifies a set of output values reffering to
     * the instance_schedule_policy system status.
     * This field should have the same name as corresponding policy field.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instance_schedule_policy = 344877104;</code>
     * @return \Google\Cloud\Compute\V1\ResourcePolicyResourceStatusInstanceSchedulePolicyStatus|null
     */
    public function getInstanceSchedulePolicy()
    {
        return $this->instance_schedule_policy;
    }

    public function hasInstanceSchedulePolicy()
    {
        return isset($this->instance_schedule_policy);
    }

    public function clearInstanceSchedulePolicy()
    {
        unset($this->instance_schedule_policy);
    }

    /**
     * Output only. [Output Only] Specifies a set of output values reffering to
     * the instance_schedule_policy system status.
     * This field should have the same name as corresponding policy field.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instance_schedule_policy = 344877104;</code>
     * @param \Google\Cloud\Compute\V1\ResourcePolicyResourceStatusInstanceSchedulePolicyStatus $var
     * @return $this
     */
    public function setInstanceSchedulePolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\ResourcePolicyResourceStatusInstanceSchedulePolicyStatus::class);
        $this->instance_schedule_policy = $var;

        return $this;
    }

}

