<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataplex/v1/logs.proto

namespace Google\Cloud\Dataplex\V1\DiscoveryEvent;

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

/**
 * Details about the entity.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails</code>
 */
class EntityDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the entity resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string entity = 1;</code>
     */
    private $entity = '';
    /**
     * The type of the entity resource.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;</code>
     */
    private $type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $entity
     *           The name of the entity resource.
     *           The name is the fully-qualified resource name.
     *     @type int $type
     *           The type of the entity resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the entity resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string entity = 1;</code>
     * @return string
     */
    public function getEntity()
    {
        return $this->entity;
    }

    /**
     * The name of the entity resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string entity = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setEntity($var)
    {
        GPBUtil::checkString($var, True);
        $this->entity = $var;

        return $this;
    }

    /**
     * The type of the entity resource.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * The type of the entity resource.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityType::class);
        $this->type = $var;

        return $this;
    }

}


