<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/subproperty_event_filter.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;
/**
 * A specific filter expression
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.SubpropertyEventFilterCondition</code>
 */
class SubpropertyEventFilterCondition extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * Required. The field that is being filtered.
     *
     * Generated from protobuf field <code>string field_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $field_name = '';
    protected $one_filter;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $null_filter
     *           A filter for null values.
     *     @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $string_filter
     *           A filter for a string-type dimension that matches a particular pattern.
     *     @type string $field_name
     *           Required. The field that is being filtered.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce();
        parent::__construct($data);
    }
    /**
     * A filter for null values.
     *
     * Generated from protobuf field <code>bool null_filter = 2;</code>
     * @return bool
     */
    public function getNullFilter()
    {
        return $this->readOneof(2);
    }
    public function hasNullFilter()
    {
        return $this->hasOneof(2);
    }
    /**
     * A filter for null values.
     *
     * Generated from protobuf field <code>bool null_filter = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setNullFilter($var)
    {
        GPBUtil::checkBool($var);
        $this->writeOneof(2, $var);
        return $this;
    }
    /**
     * A filter for a string-type dimension that matches a particular pattern.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3;</code>
     * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter|null
     */
    public function getStringFilter()
    {
        return $this->readOneof(3);
    }
    public function hasStringFilter()
    {
        return $this->hasOneof(3);
    }
    /**
     * A filter for a string-type dimension that matches a particular pattern.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3;</code>
     * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $var
     * @return $this
     */
    public function setStringFilter($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter::class);
        $this->writeOneof(3, $var);
        return $this;
    }
    /**
     * Required. The field that is being filtered.
     *
     * Generated from protobuf field <code>string field_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getFieldName()
    {
        return $this->field_name;
    }
    /**
     * Required. The field that is being filtered.
     *
     * Generated from protobuf field <code>string field_name = 1 [(.google.api.field_behavior) = REQUIRED];</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");
    }
}
