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

namespace Google\Cloud\Asset\V1;

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

/**
 * Batch get assets history response.
 *
 * Generated from protobuf message <code>google.cloud.asset.v1.BatchGetAssetsHistoryResponse</code>
 */
class BatchGetAssetsHistoryResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of assets with valid time windows.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.TemporalAsset assets = 1;</code>
     */
    private $assets;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Asset\V1\TemporalAsset[]|\Google\Protobuf\Internal\RepeatedField $assets
     *           A list of assets with valid time windows.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of assets with valid time windows.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.TemporalAsset assets = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAssets()
    {
        return $this->assets;
    }

    /**
     * A list of assets with valid time windows.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.TemporalAsset assets = 1;</code>
     * @param \Google\Cloud\Asset\V1\TemporalAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAssets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\TemporalAsset::class);
        $this->assets = $arr;

        return $this;
    }

}

