<?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.GenerateAudienceOverlapInsights][google.ads.googleads.v23.services.AudienceInsightsService.GenerateAudienceOverlapInsights].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.GenerateAudienceOverlapInsightsResponse</code>
 */
class GenerateAudienceOverlapInsightsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Metadata for the primary attribute, including potential YouTube reach.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata primary_attribute_metadata = 3;</code>
     */
    protected $primary_attribute_metadata = null;
    /**
     * Lists of attributes and their overlap with the primary attribute, one list
     * per requested dimension.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.DimensionOverlapResult dimension_results = 2;</code>
     */
    private $dimension_results;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata $primary_attribute_metadata
     *           Metadata for the primary attribute, including potential YouTube reach.
     *     @type array<\Google\Ads\GoogleAds\V23\Services\DimensionOverlapResult>|\Google\Protobuf\Internal\RepeatedField $dimension_results
     *           Lists of attributes and their overlap with the primary attribute, one list
     *           per requested dimension.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\AudienceInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * Metadata for the primary attribute, including potential YouTube reach.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata primary_attribute_metadata = 3;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata|null
     */
    public function getPrimaryAttributeMetadata()
    {
        return $this->primary_attribute_metadata;
    }

    public function hasPrimaryAttributeMetadata()
    {
        return isset($this->primary_attribute_metadata);
    }

    public function clearPrimaryAttributeMetadata()
    {
        unset($this->primary_attribute_metadata);
    }

    /**
     * Metadata for the primary attribute, including potential YouTube reach.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata primary_attribute_metadata = 3;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata $var
     * @return $this
     */
    public function setPrimaryAttributeMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata::class);
        $this->primary_attribute_metadata = $var;

        return $this;
    }

    /**
     * Lists of attributes and their overlap with the primary attribute, one list
     * per requested dimension.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.DimensionOverlapResult dimension_results = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDimensionResults()
    {
        return $this->dimension_results;
    }

    /**
     * Lists of attributes and their overlap with the primary attribute, one list
     * per requested dimension.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.DimensionOverlapResult dimension_results = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Services\DimensionOverlapResult>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDimensionResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Services\DimensionOverlapResult::class);
        $this->dimension_results = $arr;

        return $this;
    }

}

