<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Response message for
 * [ContentCreatorInsightsService.GenerateCreatorInsights][google.ads.googleads.v23.services.ContentCreatorInsightsService.GenerateCreatorInsights].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.GenerateCreatorInsightsResponse</code>
 */
class GenerateCreatorInsightsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * A collection of YouTube Creators, each containing a collection of YouTube
     * Channels maintained by the YouTube Creator.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.YouTubeCreatorInsights creator_insights = 1;</code>
     */
    private $creator_insights;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V23\Services\YouTubeCreatorInsights[] $creator_insights
     *           A collection of YouTube Creators, each containing a collection of YouTube
     *           Channels maintained by the YouTube Creator.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * A collection of YouTube Creators, each containing a collection of YouTube
     * Channels maintained by the YouTube Creator.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.YouTubeCreatorInsights creator_insights = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V23\Services\YouTubeCreatorInsights>
     */
    public function getCreatorInsights()
    {
        return $this->creator_insights;
    }

    /**
     * A collection of YouTube Creators, each containing a collection of YouTube
     * Channels maintained by the YouTube Creator.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.YouTubeCreatorInsights creator_insights = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Services\YouTubeCreatorInsights[] $var
     * @return $this
     */
    public function setCreatorInsights($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Services\YouTubeCreatorInsights::class);
        $this->creator_insights = $arr;

        return $this;
    }

}

