<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1alpha/analytics_data_api.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1alpha;

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * The batch response containing multiple reports.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.BatchRunReportsResponse</code>
 */
class BatchRunReportsResponse extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * Individual responses. Each response has a separate report request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1;</code>
     */
    private $reports;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Analytics\Data\V1alpha\RunReportResponse[]|\Google\Protobuf\Internal\RepeatedField $reports
     *           Individual responses. Each response has a separate report request.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce();
        parent::__construct($data);
    }
    /**
     * Individual responses. Each response has a separate report request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getReports()
    {
        return $this->reports;
    }
    /**
     * Individual responses. Each response has a separate report request.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1;</code>
     * @param \Google\Analytics\Data\V1alpha\RunReportResponse[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setReports($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType::MESSAGE, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1alpha\RunReportResponse::class);
        $this->reports = $arr;
        return $this;
    }
}
