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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * A mobile device criterion.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.MobileDeviceInfo</code>
 */
class MobileDeviceInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The mobile device constant resource name.
     *
     * Generated from protobuf field <code>optional string mobile_device_constant = 2 [(.google.api.resource_reference) = {</code>
     */
    protected $mobile_device_constant = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $mobile_device_constant
     *           The mobile device constant resource name.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * The mobile device constant resource name.
     *
     * Generated from protobuf field <code>optional string mobile_device_constant = 2 [(.google.api.resource_reference) = {</code>
     *
     * @return string
     */
    public function getMobileDeviceConstant()
    {
        return isset($this->mobile_device_constant) ? $this->mobile_device_constant : '';
    }

    public function hasMobileDeviceConstant()
    {
        return isset($this->mobile_device_constant);
    }

    public function clearMobileDeviceConstant()
    {
        unset($this->mobile_device_constant);
    }

    /**
     * The mobile device constant resource name.
     *
     * Generated from protobuf field <code>optional string mobile_device_constant = 2 [(.google.api.resource_reference) = {</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setMobileDeviceConstant($var)
    {
        GPBUtil::checkString($var, true);
        $this->mobile_device_constant = $var;

        return $this;
    }

}

