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

namespace Google\Ads\GoogleAds\V24\Common;

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

/**
 * YouTube Video Asset feature controls.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.common.AdVideoAssetLinkFeatureControl</code>
 */
class AdVideoAssetLinkFeatureControl extends \Google\Protobuf\Internal\Message
{
    /**
     * Defines if YouTube comments should be enabled for the creative
     * using this YouTube video asset served on YouTube Shorts.
     *
     * Generated from protobuf field <code>optional bool allow_youtube_comments = 1;</code>
     */
    protected $allow_youtube_comments = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type bool $allow_youtube_comments
     *           Defines if YouTube comments should be enabled for the creative
     *           using this YouTube video asset served on YouTube Shorts.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Common\AdAsset::initOnce();
        parent::__construct($data);
    }

    /**
     * Defines if YouTube comments should be enabled for the creative
     * using this YouTube video asset served on YouTube Shorts.
     *
     * Generated from protobuf field <code>optional bool allow_youtube_comments = 1;</code>
     *
     * @return bool
     */
    public function getAllowYoutubeComments()
    {
        return isset($this->allow_youtube_comments) ? $this->allow_youtube_comments : false;
    }

    public function hasAllowYoutubeComments()
    {
        return isset($this->allow_youtube_comments);
    }

    public function clearAllowYoutubeComments()
    {
        unset($this->allow_youtube_comments);
    }

    /**
     * Defines if YouTube comments should be enabled for the creative
     * using this YouTube video asset served on YouTube Shorts.
     *
     * Generated from protobuf field <code>optional bool allow_youtube_comments = 1;</code>
     *
     * @param  bool $var
     * @return $this
     */
    public function setAllowYoutubeComments($var)
    {
        GPBUtil::checkBool($var);
        $this->allow_youtube_comments = $var;

        return $this;
    }

}

