<?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.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 array<\Google\Ads\GoogleAds\V23\Services\YouTubeCreatorInsights>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Ads\GoogleAds\V23\Services\YouTubeCreatorInsights>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

