<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/databasecenter/v1beta/signals.proto

namespace Google\Cloud\DatabaseCenter\V1beta;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Resource suspension info for a database resource.
 *
 * Generated from protobuf message <code>google.cloud.databasecenter.v1beta.ResourceSuspensionInfo</code>
 */
class ResourceSuspensionInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Is resource suspended.
     *
     * Generated from protobuf field <code>bool resource_suspended = 1;</code>
     */
    protected $resource_suspended = false;
    /**
     * Suspension reason for the resource.
     *
     * Generated from protobuf field <code>.google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2;</code>
     */
    protected $suspension_reason = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $resource_suspended
     *           Is resource suspended.
     *     @type int $suspension_reason
     *           Suspension reason for the resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce();
        parent::__construct($data);
    }

    /**
     * Is resource suspended.
     *
     * Generated from protobuf field <code>bool resource_suspended = 1;</code>
     * @return bool
     */
    public function getResourceSuspended()
    {
        return $this->resource_suspended;
    }

    /**
     * Is resource suspended.
     *
     * Generated from protobuf field <code>bool resource_suspended = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setResourceSuspended($var)
    {
        GPBUtil::checkBool($var);
        $this->resource_suspended = $var;

        return $this;
    }

    /**
     * Suspension reason for the resource.
     *
     * Generated from protobuf field <code>.google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2;</code>
     * @return int
     */
    public function getSuspensionReason()
    {
        return $this->suspension_reason;
    }

    /**
     * Suspension reason for the resource.
     *
     * Generated from protobuf field <code>.google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSuspensionReason($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SuspensionReason::class);
        $this->suspension_reason = $var;

        return $this;
    }

}

