<?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 setting for local campaigns.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.Campaign.LocalCampaignSetting</code>
 */
class LocalCampaignSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * The location source type for this local campaign.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;</code>
     */
    protected $location_source_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int $location_source_type
     *           The location source type for this local campaign.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * The location source type for this local campaign.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;</code>
     *
     * @return int
     */
    public function getLocationSourceType()
    {
        return $this->location_source_type;
    }

    /**
     * The location source type for this local campaign.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setLocationSourceType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\LocationSourceTypeEnum\LocationSourceType::class);
        $this->location_source_type = $var;

        return $this;
    }

}

