<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * 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;
    /**
     * Ad category self-disclosure for campaigns with the FIXED_CPM or
     * FIXED_SHARE_OF_VOICE bidding strategies.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.ReservationAdCategorySelfDisclosure reservation_ad_category_self_disclosure = 5;</code>
     */
    protected $reservation_ad_category_self_disclosure = null;
    /**
     * Output only. Booking information for campaigns with the FIXED_CPM or
     * FIXED_SHARE_OF_VOICE bidding strategies.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.BookingDetails booking_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $booking_details = 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\ReservationAdCategorySelfDisclosure $reservation_ad_category_self_disclosure
     *           Ad category self-disclosure for campaigns with the FIXED_CPM or
     *           FIXED_SHARE_OF_VOICE bidding strategies.
     * @type \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\BookingDetails $booking_details
     *           Output only. Booking information for campaigns with the FIXED_CPM or
     *           FIXED_SHARE_OF_VOICE bidding strategies.
     * @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;
    }

    /**
     * Ad category self-disclosure for campaigns with the FIXED_CPM or
     * FIXED_SHARE_OF_VOICE bidding strategies.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.ReservationAdCategorySelfDisclosure reservation_ad_category_self_disclosure = 5;</code>
     *
     * @return \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\ReservationAdCategorySelfDisclosure|null
     */
    public function getReservationAdCategorySelfDisclosure()
    {
        return $this->reservation_ad_category_self_disclosure;
    }

    public function hasReservationAdCategorySelfDisclosure()
    {
        return isset($this->reservation_ad_category_self_disclosure);
    }

    public function clearReservationAdCategorySelfDisclosure()
    {
        unset($this->reservation_ad_category_self_disclosure);
    }

    /**
     * Ad category self-disclosure for campaigns with the FIXED_CPM or
     * FIXED_SHARE_OF_VOICE bidding strategies.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.ReservationAdCategorySelfDisclosure reservation_ad_category_self_disclosure = 5;</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\ReservationAdCategorySelfDisclosure $var
     * @return $this
     */
    public function setReservationAdCategorySelfDisclosure($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\ReservationAdCategorySelfDisclosure::class);
        $this->reservation_ad_category_self_disclosure = $var;

        return $this;
    }

    /**
     * Output only. Booking information for campaigns with the FIXED_CPM or
     * FIXED_SHARE_OF_VOICE bidding strategies.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.BookingDetails booking_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\BookingDetails|null
     */
    public function getBookingDetails()
    {
        return $this->booking_details;
    }

    public function hasBookingDetails()
    {
        return isset($this->booking_details);
    }

    public function clearBookingDetails()
    {
        unset($this->booking_details);
    }

    /**
     * Output only. Booking information for campaigns with the FIXED_CPM or
     * FIXED_SHARE_OF_VOICE bidding strategies.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.BookingDetails booking_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\BookingDetails $var
     * @return $this
     */
    public function setBookingDetails($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\BookingDetails::class);
        $this->booking_details = $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");
    }

}

