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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * A list of AudienceInsightsAttributes.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.InsightsAudienceAttributeGroup</code>
 */
class InsightsAudienceAttributeGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A collection of audience attributes to be combined with logical
     * OR. Attributes need not all be the same dimension.  Only Knowledge Graph
     * entities, Product & Service Categories, and Affinity and In-Market
     * audiences are supported in this context.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttribute attributes = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $attributes;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttribute[] $attributes
     *           Required. A collection of audience attributes to be combined with logical
     *           OR. Attributes need not all be the same dimension.  Only Knowledge Graph
     *           entities, Product & Service Categories, and Affinity and In-Market
     *           audiences are supported in this context.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A collection of audience attributes to be combined with logical
     * OR. Attributes need not all be the same dimension.  Only Knowledge Graph
     * entities, Product & Service Categories, and Affinity and In-Market
     * audiences are supported in this context.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttribute attributes = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttribute>
     */
    public function getAttributes()
    {
        return $this->attributes;
    }

    /**
     * Required. A collection of audience attributes to be combined with logical
     * OR. Attributes need not all be the same dimension.  Only Knowledge Graph
     * entities, Product & Service Categories, and Affinity and In-Market
     * audiences are supported in this context.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttribute attributes = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttribute[] $var
     * @return $this
     */
    public function setAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttribute::class);
        $this->attributes = $arr;

        return $this;
    }

}

