<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/asset/v1beta1/assets.proto

namespace Google\Cloud\Asset\V1beta1;

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

/**
 * Temporal asset. In addition to the asset, the temporal asset includes the
 * status of the asset and valid from and to time of it.
 *
 * Generated from protobuf message <code>google.cloud.asset.v1beta1.TemporalAsset</code>
 */
class TemporalAsset extends \Google\Protobuf\Internal\Message
{
    /**
     * The time window when the asset data and state was observed.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1beta1.TimeWindow window = 1;</code>
     */
    private $window = null;
    /**
     * If the asset is deleted or not.
     *
     * Generated from protobuf field <code>bool deleted = 2;</code>
     */
    private $deleted = false;
    /**
     * Asset.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1beta1.Asset asset = 3;</code>
     */
    private $asset = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Asset\V1beta1\TimeWindow $window
     *           The time window when the asset data and state was observed.
     *     @type bool $deleted
     *           If the asset is deleted or not.
     *     @type \Google\Cloud\Asset\V1beta1\Asset $asset
     *           Asset.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Asset\V1Beta1\Assets::initOnce();
        parent::__construct($data);
    }

    /**
     * The time window when the asset data and state was observed.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1beta1.TimeWindow window = 1;</code>
     * @return \Google\Cloud\Asset\V1beta1\TimeWindow
     */
    public function getWindow()
    {
        return $this->window;
    }

    /**
     * The time window when the asset data and state was observed.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1beta1.TimeWindow window = 1;</code>
     * @param \Google\Cloud\Asset\V1beta1\TimeWindow $var
     * @return $this
     */
    public function setWindow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1beta1\TimeWindow::class);
        $this->window = $var;

        return $this;
    }

    /**
     * If the asset is deleted or not.
     *
     * Generated from protobuf field <code>bool deleted = 2;</code>
     * @return bool
     */
    public function getDeleted()
    {
        return $this->deleted;
    }

    /**
     * If the asset is deleted or not.
     *
     * Generated from protobuf field <code>bool deleted = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setDeleted($var)
    {
        GPBUtil::checkBool($var);
        $this->deleted = $var;

        return $this;
    }

    /**
     * Asset.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1beta1.Asset asset = 3;</code>
     * @return \Google\Cloud\Asset\V1beta1\Asset
     */
    public function getAsset()
    {
        return $this->asset;
    }

    /**
     * Asset.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1beta1.Asset asset = 3;</code>
     * @param \Google\Cloud\Asset\V1beta1\Asset $var
     * @return $this
     */
    public function setAsset($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1beta1\Asset::class);
        $this->asset = $var;

        return $this;
    }

}

