<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/common/audience_insights_attribute.proto

namespace Google\Ads\GoogleAds\V24\Common;

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.v24.common.InsightsAudienceAttributeGroup</code>
 */
class InsightsAudienceAttributeGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A collection of audience attributes combined with logical OR.
     * Attributes need not all be the same dimension. Only Knowledge Graph
     * entities, Product & Service Categories, and user interests are supported in
     * this context.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $attributes;

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

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

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

        return $this;
    }

}

