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

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

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

/**
 * Settings for Local Services Performance Max Campaign subresource.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Campaign.LocalServicesPmaxCampaignSettings</code>
 */
class LocalServicesPmaxCampaignSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether to use navigational query filter.
     *
     * Generated from protobuf field <code>optional bool navigational_query_leads_enabled = 1;</code>
     */
    protected $navigational_query_leads_enabled = null;
    /**
     * Founding year of the business.
     *
     * Generated from protobuf field <code>optional int64 founding_year = 2;</code>
     */
    protected $founding_year = null;
    /**
     * Immutable. Country code of the Local Services Ad. Set once during Ad
     * Creation and used to determine verification requirements and validate
     * location criterion selection; upper-case, two-letter codes as defined by
     * ISO-3166.
     *
     * Generated from protobuf field <code>optional string country_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $country_code = null;
    /**
     * List of phone numbers associated with the provider.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.LocalServicesPhoneNumber phone_numbers = 4;</code>
     */
    private $phone_numbers;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type bool $navigational_query_leads_enabled
     *           Whether to use navigational query filter.
     * @type int|string $founding_year
     *           Founding year of the business.
     * @type string $country_code
     *           Immutable. Country code of the Local Services Ad. Set once during Ad
     *           Creation and used to determine verification requirements and validate
     *           location criterion selection; upper-case, two-letter codes as defined by
     *           ISO-3166.
     * @type \Google\Ads\GoogleAds\V24\Common\LocalServicesPhoneNumber[] $phone_numbers
     *           List of phone numbers associated with the provider.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether to use navigational query filter.
     *
     * Generated from protobuf field <code>optional bool navigational_query_leads_enabled = 1;</code>
     *
     * @return bool
     */
    public function getNavigationalQueryLeadsEnabled()
    {
        return isset($this->navigational_query_leads_enabled) ? $this->navigational_query_leads_enabled : false;
    }

    public function hasNavigationalQueryLeadsEnabled()
    {
        return isset($this->navigational_query_leads_enabled);
    }

    public function clearNavigationalQueryLeadsEnabled()
    {
        unset($this->navigational_query_leads_enabled);
    }

    /**
     * Whether to use navigational query filter.
     *
     * Generated from protobuf field <code>optional bool navigational_query_leads_enabled = 1;</code>
     *
     * @param  bool $var
     * @return $this
     */
    public function setNavigationalQueryLeadsEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->navigational_query_leads_enabled = $var;

        return $this;
    }

    /**
     * Founding year of the business.
     *
     * Generated from protobuf field <code>optional int64 founding_year = 2;</code>
     *
     * @return int|string
     */
    public function getFoundingYear()
    {
        return isset($this->founding_year) ? $this->founding_year : 0;
    }

    public function hasFoundingYear()
    {
        return isset($this->founding_year);
    }

    public function clearFoundingYear()
    {
        unset($this->founding_year);
    }

    /**
     * Founding year of the business.
     *
     * Generated from protobuf field <code>optional int64 founding_year = 2;</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setFoundingYear($var)
    {
        GPBUtil::checkInt64($var);
        $this->founding_year = $var;

        return $this;
    }

    /**
     * Immutable. Country code of the Local Services Ad. Set once during Ad
     * Creation and used to determine verification requirements and validate
     * location criterion selection; upper-case, two-letter codes as defined by
     * ISO-3166.
     *
     * Generated from protobuf field <code>optional string country_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return string
     */
    public function getCountryCode()
    {
        return isset($this->country_code) ? $this->country_code : '';
    }

    public function hasCountryCode()
    {
        return isset($this->country_code);
    }

    public function clearCountryCode()
    {
        unset($this->country_code);
    }

    /**
     * Immutable. Country code of the Local Services Ad. Set once during Ad
     * Creation and used to determine verification requirements and validate
     * location criterion selection; upper-case, two-letter codes as defined by
     * ISO-3166.
     *
     * Generated from protobuf field <code>optional string country_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setCountryCode($var)
    {
        GPBUtil::checkString($var, true);
        $this->country_code = $var;

        return $this;
    }

    /**
     * List of phone numbers associated with the provider.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.LocalServicesPhoneNumber phone_numbers = 4;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\LocalServicesPhoneNumber>
     */
    public function getPhoneNumbers()
    {
        return $this->phone_numbers;
    }

    /**
     * List of phone numbers associated with the provider.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.LocalServicesPhoneNumber phone_numbers = 4;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\LocalServicesPhoneNumber[] $var
     * @return $this
     */
    public function setPhoneNumbers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\LocalServicesPhoneNumber::class);
        $this->phone_numbers = $arr;

        return $this;
    }

}

