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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * Represents an entity bid criterion.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.EntityBid</code>
 */
class EntityBid extends \Google\Protobuf\Internal\Message
{
    /**
     * The ID specifying a particular travel entity, such as a hotel, a thing
     * to do, or an event.
     *
     * Generated from protobuf field <code>optional string item_code = 1;</code>
     */
    protected $item_code = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $item_code
     *           The ID specifying a particular travel entity, such as a hotel, a thing
     *           to do, or an event.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * The ID specifying a particular travel entity, such as a hotel, a thing
     * to do, or an event.
     *
     * Generated from protobuf field <code>optional string item_code = 1;</code>
     * @return string
     */
    public function getItemCode()
    {
        return isset($this->item_code) ? $this->item_code : '';
    }

    public function hasItemCode()
    {
        return isset($this->item_code);
    }

    public function clearItemCode()
    {
        unset($this->item_code);
    }

    /**
     * The ID specifying a particular travel entity, such as a hotel, a thing
     * to do, or an event.
     *
     * Generated from protobuf field <code>optional string item_code = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setItemCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->item_code = $var;

        return $this;
    }

}

