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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * Response message for
 * [AudienceInsightsService.GenerateAudienceDefinition][google.ads.googleads.v24.services.AudienceInsightsService.GenerateAudienceDefinition].
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.GenerateAudienceDefinitionResponse</code>
 */
class GenerateAudienceDefinitionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The attributes that make up the audience definition.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttributeMetadata high_relevance_attributes = 1;</code>
     */
    private $high_relevance_attributes;
    /**
     * Additional attributes that are less relevant but still related to the
     * audience description. Use these attributes to broaden the audience
     * definition to reach more users.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttributeMetadata medium_relevance_attributes = 2;</code>
     */
    private $medium_relevance_attributes;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata[] $high_relevance_attributes
     *           The attributes that make up the audience definition.
     * @type \Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata[] $medium_relevance_attributes
     *           Additional attributes that are less relevant but still related to the
     *           audience description. Use these attributes to broaden the audience
     *           definition to reach more users.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The attributes that make up the audience definition.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttributeMetadata high_relevance_attributes = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata>
     */
    public function getHighRelevanceAttributes()
    {
        return $this->high_relevance_attributes;
    }

    /**
     * The attributes that make up the audience definition.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttributeMetadata high_relevance_attributes = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata[] $var
     * @return $this
     */
    public function setHighRelevanceAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata::class);
        $this->high_relevance_attributes = $arr;

        return $this;
    }

    /**
     * Additional attributes that are less relevant but still related to the
     * audience description. Use these attributes to broaden the audience
     * definition to reach more users.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttributeMetadata medium_relevance_attributes = 2;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata>
     */
    public function getMediumRelevanceAttributes()
    {
        return $this->medium_relevance_attributes;
    }

    /**
     * Additional attributes that are less relevant but still related to the
     * audience description. Use these attributes to broaden the audience
     * definition to reach more users.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AudienceInsightsAttributeMetadata medium_relevance_attributes = 2;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata[] $var
     * @return $this
     */
    public function setMediumRelevanceAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\AudienceInsightsAttributeMetadata::class);
        $this->medium_relevance_attributes = $arr;

        return $this;
    }

}

