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

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

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

/**
 * For Performance Max for travel goals campaigns with a Hotel
 * Center account link. Read-only.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.AssetSet.HotelPropertyData</code>
 */
class HotelPropertyData extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The hotel center ID of the partner.
     *
     * Generated from protobuf field <code>optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $hotel_center_id = null;
    /**
     * Output only. Name of the hotel partner.
     *
     * Generated from protobuf field <code>optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $partner_name = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $hotel_center_id
     *           Output only. The hotel center ID of the partner.
     *     @type string $partner_name
     *           Output only. Name of the hotel partner.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\AssetSet::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The hotel center ID of the partner.
     *
     * Generated from protobuf field <code>optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</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);
    }

    /**
     * Output only. The hotel center ID of the partner.
     *
     * Generated from protobuf field <code>optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setHotelCenterId($var)
    {
        GPBUtil::checkInt64($var);
        $this->hotel_center_id = $var;

        return $this;
    }

    /**
     * Output only. Name of the hotel partner.
     *
     * Generated from protobuf field <code>optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPartnerName()
    {
        return isset($this->partner_name) ? $this->partner_name : '';
    }

    public function hasPartnerName()
    {
        return isset($this->partner_name);
    }

    public function clearPartnerName()
    {
        unset($this->partner_name);
    }

    /**
     * Output only. Name of the hotel partner.
     *
     * Generated from protobuf field <code>optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPartnerName($var)
    {
        GPBUtil::checkString($var, True);
        $this->partner_name = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HotelPropertyData::class, \Google\Ads\GoogleAds\V23\Resources\AssetSet_HotelPropertyData::class);

