<?php

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

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * Optional settings of a cohort report.
 *
 * Generated from protobuf message <code>google.analytics.data.v1beta.CohortReportSettings</code>
 */
class CohortReportSettings extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * If true, accumulates the result from first touch day to the end day. Not
     * supported in `RunReportRequest`.
     *
     * Generated from protobuf field <code>bool accumulate = 1;</code>
     */
    private $accumulate = \false;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $accumulate
     *           If true, accumulates the result from first touch day to the end day. Not
     *           supported in `RunReportRequest`.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce();
        parent::__construct($data);
    }
    /**
     * If true, accumulates the result from first touch day to the end day. Not
     * supported in `RunReportRequest`.
     *
     * Generated from protobuf field <code>bool accumulate = 1;</code>
     * @return bool
     */
    public function getAccumulate()
    {
        return $this->accumulate;
    }
    /**
     * If true, accumulates the result from first touch day to the end day. Not
     * supported in `RunReportRequest`.
     *
     * Generated from protobuf field <code>bool accumulate = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setAccumulate($var)
    {
        GPBUtil::checkBool($var);
        $this->accumulate = $var;
        return $this;
    }
}
