<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/services/content_creator_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
 * [ContentCreatorInsightsService.GenerateCreatorInsights][google.ads.googleads.v25.services.ContentCreatorInsightsService.GenerateCreatorInsights].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.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.v25.services.YouTubeCreatorInsights creator_insights = 1;</code>
     */
    private $creator_insights;
    /**
     * Local creators for this topic who have consented to share their location
     * data. Local creators refers to creators that are based in or post from the
     * chosen country and are viewed in the chosen country.
     * Only populated when all of the following are true:
     *   - The creator request uses search_topics.
     *   - The Knowledge Graph entity topic has the
     *   [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS]
     *   capability.
     *   - Supplemental data
     *   [LOCAL_CREATOR_DATA][google.ads.googleads.v25.enums.ContentCreatorInsightsSupplementalDataEnum.ContentCreatorInsightsSupplementalData.LOCAL_CREATOR_DATA]
     *   is requested.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.YouTubeCreatorInsights local_creator_insights = 2;</code>
     */
    private $local_creator_insights;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights[] $creator_insights
     *           A collection of YouTube Creators, each containing a collection of YouTube
     *           Channels maintained by the YouTube Creator.
     *     @type \Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights[] $local_creator_insights
     *           Local creators for this topic who have consented to share their location
     *           data. Local creators refers to creators that are based in or post from the
     *           chosen country and are viewed in the chosen country.
     *           Only populated when all of the following are true:
     *             - The creator request uses search_topics.
     *             - The Knowledge Graph entity topic has the
     *             [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS]
     *             capability.
     *             - Supplemental data
     *             [LOCAL_CREATOR_DATA][google.ads.googleads.v25.enums.ContentCreatorInsightsSupplementalDataEnum.ContentCreatorInsightsSupplementalData.LOCAL_CREATOR_DATA]
     *             is requested.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\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.v25.services.YouTubeCreatorInsights creator_insights = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\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.v25.services.YouTubeCreatorInsights creator_insights = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights[] $var
     * @return $this
     */
    public function setCreatorInsights($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights::class);
        $this->creator_insights = $arr;

        return $this;
    }

    /**
     * Local creators for this topic who have consented to share their location
     * data. Local creators refers to creators that are based in or post from the
     * chosen country and are viewed in the chosen country.
     * Only populated when all of the following are true:
     *   - The creator request uses search_topics.
     *   - The Knowledge Graph entity topic has the
     *   [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS]
     *   capability.
     *   - Supplemental data
     *   [LOCAL_CREATOR_DATA][google.ads.googleads.v25.enums.ContentCreatorInsightsSupplementalDataEnum.ContentCreatorInsightsSupplementalData.LOCAL_CREATOR_DATA]
     *   is requested.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.YouTubeCreatorInsights local_creator_insights = 2;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights>
     */
    public function getLocalCreatorInsights()
    {
        return $this->local_creator_insights;
    }

    /**
     * Local creators for this topic who have consented to share their location
     * data. Local creators refers to creators that are based in or post from the
     * chosen country and are viewed in the chosen country.
     * Only populated when all of the following are true:
     *   - The creator request uses search_topics.
     *   - The Knowledge Graph entity topic has the
     *   [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS]
     *   capability.
     *   - Supplemental data
     *   [LOCAL_CREATOR_DATA][google.ads.googleads.v25.enums.ContentCreatorInsightsSupplementalDataEnum.ContentCreatorInsightsSupplementalData.LOCAL_CREATOR_DATA]
     *   is requested.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.YouTubeCreatorInsights local_creator_insights = 2;</code>
     * @param \Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights[] $var
     * @return $this
     */
    public function setLocalCreatorInsights($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Services\YouTubeCreatorInsights::class);
        $this->local_creator_insights = $arr;

        return $this;
    }

}

