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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * A location that supports benchmarks data.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.BenchmarksLocation</code>
 */
class BenchmarksLocation extends \Google\Protobuf\Internal\Message
{
    /**
     * The unique location name in English.
     *
     * Generated from protobuf field <code>string location_name = 1;</code>
     */
    protected $location_name = '';
    /**
     * The location's type. Location types correspond to target_type returned by
     * searching location type in GoogleAdsService.Search/SearchStream.
     *
     * Generated from protobuf field <code>string location_type = 2;</code>
     */
    protected $location_type = '';
    /**
     * Information on the geographic location, including the location ID.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.LocationInfo location_info = 3;</code>
     */
    protected $location_info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $location_name
     *           The unique location name in English.
     *     @type string $location_type
     *           The location's type. Location types correspond to target_type returned by
     *           searching location type in GoogleAdsService.Search/SearchStream.
     *     @type \Google\Ads\GoogleAds\V23\Common\LocationInfo $location_info
     *           Information on the geographic location, including the location ID.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * The unique location name in English.
     *
     * Generated from protobuf field <code>string location_name = 1;</code>
     * @return string
     */
    public function getLocationName()
    {
        return $this->location_name;
    }

    /**
     * The unique location name in English.
     *
     * Generated from protobuf field <code>string location_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setLocationName($var)
    {
        GPBUtil::checkString($var, True);
        $this->location_name = $var;

        return $this;
    }

    /**
     * The location's type. Location types correspond to target_type returned by
     * searching location type in GoogleAdsService.Search/SearchStream.
     *
     * Generated from protobuf field <code>string location_type = 2;</code>
     * @return string
     */
    public function getLocationType()
    {
        return $this->location_type;
    }

    /**
     * The location's type. Location types correspond to target_type returned by
     * searching location type in GoogleAdsService.Search/SearchStream.
     *
     * Generated from protobuf field <code>string location_type = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setLocationType($var)
    {
        GPBUtil::checkString($var, True);
        $this->location_type = $var;

        return $this;
    }

    /**
     * Information on the geographic location, including the location ID.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.LocationInfo location_info = 3;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\LocationInfo|null
     */
    public function getLocationInfo()
    {
        return $this->location_info;
    }

    public function hasLocationInfo()
    {
        return isset($this->location_info);
    }

    public function clearLocationInfo()
    {
        unset($this->location_info);
    }

    /**
     * Information on the geographic location, including the location ID.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.LocationInfo location_info = 3;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\LocationInfo $var
     * @return $this
     */
    public function setLocationInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\LocationInfo::class);
        $this->location_info = $var;

        return $this;
    }

}

