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

namespace Google\Ads\GoogleAds\V20\Resources\Campaign;

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

/**
 * Settings for Video campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.resources.Campaign.VideoCampaignSettings</code>
 */
class VideoCampaignSettings extends \Google\Protobuf\Internal\Message
{
    protected $fluidity_control;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdInventoryControl $video_ad_inventory_control
     *           Inventory control for video responsive ads in reach campaigns.
     *     @type \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdFormatControl $video_ad_format_control
     *           Format-restricting control enabling usage of video responsive ads in
     *           format defined Video campaigns (for example, non-skippable).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Inventory control for video responsive ads in reach campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.Campaign.VideoCampaignSettings.VideoAdInventoryControl video_ad_inventory_control = 2;</code>
     * @return \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdInventoryControl|null
     */
    public function getVideoAdInventoryControl()
    {
        return $this->readOneof(2);
    }

    public function hasVideoAdInventoryControl()
    {
        return $this->hasOneof(2);
    }

    /**
     * Inventory control for video responsive ads in reach campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.Campaign.VideoCampaignSettings.VideoAdInventoryControl video_ad_inventory_control = 2;</code>
     * @param \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdInventoryControl $var
     * @return $this
     */
    public function setVideoAdInventoryControl($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdInventoryControl::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Format-restricting control enabling usage of video responsive ads in
     * format defined Video campaigns (for example, non-skippable).
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.Campaign.VideoCampaignSettings.VideoAdFormatControl video_ad_format_control = 3;</code>
     * @return \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdFormatControl|null
     */
    public function getVideoAdFormatControl()
    {
        return $this->readOneof(3);
    }

    public function hasVideoAdFormatControl()
    {
        return $this->hasOneof(3);
    }

    /**
     * Format-restricting control enabling usage of video responsive ads in
     * format defined Video campaigns (for example, non-skippable).
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.Campaign.VideoCampaignSettings.VideoAdFormatControl video_ad_format_control = 3;</code>
     * @param \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdFormatControl $var
     * @return $this
     */
    public function setVideoAdFormatControl($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V20\Resources\Campaign\VideoCampaignSettings\VideoAdFormatControl::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getFluidityControl()
    {
        return $this->whichOneof("fluidity_control");
    }

}

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

