<?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 inventory preferences.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.AdVideoAssetInventoryPreferences</code>
 */
class AdVideoAssetInventoryPreferences extends \Google\Protobuf\Internal\Message
{
    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve In Feed.
     *
     * Generated from protobuf field <code>optional bool in_feed_preference = 1;</code>
     */
    protected $in_feed_preference = null;
    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve In Stream.
     *
     * Generated from protobuf field <code>optional bool in_stream_preference = 2;</code>
     */
    protected $in_stream_preference = null;
    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve on YouTube Shorts.
     *
     * Generated from protobuf field <code>optional bool shorts_preference = 3;</code>
     */
    protected $shorts_preference = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $in_feed_preference
     *           When true, YouTube Video Asset with this inventory preference will be
     *           preferred when choosing a video to serve In Feed.
     *     @type bool $in_stream_preference
     *           When true, YouTube Video Asset with this inventory preference will be
     *           preferred when choosing a video to serve In Stream.
     *     @type bool $shorts_preference
     *           When true, YouTube Video Asset with this inventory preference will be
     *           preferred when choosing a video to serve on YouTube Shorts.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\AdAsset::initOnce();
        parent::__construct($data);
    }

    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve In Feed.
     *
     * Generated from protobuf field <code>optional bool in_feed_preference = 1;</code>
     * @return bool
     */
    public function getInFeedPreference()
    {
        return isset($this->in_feed_preference) ? $this->in_feed_preference : false;
    }

    public function hasInFeedPreference()
    {
        return isset($this->in_feed_preference);
    }

    public function clearInFeedPreference()
    {
        unset($this->in_feed_preference);
    }

    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve In Feed.
     *
     * Generated from protobuf field <code>optional bool in_feed_preference = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setInFeedPreference($var)
    {
        GPBUtil::checkBool($var);
        $this->in_feed_preference = $var;

        return $this;
    }

    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve In Stream.
     *
     * Generated from protobuf field <code>optional bool in_stream_preference = 2;</code>
     * @return bool
     */
    public function getInStreamPreference()
    {
        return isset($this->in_stream_preference) ? $this->in_stream_preference : false;
    }

    public function hasInStreamPreference()
    {
        return isset($this->in_stream_preference);
    }

    public function clearInStreamPreference()
    {
        unset($this->in_stream_preference);
    }

    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve In Stream.
     *
     * Generated from protobuf field <code>optional bool in_stream_preference = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setInStreamPreference($var)
    {
        GPBUtil::checkBool($var);
        $this->in_stream_preference = $var;

        return $this;
    }

    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve on YouTube Shorts.
     *
     * Generated from protobuf field <code>optional bool shorts_preference = 3;</code>
     * @return bool
     */
    public function getShortsPreference()
    {
        return isset($this->shorts_preference) ? $this->shorts_preference : false;
    }

    public function hasShortsPreference()
    {
        return isset($this->shorts_preference);
    }

    public function clearShortsPreference()
    {
        unset($this->shorts_preference);
    }

    /**
     * When true, YouTube Video Asset with this inventory preference will be
     * preferred when choosing a video to serve on YouTube Shorts.
     *
     * Generated from protobuf field <code>optional bool shorts_preference = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setShortsPreference($var)
    {
        GPBUtil::checkBool($var);
        $this->shorts_preference = $var;

        return $this;
    }

}

