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

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

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

/**
 * Settings for Travel campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.resources.Campaign.TravelCampaignSettings</code>
 */
class TravelCampaignSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. The Travel account ID associated with the Travel campaign.
     *
     * Generated from protobuf field <code>optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $travel_account_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $travel_account_id
     *           Immutable. The Travel account ID associated with the Travel campaign.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. The Travel account ID associated with the Travel campaign.
     *
     * Generated from protobuf field <code>optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int|string
     */
    public function getTravelAccountId()
    {
        return isset($this->travel_account_id) ? $this->travel_account_id : 0;
    }

    public function hasTravelAccountId()
    {
        return isset($this->travel_account_id);
    }

    public function clearTravelAccountId()
    {
        unset($this->travel_account_id);
    }

    /**
     * Immutable. The Travel account ID associated with the Travel campaign.
     *
     * Generated from protobuf field <code>optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int|string $var
     * @return $this
     */
    public function setTravelAccountId($var)
    {
        GPBUtil::checkInt64($var);
        $this->travel_account_id = $var;

        return $this;
    }

}

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

