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

namespace Google\Ads\GoogleAds\V20\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.v20.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.v20.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;</code>
     */
    private $entity_capabilities;

    /**
     * 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][].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Common\AudienceInsightsAttribute::initOnce();
        parent::__construct($data);
    }

    /**
     * The capabilities of the entity used in [ContentCreatorInsightsService][].
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.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.v20.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\V20\Enums\InsightsKnowledgeGraphEntityCapabilitiesEnum\InsightsKnowledgeGraphEntityCapabilities::class);
        $this->entity_capabilities = $arr;

        return $this;
    }

}

