<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v20/services/audience_insights_service.proto

namespace Google\Ads\GoogleAds\V20\Services;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Response message for
 * [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v20.services.AudienceInsightsService.ListAudienceInsightsAttributes].
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.services.ListAudienceInsightsAttributesResponse</code>
 */
class ListAudienceInsightsAttributesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The attributes matching the search query.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.common.AudienceInsightsAttributeMetadata attributes = 2;</code>
     */
    private $attributes;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V20\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $attributes
     *           The attributes matching the search query.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The attributes matching the search query.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.common.AudienceInsightsAttributeMetadata attributes = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAttributes()
    {
        return $this->attributes;
    }

    /**
     * The attributes matching the search query.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.common.AudienceInsightsAttributeMetadata attributes = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V20\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V20\Common\AudienceInsightsAttributeMetadata::class);
        $this->attributes = $arr;

        return $this;
    }

}

