<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1alpha/data.proto

namespace Google\Analytics\Data\V1alpha;

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

/**
 * Optional settings of a cohort report.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.CohortReportSettings</code>
 */
class CohortReportSettings extends \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) {
        \GPBMetadata\Google\Analytics\Data\V1Alpha\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;
    }

}

