<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/access_report.proto

namespace Google\Analytics\Admin\V1alpha;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Filters for numeric or date values.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.AccessNumericFilter</code>
 */
class AccessNumericFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * The operation type for this filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1;</code>
     */
    protected $operation = 0;
    /**
     * A numeric value or a date value.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.NumericValue value = 2;</code>
     */
    protected $value = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $operation
     *           The operation type for this filter.
     *     @type \Google\Analytics\Admin\V1alpha\NumericValue $value
     *           A numeric value or a date value.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce();
        parent::__construct($data);
    }

    /**
     * The operation type for this filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1;</code>
     * @return int
     */
    public function getOperation()
    {
        return $this->operation;
    }

    /**
     * The operation type for this filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setOperation($var)
    {
        GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter\Operation::class);
        $this->operation = $var;

        return $this;
    }

    /**
     * A numeric value or a date value.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.NumericValue value = 2;</code>
     * @return \Google\Analytics\Admin\V1alpha\NumericValue|null
     */
    public function getValue()
    {
        return $this->value;
    }

    public function hasValue()
    {
        return isset($this->value);
    }

    public function clearValue()
    {
        unset($this->value);
    }

    /**
     * A numeric value or a date value.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.NumericValue value = 2;</code>
     * @param \Google\Analytics\Admin\V1alpha\NumericValue $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class);
        $this->value = $var;

        return $this;
    }

}

