<?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;

/**
 * A collection of content topics to return creator and trend information for.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.SearchTopics</code>
 */
class SearchTopics extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A list of knowledge graph entities to retrieve creator and trend
     * information for. Supported entities are tagged with
     * [CONTENT_TRENDING_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CONTENT_TRENDING_INSIGHTS]
     * or
     * [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS].
     * Use
     * [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v25.services.AudienceInsightsService.ListAudienceInsightsAttributes]
     * to get the list of supported entities.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AudienceInsightsEntity entities = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $entities;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Common\AudienceInsightsEntity[] $entities
     *           Required. A list of knowledge graph entities to retrieve creator and trend
     *           information for. Supported entities are tagged with
     *           [CONTENT_TRENDING_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CONTENT_TRENDING_INSIGHTS]
     *           or
     *           [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS].
     *           Use
     *           [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v25.services.AudienceInsightsService.ListAudienceInsightsAttributes]
     *           to get the list of supported entities.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A list of knowledge graph entities to retrieve creator and trend
     * information for. Supported entities are tagged with
     * [CONTENT_TRENDING_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CONTENT_TRENDING_INSIGHTS]
     * or
     * [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS].
     * Use
     * [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v25.services.AudienceInsightsService.ListAudienceInsightsAttributes]
     * to get the list of supported entities.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AudienceInsightsEntity entities = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AudienceInsightsEntity>
     */
    public function getEntities()
    {
        return $this->entities;
    }

    /**
     * Required. A list of knowledge graph entities to retrieve creator and trend
     * information for. Supported entities are tagged with
     * [CONTENT_TRENDING_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CONTENT_TRENDING_INSIGHTS]
     * or
     * [CREATOR_TOPIC_INSIGHTS][google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities.CREATOR_TOPIC_INSIGHTS].
     * Use
     * [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v25.services.AudienceInsightsService.ListAudienceInsightsAttributes]
     * to get the list of supported entities.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AudienceInsightsEntity entities = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AudienceInsightsEntity[] $var
     * @return $this
     */
    public function setEntities($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AudienceInsightsEntity::class);
        $this->entities = $arr;

        return $this;
    }

}

