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

namespace Google\Ads\GoogleAds\V23\Resources\AdGroup;

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

/**
 * Settings for AI Max feature in standard search adgroups.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.AdGroup.AiMaxAdGroupSetting</code>
 */
class AiMaxAdGroupSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * Disable search term matching for this adgroup when AI Max is enabled.
     * Search term matching uses broad match, asset-based, and landing
     * page-based technology to improve reach.
     *
     * Generated from protobuf field <code>optional bool disable_search_term_matching = 1;</code>
     */
    protected $disable_search_term_matching = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $disable_search_term_matching
     *           Disable search term matching for this adgroup when AI Max is enabled.
     *           Search term matching uses broad match, asset-based, and landing
     *           page-based technology to improve reach.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\AdGroup::initOnce();
        parent::__construct($data);
    }

    /**
     * Disable search term matching for this adgroup when AI Max is enabled.
     * Search term matching uses broad match, asset-based, and landing
     * page-based technology to improve reach.
     *
     * Generated from protobuf field <code>optional bool disable_search_term_matching = 1;</code>
     * @return bool
     */
    public function getDisableSearchTermMatching()
    {
        return isset($this->disable_search_term_matching) ? $this->disable_search_term_matching : false;
    }

    public function hasDisableSearchTermMatching()
    {
        return isset($this->disable_search_term_matching);
    }

    public function clearDisableSearchTermMatching()
    {
        unset($this->disable_search_term_matching);
    }

    /**
     * Disable search term matching for this adgroup when AI Max is enabled.
     * Search term matching uses broad match, asset-based, and landing
     * page-based technology to improve reach.
     *
     * Generated from protobuf field <code>optional bool disable_search_term_matching = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setDisableSearchTermMatching($var)
    {
        GPBUtil::checkBool($var);
        $this->disable_search_term_matching = $var;

        return $this;
    }

}

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

