<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Response message for
 * [AudienceInsightsService.GenerateAudienceDefinition][google.ads.googleads.v23.services.AudienceInsightsService.GenerateAudienceDefinition].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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.v23.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.v23.common.AudienceInsightsAttributeMetadata medium_relevance_attributes = 2;</code>
     */
    private $medium_relevance_attributes;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $high_relevance_attributes
     *           The attributes that make up the audience definition.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $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\V23\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The attributes that make up the audience definition.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata high_relevance_attributes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    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.v23.common.AudienceInsightsAttributeMetadata high_relevance_attributes = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setHighRelevanceAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\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.v23.common.AudienceInsightsAttributeMetadata medium_relevance_attributes = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    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.v23.common.AudienceInsightsAttributeMetadata medium_relevance_attributes = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMediumRelevanceAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata::class);
        $this->medium_relevance_attributes = $arr;

        return $this;
    }

}

