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

namespace Google\Ads\GoogleAds\V20\Common;

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

/**
 * Display information that encourages the user to take action.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.common.BusinessMessageCallToActionInfo</code>
 */
class BusinessMessageCallToActionInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Pre-defined call to action text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.enums.BusinessMessageCallToActionTypeEnum.BusinessMessageCallToActionType call_to_action_selection = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $call_to_action_selection = 0;
    /**
     * Required. Text providing a clear value proposition of what users expect
     * once they take the action. Examples: 'Message us for a quote', 'Ask our
     * expert team'.
     *
     * Generated from protobuf field <code>string call_to_action_description = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $call_to_action_description = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $call_to_action_selection
     *           Required. Pre-defined call to action text.
     *     @type string $call_to_action_description
     *           Required. Text providing a clear value proposition of what users expect
     *           once they take the action. Examples: 'Message us for a quote', 'Ask our
     *           expert team'.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Pre-defined call to action text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.enums.BusinessMessageCallToActionTypeEnum.BusinessMessageCallToActionType call_to_action_selection = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getCallToActionSelection()
    {
        return $this->call_to_action_selection;
    }

    /**
     * Required. Pre-defined call to action text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.enums.BusinessMessageCallToActionTypeEnum.BusinessMessageCallToActionType call_to_action_selection = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setCallToActionSelection($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V20\Enums\BusinessMessageCallToActionTypeEnum\BusinessMessageCallToActionType::class);
        $this->call_to_action_selection = $var;

        return $this;
    }

    /**
     * Required. Text providing a clear value proposition of what users expect
     * once they take the action. Examples: 'Message us for a quote', 'Ask our
     * expert team'.
     *
     * Generated from protobuf field <code>string call_to_action_description = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCallToActionDescription()
    {
        return $this->call_to_action_description;
    }

    /**
     * Required. Text providing a clear value proposition of what users expect
     * once they take the action. Examples: 'Message us for a quote', 'Ask our
     * expert team'.
     *
     * Generated from protobuf field <code>string call_to_action_description = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCallToActionDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->call_to_action_description = $var;

        return $this;
    }

}

