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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * Metadata associated with a Knowledge Graph Entity attribute.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.KnowledgeGraphAttributeMetadata</code>
 */
class KnowledgeGraphAttributeMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The capabilities of the entity used in
     * [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.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.v25.common.AudienceInsightsAttributeMetadata related_categories = 2;</code>
     */
    private $related_categories;

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

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

    /**
     * The capabilities of the entity used in
     * [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;</code>
     * @param int[] $var
     * @return $this
     */
    public function setEntityCapabilities($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V25\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.v25.common.AudienceInsightsAttributeMetadata related_categories = 2;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata>
     */
    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.v25.common.AudienceInsightsAttributeMetadata related_categories = 2;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata[] $var
     * @return $this
     */
    public function setRelatedCategories($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata::class);
        $this->related_categories = $arr;

        return $this;
    }

}

