<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/services/audience_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
 * [AudienceInsightsService.GenerateAudienceCompositionInsights][google.ads.googleads.v25.services.AudienceInsightsService.GenerateAudienceCompositionInsights].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.GenerateAudienceCompositionInsightsResponse</code>
 */
class GenerateAudienceCompositionInsightsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The contents of the insights report, organized into sections.
     * Each section is associated with one of the AudienceInsightsDimension values
     * in the request. There may be more than one section per dimension.
     * Note: When an
     * [InsightsAudience.user_list][google.ads.googleads.v25.services.InsightsAudience.user_list]
     * is requested or when the request contains the USER_LIST dimension, score is
     * omitted from AudienceCompositionMetrics of the
     * GenerateAudienceCompositionInsightsResponse.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.AudienceCompositionSection sections = 1;</code>
     */
    private $sections;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Services\AudienceCompositionSection[] $sections
     *           The contents of the insights report, organized into sections.
     *           Each section is associated with one of the AudienceInsightsDimension values
     *           in the request. There may be more than one section per dimension.
     *           Note: When an
     *           [InsightsAudience.user_list][google.ads.googleads.v25.services.InsightsAudience.user_list]
     *           is requested or when the request contains the USER_LIST dimension, score is
     *           omitted from AudienceCompositionMetrics of the
     *           GenerateAudienceCompositionInsightsResponse.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The contents of the insights report, organized into sections.
     * Each section is associated with one of the AudienceInsightsDimension values
     * in the request. There may be more than one section per dimension.
     * Note: When an
     * [InsightsAudience.user_list][google.ads.googleads.v25.services.InsightsAudience.user_list]
     * is requested or when the request contains the USER_LIST dimension, score is
     * omitted from AudienceCompositionMetrics of the
     * GenerateAudienceCompositionInsightsResponse.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.AudienceCompositionSection sections = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Services\AudienceCompositionSection>
     */
    public function getSections()
    {
        return $this->sections;
    }

    /**
     * The contents of the insights report, organized into sections.
     * Each section is associated with one of the AudienceInsightsDimension values
     * in the request. There may be more than one section per dimension.
     * Note: When an
     * [InsightsAudience.user_list][google.ads.googleads.v25.services.InsightsAudience.user_list]
     * is requested or when the request contains the USER_LIST dimension, score is
     * omitted from AudienceCompositionMetrics of the
     * GenerateAudienceCompositionInsightsResponse.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.AudienceCompositionSection sections = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Services\AudienceCompositionSection[] $var
     * @return $this
     */
    public function setSections($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Services\AudienceCompositionSection::class);
        $this->sections = $arr;

        return $this;
    }

}

