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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * Response message for
 * [RecommendationService.GenerateRecommendations][google.ads.googleads.v25.services.RecommendationService.GenerateRecommendations].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.GenerateRecommendationsResponse</code>
 */
class GenerateRecommendationsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of generated recommendations from the passed in set of requested
     * recommendation_types. If there isn't sufficient data to generate a
     * recommendation for the requested recommendation_types, the result set won't
     * contain a recommendation for that type.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.Recommendation recommendations = 1;</code>
     */
    private $recommendations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Resources\Recommendation[] $recommendations
     *           List of generated recommendations from the passed in set of requested
     *           recommendation_types. If there isn't sufficient data to generate a
     *           recommendation for the requested recommendation_types, the result set won't
     *           contain a recommendation for that type.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\RecommendationService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of generated recommendations from the passed in set of requested
     * recommendation_types. If there isn't sufficient data to generate a
     * recommendation for the requested recommendation_types, the result set won't
     * contain a recommendation for that type.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.Recommendation recommendations = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Resources\Recommendation>
     */
    public function getRecommendations()
    {
        return $this->recommendations;
    }

    /**
     * List of generated recommendations from the passed in set of requested
     * recommendation_types. If there isn't sufficient data to generate a
     * recommendation for the requested recommendation_types, the result set won't
     * contain a recommendation for that type.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.Recommendation recommendations = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\Recommendation[] $var
     * @return $this
     */
    public function setRecommendations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Resources\Recommendation::class);
        $this->recommendations = $arr;

        return $this;
    }

}

