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

namespace Google\Analytics\Data\V1beta;

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.v1beta.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\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;
    }

}

