<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/audience.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha;

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * Defines filters that must occur in a specific order for the user to be a
 * member of the Audience.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.AudienceSequenceFilter</code>
 */
class AudienceSequenceFilter extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. Specifies the scope for this filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    private $scope = 0;
    /**
     * Optional. Defines the time period in which the whole sequence must occur.
     *
     * Generated from protobuf field <code>.google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $sequence_maximum_duration = null;
    /**
     * Required. An ordered sequence of steps. A user must complete each step in
     * order to join the sequence filter.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $sequence_steps;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $scope
     *           Required. Immutable. Specifies the scope for this filter.
     *     @type \Google\Protobuf\Duration $sequence_maximum_duration
     *           Optional. Defines the time period in which the whole sequence must occur.
     *     @type array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $sequence_steps
     *           Required. An ordered sequence of steps. A user must complete each step in
     *           order to join the sequence filter.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce();
        parent::__construct($data);
    }
    /**
     * Required. Immutable. Specifies the scope for this filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int
     */
    public function getScope()
    {
        return $this->scope;
    }
    /**
     * Required. Immutable. Specifies the scope for this filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int $var
     * @return $this
     */
    public function setScope($var)
    {
        GPBUtil::checkEnum($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AudienceFilterScope::class);
        $this->scope = $var;
        return $this;
    }
    /**
     * Optional. Defines the time period in which the whole sequence must occur.
     *
     * Generated from protobuf field <code>.google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Duration|null
     */
    public function getSequenceMaximumDuration()
    {
        return $this->sequence_maximum_duration;
    }
    public function hasSequenceMaximumDuration()
    {
        return isset($this->sequence_maximum_duration);
    }
    public function clearSequenceMaximumDuration()
    {
        unset($this->sequence_maximum_duration);
    }
    /**
     * Optional. Defines the time period in which the whole sequence must occur.
     *
     * Generated from protobuf field <code>.google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\Duration $var
     * @return $this
     */
    public function setSequenceMaximumDuration($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Duration::class);
        $this->sequence_maximum_duration = $var;
        return $this;
    }
    /**
     * Required. An ordered sequence of steps. A user must complete each step in
     * order to join the sequence filter.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSequenceSteps()
    {
        return $this->sequence_steps;
    }
    /**
     * Required. An ordered sequence of steps. A user must complete each step in
     * order to join the sequence filter.
     *
     * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSequenceSteps($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType::MESSAGE, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep::class);
        $this->sequence_steps = $arr;
        return $this;
    }
}
