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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * YouTube Video Asset feature controls.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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\V23\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;
    }

}

