<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataplex/v1/resources.proto

namespace Google\Cloud\Dataplex\V1;

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

/**
 * Aggregated status of the underlying assets of a lake or zone.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.AssetStatus</code>
 */
class AssetStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Last update time of the status.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 1;</code>
     */
    private $update_time = null;
    /**
     * Number of active assets.
     *
     * Generated from protobuf field <code>int32 active_assets = 2;</code>
     */
    private $active_assets = 0;
    /**
     * Number of assets that are in process of updating the security policy on
     * attached resources.
     *
     * Generated from protobuf field <code>int32 security_policy_applying_assets = 3;</code>
     */
    private $security_policy_applying_assets = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Last update time of the status.
     *     @type int $active_assets
     *           Number of active assets.
     *     @type int $security_policy_applying_assets
     *           Number of assets that are in process of updating the security policy on
     *           attached resources.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Last update time of the status.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Last update time of the status.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * Number of active assets.
     *
     * Generated from protobuf field <code>int32 active_assets = 2;</code>
     * @return int
     */
    public function getActiveAssets()
    {
        return $this->active_assets;
    }

    /**
     * Number of active assets.
     *
     * Generated from protobuf field <code>int32 active_assets = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setActiveAssets($var)
    {
        GPBUtil::checkInt32($var);
        $this->active_assets = $var;

        return $this;
    }

    /**
     * Number of assets that are in process of updating the security policy on
     * attached resources.
     *
     * Generated from protobuf field <code>int32 security_policy_applying_assets = 3;</code>
     * @return int
     */
    public function getSecurityPolicyApplyingAssets()
    {
        return $this->security_policy_applying_assets;
    }

    /**
     * Number of assets that are in process of updating the security policy on
     * attached resources.
     *
     * Generated from protobuf field <code>int32 security_policy_applying_assets = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setSecurityPolicyApplyingAssets($var)
    {
        GPBUtil::checkInt32($var);
        $this->security_policy_applying_assets = $var;

        return $this;
    }

}

