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

namespace Google\Cloud\Dataplex\V1;

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

/**
 * Request message for LookupEntryLinks.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.LookupEntryLinksRequest</code>
 */
class LookupEntryLinksRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The project to which the request should be attributed to
     * Format: `projects/{project_id_or_number}/locations/{location_id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $name = '';
    /**
     * Required. The resource name of the referred Entry.
     * Format:
     * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`.
     * Entry Links which references this entry will be returned in the response.
     *
     * Generated from protobuf field <code>string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $entry = '';
    /**
     * Mode of entry reference.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3;</code>
     */
    protected $entry_mode = 0;
    /**
     * Entry link types to filter the response by. If empty, all entry link types
     * will be returned. At most 10 entry link types can be specified.
     *
     * Generated from protobuf field <code>repeated string entry_link_types = 4;</code>
     */
    private $entry_link_types;
    /**
     * Maximum number of EntryLinks to return. The service may return fewer
     * than this value. If unspecified, at most 10 EntryLinks will be returned.
     * The maximum value is 10; values above 10 will be coerced to 10.
     *
     * Generated from protobuf field <code>int32 page_size = 5;</code>
     */
    protected $page_size = 0;
    /**
     * Page token received from a previous `LookupEntryLinks` call. Provide this
     * to retrieve the subsequent page. When paginating, all other parameters that
     * are provided to the `LookupEntryLinks` request must match the call that
     * provided the page token.
     *
     * Generated from protobuf field <code>string page_token = 6;</code>
     */
    protected $page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. The project to which the request should be attributed to
     *           Format: `projects/{project_id_or_number}/locations/{location_id}`.
     *     @type string $entry
     *           Required. The resource name of the referred Entry.
     *           Format:
     *           `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`.
     *           Entry Links which references this entry will be returned in the response.
     *     @type int $entry_mode
     *           Mode of entry reference.
     *     @type string[] $entry_link_types
     *           Entry link types to filter the response by. If empty, all entry link types
     *           will be returned. At most 10 entry link types can be specified.
     *     @type int $page_size
     *           Maximum number of EntryLinks to return. The service may return fewer
     *           than this value. If unspecified, at most 10 EntryLinks will be returned.
     *           The maximum value is 10; values above 10 will be coerced to 10.
     *     @type string $page_token
     *           Page token received from a previous `LookupEntryLinks` call. Provide this
     *           to retrieve the subsequent page. When paginating, all other parameters that
     *           are provided to the `LookupEntryLinks` request must match the call that
     *           provided the page token.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The project to which the request should be attributed to
     * Format: `projects/{project_id_or_number}/locations/{location_id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Required. The project to which the request should be attributed to
     * Format: `projects/{project_id_or_number}/locations/{location_id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Required. The resource name of the referred Entry.
     * Format:
     * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`.
     * Entry Links which references this entry will be returned in the response.
     *
     * Generated from protobuf field <code>string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getEntry()
    {
        return $this->entry;
    }

    /**
     * Required. The resource name of the referred Entry.
     * Format:
     * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`.
     * Entry Links which references this entry will be returned in the response.
     *
     * Generated from protobuf field <code>string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setEntry($var)
    {
        GPBUtil::checkString($var, True);
        $this->entry = $var;

        return $this;
    }

    /**
     * Mode of entry reference.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3;</code>
     * @return int
     */
    public function getEntryMode()
    {
        return $this->entry_mode;
    }

    /**
     * Mode of entry reference.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setEntryMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\LookupEntryLinksRequest\EntryMode::class);
        $this->entry_mode = $var;

        return $this;
    }

    /**
     * Entry link types to filter the response by. If empty, all entry link types
     * will be returned. At most 10 entry link types can be specified.
     *
     * Generated from protobuf field <code>repeated string entry_link_types = 4;</code>
     * @return RepeatedField<string>
     */
    public function getEntryLinkTypes()
    {
        return $this->entry_link_types;
    }

    /**
     * Entry link types to filter the response by. If empty, all entry link types
     * will be returned. At most 10 entry link types can be specified.
     *
     * Generated from protobuf field <code>repeated string entry_link_types = 4;</code>
     * @param string[] $var
     * @return $this
     */
    public function setEntryLinkTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->entry_link_types = $arr;

        return $this;
    }

    /**
     * Maximum number of EntryLinks to return. The service may return fewer
     * than this value. If unspecified, at most 10 EntryLinks will be returned.
     * The maximum value is 10; values above 10 will be coerced to 10.
     *
     * Generated from protobuf field <code>int32 page_size = 5;</code>
     * @return int
     */
    public function getPageSize()
    {
        return $this->page_size;
    }

    /**
     * Maximum number of EntryLinks to return. The service may return fewer
     * than this value. If unspecified, at most 10 EntryLinks will be returned.
     * The maximum value is 10; values above 10 will be coerced to 10.
     *
     * Generated from protobuf field <code>int32 page_size = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setPageSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->page_size = $var;

        return $this;
    }

    /**
     * Page token received from a previous `LookupEntryLinks` call. Provide this
     * to retrieve the subsequent page. When paginating, all other parameters that
     * are provided to the `LookupEntryLinks` request must match the call that
     * provided the page token.
     *
     * Generated from protobuf field <code>string page_token = 6;</code>
     * @return string
     */
    public function getPageToken()
    {
        return $this->page_token;
    }

    /**
     * Page token received from a previous `LookupEntryLinks` call. Provide this
     * to retrieve the subsequent page. When paginating, all other parameters that
     * are provided to the `LookupEntryLinks` request must match the call that
     * provided the page token.
     *
     * Generated from protobuf field <code>string page_token = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->page_token = $var;

        return $this;
    }

}

