<?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;

/**
 * A Knowledge Graph entity, represented by its machine id.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.AudienceInsightsEntity</code>
 */
class AudienceInsightsEntity extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The machine ID (mid) of the Knowledge Graph entity.
     *
     * Generated from protobuf field <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $knowledge_graph_machine_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $knowledge_graph_machine_id
     *           Required. The machine ID (mid) of the Knowledge Graph entity.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttribute::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The machine ID (mid) of the Knowledge Graph entity.
     *
     * Generated from protobuf field <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getKnowledgeGraphMachineId()
    {
        return $this->knowledge_graph_machine_id;
    }

    /**
     * Required. The machine ID (mid) of the Knowledge Graph entity.
     *
     * Generated from protobuf field <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setKnowledgeGraphMachineId($var)
    {
        GPBUtil::checkString($var, True);
        $this->knowledge_graph_machine_id = $var;

        return $this;
    }

}

