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

namespace Google\Ads\GoogleAds\V11\Common;

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

/**
 * A Discovery Carousel Card asset.
 *
 * Generated from protobuf message <code>google.ads.googleads.v11.common.DiscoveryCarouselCardAsset</code>
 */
class DiscoveryCarouselCardAsset extends \Google\Protobuf\Internal\Message
{
    /**
     * Asset resource name of the associated 1.91:1 marketing image. This and/or
     * square marketing image asset is required.
     *
     * Generated from protobuf field <code>string marketing_image_asset = 1;</code>
     */
    protected $marketing_image_asset = '';
    /**
     * Asset resource name of the associated square marketing image. This
     * and/or a marketing image asset is required.
     *
     * Generated from protobuf field <code>string square_marketing_image_asset = 2;</code>
     */
    protected $square_marketing_image_asset = '';
    /**
     * Asset resource name of the associated 4:5 portrait marketing image.
     *
     * Generated from protobuf field <code>string portrait_marketing_image_asset = 3;</code>
     */
    protected $portrait_marketing_image_asset = '';
    /**
     * Required. Headline of the carousel card.
     *
     * Generated from protobuf field <code>string headline = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $headline = '';
    /**
     * Call to action text.
     *
     * Generated from protobuf field <code>string call_to_action_text = 5;</code>
     */
    protected $call_to_action_text = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $marketing_image_asset
     *           Asset resource name of the associated 1.91:1 marketing image. This and/or
     *           square marketing image asset is required.
     *     @type string $square_marketing_image_asset
     *           Asset resource name of the associated square marketing image. This
     *           and/or a marketing image asset is required.
     *     @type string $portrait_marketing_image_asset
     *           Asset resource name of the associated 4:5 portrait marketing image.
     *     @type string $headline
     *           Required. Headline of the carousel card.
     *     @type string $call_to_action_text
     *           Call to action text.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V11\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Asset resource name of the associated 1.91:1 marketing image. This and/or
     * square marketing image asset is required.
     *
     * Generated from protobuf field <code>string marketing_image_asset = 1;</code>
     * @return string
     */
    public function getMarketingImageAsset()
    {
        return $this->marketing_image_asset;
    }

    /**
     * Asset resource name of the associated 1.91:1 marketing image. This and/or
     * square marketing image asset is required.
     *
     * Generated from protobuf field <code>string marketing_image_asset = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setMarketingImageAsset($var)
    {
        GPBUtil::checkString($var, True);
        $this->marketing_image_asset = $var;

        return $this;
    }

    /**
     * Asset resource name of the associated square marketing image. This
     * and/or a marketing image asset is required.
     *
     * Generated from protobuf field <code>string square_marketing_image_asset = 2;</code>
     * @return string
     */
    public function getSquareMarketingImageAsset()
    {
        return $this->square_marketing_image_asset;
    }

    /**
     * Asset resource name of the associated square marketing image. This
     * and/or a marketing image asset is required.
     *
     * Generated from protobuf field <code>string square_marketing_image_asset = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSquareMarketingImageAsset($var)
    {
        GPBUtil::checkString($var, True);
        $this->square_marketing_image_asset = $var;

        return $this;
    }

    /**
     * Asset resource name of the associated 4:5 portrait marketing image.
     *
     * Generated from protobuf field <code>string portrait_marketing_image_asset = 3;</code>
     * @return string
     */
    public function getPortraitMarketingImageAsset()
    {
        return $this->portrait_marketing_image_asset;
    }

    /**
     * Asset resource name of the associated 4:5 portrait marketing image.
     *
     * Generated from protobuf field <code>string portrait_marketing_image_asset = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPortraitMarketingImageAsset($var)
    {
        GPBUtil::checkString($var, True);
        $this->portrait_marketing_image_asset = $var;

        return $this;
    }

    /**
     * Required. Headline of the carousel card.
     *
     * Generated from protobuf field <code>string headline = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getHeadline()
    {
        return $this->headline;
    }

    /**
     * Required. Headline of the carousel card.
     *
     * Generated from protobuf field <code>string headline = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setHeadline($var)
    {
        GPBUtil::checkString($var, True);
        $this->headline = $var;

        return $this;
    }

    /**
     * Call to action text.
     *
     * Generated from protobuf field <code>string call_to_action_text = 5;</code>
     * @return string
     */
    public function getCallToActionText()
    {
        return $this->call_to_action_text;
    }

    /**
     * Call to action text.
     *
     * Generated from protobuf field <code>string call_to_action_text = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setCallToActionText($var)
    {
        GPBUtil::checkString($var, True);
        $this->call_to_action_text = $var;

        return $this;
    }

}

