<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/services/audience_insights_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
 * [AudienceInsightsService.GenerateTargetingSuggestionMetrics][google.ads.googleads.v25.services.AudienceInsightsService.GenerateTargetingSuggestionMetrics].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.GenerateTargetingSuggestionMetricsResponse</code>
 */
class GenerateTargetingSuggestionMetricsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Suggested targetable audiences. There will be one suggestion for each
     * [GenerateTargetingSuggestionMetricsRequest.audiences][google.ads.googleads.v25.services.GenerateTargetingSuggestionMetricsRequest.audiences]
     * requested, matching the order requested.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.TargetingSuggestionMetrics suggestions = 1;</code>
     */
    private $suggestions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Services\TargetingSuggestionMetrics[] $suggestions
     *           Suggested targetable audiences. There will be one suggestion for each
     *           [GenerateTargetingSuggestionMetricsRequest.audiences][google.ads.googleads.v25.services.GenerateTargetingSuggestionMetricsRequest.audiences]
     *           requested, matching the order requested.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * Suggested targetable audiences. There will be one suggestion for each
     * [GenerateTargetingSuggestionMetricsRequest.audiences][google.ads.googleads.v25.services.GenerateTargetingSuggestionMetricsRequest.audiences]
     * requested, matching the order requested.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.TargetingSuggestionMetrics suggestions = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Services\TargetingSuggestionMetrics>
     */
    public function getSuggestions()
    {
        return $this->suggestions;
    }

    /**
     * Suggested targetable audiences. There will be one suggestion for each
     * [GenerateTargetingSuggestionMetricsRequest.audiences][google.ads.googleads.v25.services.GenerateTargetingSuggestionMetricsRequest.audiences]
     * requested, matching the order requested.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.TargetingSuggestionMetrics suggestions = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Services\TargetingSuggestionMetrics[] $var
     * @return $this
     */
    public function setSuggestions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Services\TargetingSuggestionMetrics::class);
        $this->suggestions = $arr;

        return $this;
    }

}

