<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/access_report.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;
/**
 * An expression to filter dimension or metric values.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.AccessFilter</code>
 */
class AccessFilter extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * The dimension name or metric name.
     *
     * Generated from protobuf field <code>string field_name = 1;</code>
     */
    private $field_name = '';
    protected $one_filter;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Analytics\Admin\V1alpha\AccessStringFilter $string_filter
     *           Strings related filter.
     *     @type \Google\Analytics\Admin\V1alpha\AccessInListFilter $in_list_filter
     *           A filter for in list values.
     *     @type \Google\Analytics\Admin\V1alpha\AccessNumericFilter $numeric_filter
     *           A filter for numeric or date values.
     *     @type \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $between_filter
     *           A filter for two values.
     *     @type string $field_name
     *           The dimension name or metric name.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce();
        parent::__construct($data);
    }
    /**
     * Strings related filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2;</code>
     * @return \Google\Analytics\Admin\V1alpha\AccessStringFilter|null
     */
    public function getStringFilter()
    {
        return $this->readOneof(2);
    }
    public function hasStringFilter()
    {
        return $this->hasOneof(2);
    }
    /**
     * Strings related filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2;</code>
     * @param \Google\Analytics\Admin\V1alpha\AccessStringFilter $var
     * @return $this
     */
    public function setStringFilter($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AccessStringFilter::class);
        $this->writeOneof(2, $var);
        return $this;
    }
    /**
     * A filter for in list values.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3;</code>
     * @return \Google\Analytics\Admin\V1alpha\AccessInListFilter|null
     */
    public function getInListFilter()
    {
        return $this->readOneof(3);
    }
    public function hasInListFilter()
    {
        return $this->hasOneof(3);
    }
    /**
     * A filter for in list values.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3;</code>
     * @param \Google\Analytics\Admin\V1alpha\AccessInListFilter $var
     * @return $this
     */
    public function setInListFilter($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AccessInListFilter::class);
        $this->writeOneof(3, $var);
        return $this;
    }
    /**
     * A filter for numeric or date values.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4;</code>
     * @return \Google\Analytics\Admin\V1alpha\AccessNumericFilter|null
     */
    public function getNumericFilter()
    {
        return $this->readOneof(4);
    }
    public function hasNumericFilter()
    {
        return $this->hasOneof(4);
    }
    /**
     * A filter for numeric or date values.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4;</code>
     * @param \Google\Analytics\Admin\V1alpha\AccessNumericFilter $var
     * @return $this
     */
    public function setNumericFilter($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AccessNumericFilter::class);
        $this->writeOneof(4, $var);
        return $this;
    }
    /**
     * A filter for two values.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5;</code>
     * @return \Google\Analytics\Admin\V1alpha\AccessBetweenFilter|null
     */
    public function getBetweenFilter()
    {
        return $this->readOneof(5);
    }
    public function hasBetweenFilter()
    {
        return $this->hasOneof(5);
    }
    /**
     * A filter for two values.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5;</code>
     * @param \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $var
     * @return $this
     */
    public function setBetweenFilter($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\AccessBetweenFilter::class);
        $this->writeOneof(5, $var);
        return $this;
    }
    /**
     * The dimension name or metric name.
     *
     * Generated from protobuf field <code>string field_name = 1;</code>
     * @return string
     */
    public function getFieldName()
    {
        return $this->field_name;
    }
    /**
     * The dimension name or metric name.
     *
     * Generated from protobuf field <code>string field_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFieldName($var)
    {
        GPBUtil::checkString($var, True);
        $this->field_name = $var;
        return $this;
    }
    /**
     * @return string
     */
    public function getOneFilter()
    {
        return $this->whichOneof("one_filter");
    }
}
