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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * Response message for
 * [ContentCreatorInsightsService.GenerateTrendingInsights][google.ads.googleads.v24.services.ContentCreatorInsightsService.GenerateTrendingInsights].
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.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.v24.services.TrendInsight trend_insights = 1;</code>
     */
    private $trend_insights;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Services\TrendInsight[] $trend_insights
     *           The list of trending insights for the given criteria.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

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

        return $this;
    }

}

