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

namespace Google\Cloud\Dataplex\V1\EntryLink;

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

/**
 * Reference to the Entry that is linked through the Entry Link.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.EntryLink.EntryReference</code>
 */
class EntryReference extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. The relative resource name of the referenced Entry,
     * of the form:
     * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $name = '';
    /**
     * Immutable. The path in the Entry that is referenced in the Entry Link.
     * Empty path denotes that the Entry itself is referenced in the Entry
     * Link.
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $path = '';
    /**
     * Required. Immutable. The reference type of the Entry.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. Immutable. The relative resource name of the referenced Entry,
     *           of the form:
     *           `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
     *     @type string $path
     *           Immutable. The path in the Entry that is referenced in the Entry Link.
     *           Empty path denotes that the Entry itself is referenced in the Entry
     *           Link.
     *     @type int $type
     *           Required. Immutable. The reference type of the Entry.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. The relative resource name of the referenced Entry,
     * of the form:
     * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Required. Immutable. The relative resource name of the referenced Entry,
     * of the form:
     * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Immutable. The path in the Entry that is referenced in the Entry Link.
     * Empty path denotes that the Entry itself is referenced in the Entry
     * Link.
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Immutable. The path in the Entry that is referenced in the Entry Link.
     * Empty path denotes that the Entry itself is referenced in the Entry
     * Link.
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

    /**
     * Required. Immutable. The reference type of the Entry.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Required. Immutable. The reference type of the Entry.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryLink\EntryReference\Type::class);
        $this->type = $var;

        return $this;
    }

}


