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

namespace Google\Ads\GoogleAds\V24\Common;

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

/**
 * Advertiser-specific hotel ID.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.common.HotelIdInfo</code>
 */
class HotelIdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * String value of the hotel ID.
     *
     * Generated from protobuf field <code>optional string value = 2;</code>
     */
    protected $value = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $value
     *           String value of the hotel ID.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * String value of the hotel ID.
     *
     * Generated from protobuf field <code>optional string value = 2;</code>
     *
     * @return string
     */
    public function getValue()
    {
        return isset($this->value) ? $this->value : '';
    }

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

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

    /**
     * String value of the hotel ID.
     *
     * Generated from protobuf field <code>optional string value = 2;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, true);
        $this->value = $var;

        return $this;
    }

}

