<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/services/recommendation_service.proto

namespace Google\Ads\GoogleAds\V24\Services\GenerateRecommendationsRequest;

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

/**
 * Current AssetGroup information of the campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.GenerateRecommendationsRequest.AssetGroupInfo</code>
 */
class AssetGroupInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Current url of the asset group.
     * This field is necessary for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $final_url = null;
    /**
     * Optional. Current headlines of the asset group.
     * This field is optional for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $headline;
    /**
     * Optional. Current descriptions of the asset group.
     * This field is optional for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $description;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $final_url
     *           Required. Current url of the asset group.
     *           This field is necessary for the following recommendation_types if
     *           asset_group_info is set:
     *           CAMPAIGN_BUDGET
     * @type string[] $headline
     *           Optional. Current headlines of the asset group.
     *           This field is optional for the following recommendation_types if
     *           asset_group_info is set:
     *           CAMPAIGN_BUDGET
     * @type string[] $description
     *           Optional. Current descriptions of the asset group.
     *           This field is optional for the following recommendation_types if
     *           asset_group_info is set:
     *           CAMPAIGN_BUDGET
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\RecommendationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Current url of the asset group.
     * This field is necessary for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return string
     */
    public function getFinalUrl()
    {
        return isset($this->final_url) ? $this->final_url : '';
    }

    public function hasFinalUrl()
    {
        return isset($this->final_url);
    }

    public function clearFinalUrl()
    {
        unset($this->final_url);
    }

    /**
     * Required. Current url of the asset group.
     * This field is necessary for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setFinalUrl($var)
    {
        GPBUtil::checkString($var, true);
        $this->final_url = $var;

        return $this;
    }

    /**
     * Optional. Current headlines of the asset group.
     * This field is optional for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return RepeatedField<string>
     */
    public function getHeadline()
    {
        return $this->headline;
    }

    /**
     * Optional. Current headlines of the asset group.
     * This field is optional for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param  string[] $var
     * @return $this
     */
    public function setHeadline($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->headline = $arr;

        return $this;
    }

    /**
     * Optional. Current descriptions of the asset group.
     * This field is optional for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return RepeatedField<string>
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Optional. Current descriptions of the asset group.
     * This field is optional for the following recommendation_types if
     * asset_group_info is set:
     * CAMPAIGN_BUDGET
     *
     * Generated from protobuf field <code>repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param  string[] $var
     * @return $this
     */
    public function setDescription($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->description = $arr;

        return $this;
    }

}

