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

namespace Google\Ads\GoogleAds\V23\Resources\Campaign;

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

/**
 * Campaign-level settings for hotel ads.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.Campaign.HotelSettingInfo</code>
 */
class HotelSettingInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The linked Hotel Center account.
     *
     * Generated from protobuf field <code>optional int64 hotel_center_id = 2;</code>
     */
    protected $hotel_center_id = null;
    /**
     * Disable the optional hotel setting. This field is currently supported
     * only for Demand Gen campaigns.
     *
     * Generated from protobuf field <code>optional bool disable_hotel_setting = 3;</code>
     */
    protected $disable_hotel_setting = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int|string $hotel_center_id
     *           The linked Hotel Center account.
     * @type bool $disable_hotel_setting
     *           Disable the optional hotel setting. This field is currently supported
     *           only for Demand Gen campaigns.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * The linked Hotel Center account.
     *
     * Generated from protobuf field <code>optional int64 hotel_center_id = 2;</code>
     *
     * @return int|string
     */
    public function getHotelCenterId()
    {
        return isset($this->hotel_center_id) ? $this->hotel_center_id : 0;
    }

    public function hasHotelCenterId()
    {
        return isset($this->hotel_center_id);
    }

    public function clearHotelCenterId()
    {
        unset($this->hotel_center_id);
    }

    /**
     * The linked Hotel Center account.
     *
     * Generated from protobuf field <code>optional int64 hotel_center_id = 2;</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setHotelCenterId($var)
    {
        GPBUtil::checkInt64($var);
        $this->hotel_center_id = $var;

        return $this;
    }

    /**
     * Disable the optional hotel setting. This field is currently supported
     * only for Demand Gen campaigns.
     *
     * Generated from protobuf field <code>optional bool disable_hotel_setting = 3;</code>
     *
     * @return bool
     */
    public function getDisableHotelSetting()
    {
        return isset($this->disable_hotel_setting) ? $this->disable_hotel_setting : false;
    }

    public function hasDisableHotelSetting()
    {
        return isset($this->disable_hotel_setting);
    }

    public function clearDisableHotelSetting()
    {
        unset($this->disable_hotel_setting);
    }

    /**
     * Disable the optional hotel setting. This field is currently supported
     * only for Demand Gen campaigns.
     *
     * Generated from protobuf field <code>optional bool disable_hotel_setting = 3;</code>
     *
     * @param  bool $var
     * @return $this
     */
    public function setDisableHotelSetting($var)
    {
        GPBUtil::checkBool($var);
        $this->disable_hotel_setting = $var;

        return $this;
    }

}

