<?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;

/**
 * Vertical ads setting feature to enable/disable ad group format controls in
 * search campaigns.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.AdGroup.VerticalAdsFormatSetting</code>
 */
class VerticalAdsFormatSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * If true, text ads will be disabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool disable_text_ads = 1;</code>
     */
    protected $disable_text_ads = null;
    /**
     * If true, booking links will be enabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool enable_booking_links = 2;</code>
     */
    protected $enable_booking_links = null;
    /**
     * If true, vertical promotion ads will be enabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool enable_vertical_promotion_ads = 3;</code>
     */
    protected $enable_vertical_promotion_ads = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $disable_text_ads
     *           If true, text ads will be disabled for this ad group.
     *     @type bool $enable_booking_links
     *           If true, booking links will be enabled for this ad group.
     *     @type bool $enable_vertical_promotion_ads
     *           If true, vertical promotion ads will be enabled for this ad group.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\AdGroup::initOnce();
        parent::__construct($data);
    }

    /**
     * If true, text ads will be disabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool disable_text_ads = 1;</code>
     * @return bool
     */
    public function getDisableTextAds()
    {
        return isset($this->disable_text_ads) ? $this->disable_text_ads : false;
    }

    public function hasDisableTextAds()
    {
        return isset($this->disable_text_ads);
    }

    public function clearDisableTextAds()
    {
        unset($this->disable_text_ads);
    }

    /**
     * If true, text ads will be disabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool disable_text_ads = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setDisableTextAds($var)
    {
        GPBUtil::checkBool($var);
        $this->disable_text_ads = $var;

        return $this;
    }

    /**
     * If true, booking links will be enabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool enable_booking_links = 2;</code>
     * @return bool
     */
    public function getEnableBookingLinks()
    {
        return isset($this->enable_booking_links) ? $this->enable_booking_links : false;
    }

    public function hasEnableBookingLinks()
    {
        return isset($this->enable_booking_links);
    }

    public function clearEnableBookingLinks()
    {
        unset($this->enable_booking_links);
    }

    /**
     * If true, booking links will be enabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool enable_booking_links = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableBookingLinks($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_booking_links = $var;

        return $this;
    }

    /**
     * If true, vertical promotion ads will be enabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool enable_vertical_promotion_ads = 3;</code>
     * @return bool
     */
    public function getEnableVerticalPromotionAds()
    {
        return isset($this->enable_vertical_promotion_ads) ? $this->enable_vertical_promotion_ads : false;
    }

    public function hasEnableVerticalPromotionAds()
    {
        return isset($this->enable_vertical_promotion_ads);
    }

    public function clearEnableVerticalPromotionAds()
    {
        unset($this->enable_vertical_promotion_ads);
    }

    /**
     * If true, vertical promotion ads will be enabled for this ad group.
     *
     * Generated from protobuf field <code>optional bool enable_vertical_promotion_ads = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableVerticalPromotionAds($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_vertical_promotion_ads = $var;

        return $this;
    }

}

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

