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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Response message for
 * [ContentCreatorInsightsService.GenerateTrendingInsights][google.ads.googleads.v23.services.ContentCreatorInsightsService.GenerateTrendingInsights].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.GenerateTrendingInsightsResponse</code>
 */
class GenerateTrendingInsightsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of trending insights for the given criteria.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.TrendInsight trend_insights = 1;</code>
     */
    private $trend_insights;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V23\Services\TrendInsight>|\Google\Protobuf\Internal\RepeatedField $trend_insights
     *           The list of trending insights for the given criteria.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of trending insights for the given criteria.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.TrendInsight trend_insights = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTrendInsights()
    {
        return $this->trend_insights;
    }

    /**
     * The list of trending insights for the given criteria.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.TrendInsight trend_insights = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Services\TrendInsight>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTrendInsights($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Services\TrendInsight::class);
        $this->trend_insights = $arr;

        return $this;
    }

}

