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

namespace Google\Ads\GoogleAds\V16\Common;

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

/**
 * Representation of video TrueView in-stream ad format (ad shown during video
 * playback, often at beginning, which displays a skip button a few seconds into
 * the video).
 *
 * Generated from protobuf message <code>google.ads.googleads.v16.common.VideoTrueViewInStreamAdInfo</code>
 */
class VideoTrueViewInStreamAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Label on the CTA (call-to-action) button taking the user to the video ad's
     * final URL.
     * Required for TrueView for action campaigns, optional otherwise.
     *
     * Generated from protobuf field <code>string action_button_label = 4;</code>
     */
    protected $action_button_label = '';
    /**
     * Additional text displayed with the CTA (call-to-action) button to give
     * context and encourage clicking on the button.
     *
     * Generated from protobuf field <code>string action_headline = 5;</code>
     */
    protected $action_headline = '';
    /**
     * The image assets of the companion banner used with the ad.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v16.common.AdImageAsset companion_banner = 7;</code>
     */
    protected $companion_banner = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $action_button_label
     *           Label on the CTA (call-to-action) button taking the user to the video ad's
     *           final URL.
     *           Required for TrueView for action campaigns, optional otherwise.
     *     @type string $action_headline
     *           Additional text displayed with the CTA (call-to-action) button to give
     *           context and encourage clicking on the button.
     *     @type \Google\Ads\GoogleAds\V16\Common\AdImageAsset $companion_banner
     *           The image assets of the companion banner used with the ad.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V16\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * Label on the CTA (call-to-action) button taking the user to the video ad's
     * final URL.
     * Required for TrueView for action campaigns, optional otherwise.
     *
     * Generated from protobuf field <code>string action_button_label = 4;</code>
     * @return string
     */
    public function getActionButtonLabel()
    {
        return $this->action_button_label;
    }

    /**
     * Label on the CTA (call-to-action) button taking the user to the video ad's
     * final URL.
     * Required for TrueView for action campaigns, optional otherwise.
     *
     * Generated from protobuf field <code>string action_button_label = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setActionButtonLabel($var)
    {
        GPBUtil::checkString($var, True);
        $this->action_button_label = $var;

        return $this;
    }

    /**
     * Additional text displayed with the CTA (call-to-action) button to give
     * context and encourage clicking on the button.
     *
     * Generated from protobuf field <code>string action_headline = 5;</code>
     * @return string
     */
    public function getActionHeadline()
    {
        return $this->action_headline;
    }

    /**
     * Additional text displayed with the CTA (call-to-action) button to give
     * context and encourage clicking on the button.
     *
     * Generated from protobuf field <code>string action_headline = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setActionHeadline($var)
    {
        GPBUtil::checkString($var, True);
        $this->action_headline = $var;

        return $this;
    }

    /**
     * The image assets of the companion banner used with the ad.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v16.common.AdImageAsset companion_banner = 7;</code>
     * @return \Google\Ads\GoogleAds\V16\Common\AdImageAsset|null
     */
    public function getCompanionBanner()
    {
        return $this->companion_banner;
    }

    public function hasCompanionBanner()
    {
        return isset($this->companion_banner);
    }

    public function clearCompanionBanner()
    {
        unset($this->companion_banner);
    }

    /**
     * The image assets of the companion banner used with the ad.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v16.common.AdImageAsset companion_banner = 7;</code>
     * @param \Google\Ads\GoogleAds\V16\Common\AdImageAsset $var
     * @return $this
     */
    public function setCompanionBanner($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V16\Common\AdImageAsset::class);
        $this->companion_banner = $var;

        return $this;
    }

}

