<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Settings for Performance Max campaigns.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.Campaign.PmaxCampaignSettings</code>
 */
class PmaxCampaignSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Overrides of brand targeting for various ad types.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.PmaxCampaignSettings.BrandTargetingOverrides brand_targeting_overrides = 1;</code>
     */
    protected $brand_targeting_overrides = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Resources\Campaign\PmaxCampaignSettings\BrandTargetingOverrides $brand_targeting_overrides
     *           Overrides of brand targeting for various ad types.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Overrides of brand targeting for various ad types.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.PmaxCampaignSettings.BrandTargetingOverrides brand_targeting_overrides = 1;</code>
     * @return \Google\Ads\GoogleAds\V23\Resources\Campaign\PmaxCampaignSettings\BrandTargetingOverrides|null
     */
    public function getBrandTargetingOverrides()
    {
        return $this->brand_targeting_overrides;
    }

    public function hasBrandTargetingOverrides()
    {
        return isset($this->brand_targeting_overrides);
    }

    public function clearBrandTargetingOverrides()
    {
        unset($this->brand_targeting_overrides);
    }

    /**
     * Overrides of brand targeting for various ad types.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.PmaxCampaignSettings.BrandTargetingOverrides brand_targeting_overrides = 1;</code>
     * @param \Google\Ads\GoogleAds\V23\Resources\Campaign\PmaxCampaignSettings\BrandTargetingOverrides $var
     * @return $this
     */
    public function setBrandTargetingOverrides($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Resources\Campaign\PmaxCampaignSettings\BrandTargetingOverrides::class);
        $this->brand_targeting_overrides = $var;

        return $this;
    }

}

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

