<?php

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

use SEOPressPro\Vendor\Google\Protobuf\Internal\GPBType;
use SEOPressPro\Vendor\Google\Protobuf\Internal\RepeatedField;
use SEOPressPro\Vendor\Google\Protobuf\Internal\GPBUtil;
/**
 * Conditions tell Analytics what data to include in or exclude from the
 * segment.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.EventSegmentConditionGroup</code>
 */
class EventSegmentConditionGroup extends \SEOPressPro\Vendor\Google\Protobuf\Internal\Message
{
    /**
     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
     * Optional. If unspecified, a `conditionScoping` of
     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;</code>
     */
    private $condition_scoping = 0;
    /**
     * Data is included or excluded from the segment based on if it matches
     * this expression. Expressions express criteria on dimension, metrics,
     * and/or parameters.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;</code>
     */
    private $segment_filter_expression = null;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $condition_scoping
     *           `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
     *           Optional. If unspecified, a `conditionScoping` of
     *           `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
     *     @type \Google\Analytics\Data\V1alpha\SegmentFilterExpression $segment_filter_expression
     *           Data is included or excluded from the segment based on if it matches
     *           this expression. Expressions express criteria on dimension, metrics,
     *           and/or parameters.
     * }
     */
    public function __construct($data = NULL)
    {
        \SEOPressPro\Vendor\GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
        parent::__construct($data);
    }
    /**
     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
     * Optional. If unspecified, a `conditionScoping` of
     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;</code>
     * @return int
     */
    public function getConditionScoping()
    {
        return $this->condition_scoping;
    }
    /**
     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
     * Optional. If unspecified, a `conditionScoping` of
     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setConditionScoping($var)
    {
        GPBUtil::checkEnum($var, \SEOPressPro\Vendor\Google\Analytics\Data\V1alpha\EventCriteriaScoping::class);
        $this->condition_scoping = $var;
        return $this;
    }
    /**
     * Data is included or excluded from the segment based on if it matches
     * this expression. Expressions express criteria on dimension, metrics,
     * and/or parameters.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;</code>
     * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpression|null
     */
    public function getSegmentFilterExpression()
    {
        return $this->segment_filter_expression;
    }
    public function hasSegmentFilterExpression()
    {
        return isset($this->segment_filter_expression);
    }
    public function clearSegmentFilterExpression()
    {
        unset($this->segment_filter_expression);
    }
    /**
     * Data is included or excluded from the segment based on if it matches
     * this expression. Expressions express criteria on dimension, metrics,
     * and/or parameters.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;</code>
     * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpression $var
     * @return $this
     */
    public function setSegmentFilterExpression($var)
    {
        GPBUtil::checkMessage($var, \SEOPressPro\Vendor\Google\Analytics\Data\V1alpha\SegmentFilterExpression::class);
        $this->segment_filter_expression = $var;
        return $this;
    }
}
