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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Metadata associated with a Knowledge Graph Entity attribute.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.KnowledgeGraphAttributeMetadata</code>
 */
class KnowledgeGraphAttributeMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The capabilities of the entity used in [ContentCreatorInsightsService][].
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;</code>
     */
    private $entity_capabilities;
    /**
     * A list of CATEGORY attributes related to this entity.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;</code>
     */
    private $related_categories;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $entity_capabilities
     *           The capabilities of the entity used in [ContentCreatorInsightsService][].
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $related_categories
     *           A list of CATEGORY attributes related to this entity.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttribute::initOnce();
        parent::__construct($data);
    }

    /**
     * The capabilities of the entity used in [ContentCreatorInsightsService][].
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEntityCapabilities()
    {
        return $this->entity_capabilities;
    }

    /**
     * The capabilities of the entity used in [ContentCreatorInsightsService][].
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEntityCapabilities($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V23\Enums\InsightsKnowledgeGraphEntityCapabilitiesEnum\InsightsKnowledgeGraphEntityCapabilities::class);
        $this->entity_capabilities = $arr;

        return $this;
    }

    /**
     * A list of CATEGORY attributes related to this entity.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRelatedCategories()
    {
        return $this->related_categories;
    }

    /**
     * A list of CATEGORY attributes related to this entity.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRelatedCategories($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttributeMetadata::class);
        $this->related_categories = $arr;

        return $this;
    }

}

