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

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

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

/**
 * Settings for configuring a business profile optimized for ads as this
 * campaign's landing page.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting</code>
 */
class AdOptimizedBusinessProfileSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * Enabling a lead form on your business profile enables prospective
     * customers to contact your business by filling out a simple form,
     * and you'll receive their information through email.
     *
     * Generated from protobuf field <code>optional bool include_lead_form = 1;</code>
     */
    protected $include_lead_form = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $include_lead_form
     *           Enabling a lead form on your business profile enables prospective
     *           customers to contact your business by filling out a simple form,
     *           and you'll receive their information through email.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\SmartCampaignSetting::initOnce();
        parent::__construct($data);
    }

    /**
     * Enabling a lead form on your business profile enables prospective
     * customers to contact your business by filling out a simple form,
     * and you'll receive their information through email.
     *
     * Generated from protobuf field <code>optional bool include_lead_form = 1;</code>
     * @return bool
     */
    public function getIncludeLeadForm()
    {
        return isset($this->include_lead_form) ? $this->include_lead_form : false;
    }

    public function hasIncludeLeadForm()
    {
        return isset($this->include_lead_form);
    }

    public function clearIncludeLeadForm()
    {
        unset($this->include_lead_form);
    }

    /**
     * Enabling a lead form on your business profile enables prospective
     * customers to contact your business by filling out a simple form,
     * and you'll receive their information through email.
     *
     * Generated from protobuf field <code>optional bool include_lead_form = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIncludeLeadForm($var)
    {
        GPBUtil::checkBool($var);
        $this->include_lead_form = $var;

        return $this;
    }

}

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

