<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v23/common/metrics.proto

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Search volume range.
 * Actual search volume falls within this range.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.SearchVolumeRange</code>
 */
class SearchVolumeRange extends \Google\Protobuf\Internal\Message
{
    /**
     * Lower bound of search volume.
     *
     * Generated from protobuf field <code>optional int64 min = 1;</code>
     */
    protected $min = null;
    /**
     * Upper bound of search volume.
     *
     * Generated from protobuf field <code>optional int64 max = 2;</code>
     */
    protected $max = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $min
     *           Lower bound of search volume.
     *     @type int|string $max
     *           Upper bound of search volume.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Metrics::initOnce();
        parent::__construct($data);
    }

    /**
     * Lower bound of search volume.
     *
     * Generated from protobuf field <code>optional int64 min = 1;</code>
     * @return int|string
     */
    public function getMin()
    {
        return isset($this->min) ? $this->min : 0;
    }

    public function hasMin()
    {
        return isset($this->min);
    }

    public function clearMin()
    {
        unset($this->min);
    }

    /**
     * Lower bound of search volume.
     *
     * Generated from protobuf field <code>optional int64 min = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMin($var)
    {
        GPBUtil::checkInt64($var);
        $this->min = $var;

        return $this;
    }

    /**
     * Upper bound of search volume.
     *
     * Generated from protobuf field <code>optional int64 max = 2;</code>
     * @return int|string
     */
    public function getMax()
    {
        return isset($this->max) ? $this->max : 0;
    }

    public function hasMax()
    {
        return isset($this->max);
    }

    public function clearMax()
    {
        unset($this->max);
    }

    /**
     * Upper bound of search volume.
     *
     * Generated from protobuf field <code>optional int64 max = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMax($var)
    {
        GPBUtil::checkInt64($var);
        $this->max = $var;

        return $this;
    }

}

