<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Scopings specify how the dimensions & metrics of multiple events
 * should be considered when evaluating a segment filter.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.SegmentFilterScoping</code>
 */
class SegmentFilterScoping extends \Google\Protobuf\Internal\Message
{
    /**
     * If `atAnyPointInTime` is true, this filter evaluates to true for all
     * events if it evaluates to true for any event in the date range of the
     * request.
     * This `atAnyPointInTime` parameter does not extend the date range of
     * events in the report. If `atAnyPointInTime` is true, only events within
     * the report's date range are considered when evaluating this filter.
     * This `atAnyPointInTime` is only able to be specified if the criteria
     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
     * sequences.
     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
     * false is used if unspecified.
     *
     * Generated from protobuf field <code>optional bool at_any_point_in_time = 1;</code>
     */
    protected $at_any_point_in_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $at_any_point_in_time
     *           If `atAnyPointInTime` is true, this filter evaluates to true for all
     *           events if it evaluates to true for any event in the date range of the
     *           request.
     *           This `atAnyPointInTime` parameter does not extend the date range of
     *           events in the report. If `atAnyPointInTime` is true, only events within
     *           the report's date range are considered when evaluating this filter.
     *           This `atAnyPointInTime` is only able to be specified if the criteria
     *           scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
     *           sequences.
     *           If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
     *           false is used if unspecified.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * If `atAnyPointInTime` is true, this filter evaluates to true for all
     * events if it evaluates to true for any event in the date range of the
     * request.
     * This `atAnyPointInTime` parameter does not extend the date range of
     * events in the report. If `atAnyPointInTime` is true, only events within
     * the report's date range are considered when evaluating this filter.
     * This `atAnyPointInTime` is only able to be specified if the criteria
     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
     * sequences.
     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
     * false is used if unspecified.
     *
     * Generated from protobuf field <code>optional bool at_any_point_in_time = 1;</code>
     * @return bool
     */
    public function getAtAnyPointInTime()
    {
        return isset($this->at_any_point_in_time) ? $this->at_any_point_in_time : false;
    }

    public function hasAtAnyPointInTime()
    {
        return isset($this->at_any_point_in_time);
    }

    public function clearAtAnyPointInTime()
    {
        unset($this->at_any_point_in_time);
    }

    /**
     * If `atAnyPointInTime` is true, this filter evaluates to true for all
     * events if it evaluates to true for any event in the date range of the
     * request.
     * This `atAnyPointInTime` parameter does not extend the date range of
     * events in the report. If `atAnyPointInTime` is true, only events within
     * the report's date range are considered when evaluating this filter.
     * This `atAnyPointInTime` is only able to be specified if the criteria
     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
     * sequences.
     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
     * false is used if unspecified.
     *
     * Generated from protobuf field <code>optional bool at_any_point_in_time = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setAtAnyPointInTime($var)
    {
        GPBUtil::checkBool($var);
        $this->at_any_point_in_time = $var;

        return $this;
    }

}

