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

namespace Google\Ads\GoogleAds\V23\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.v23.resources.Campaign.VideoCampaignSettings</code>
 */
class VideoCampaignSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Container for video ads sequencing definition.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequence video_ad_sequence = 4;</code>
     */
    protected $video_ad_sequence = null;
    protected $fluidity_control;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequence $video_ad_sequence
     *           Container for video ads sequencing definition.
     *     @type \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdInventoryControl $video_ad_inventory_control
     *           Inventory control for video responsive ads in reach campaigns.
     *     @type \Google\Ads\GoogleAds\V23\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\V23\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Container for video ads sequencing definition.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequence video_ad_sequence = 4;</code>
     * @return \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequence|null
     */
    public function getVideoAdSequence()
    {
        return $this->video_ad_sequence;
    }

    public function hasVideoAdSequence()
    {
        return isset($this->video_ad_sequence);
    }

    public function clearVideoAdSequence()
    {
        unset($this->video_ad_sequence);
    }

    /**
     * Container for video ads sequencing definition.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequence video_ad_sequence = 4;</code>
     * @param \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequence $var
     * @return $this
     */
    public function setVideoAdSequence($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequence::class);
        $this->video_ad_sequence = $var;

        return $this;
    }

    /**
     * Inventory control for video responsive ads in reach campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdInventoryControl video_ad_inventory_control = 2;</code>
     * @return \Google\Ads\GoogleAds\V23\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.v23.resources.Campaign.VideoCampaignSettings.VideoAdInventoryControl video_ad_inventory_control = 2;</code>
     * @param \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdInventoryControl $var
     * @return $this
     */
    public function setVideoAdInventoryControl($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\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.v23.resources.Campaign.VideoCampaignSettings.VideoAdFormatControl video_ad_format_control = 3;</code>
     * @return \Google\Ads\GoogleAds\V23\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.v23.resources.Campaign.VideoCampaignSettings.VideoAdFormatControl video_ad_format_control = 3;</code>
     * @param \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdFormatControl $var
     * @return $this
     */
    public function setVideoAdFormatControl($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\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\V23\Resources\Campaign_VideoCampaignSettings::class);

