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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * The request message for
 * [MatchService.ReadIndexDatapoints][google.cloud.aiplatform.v1.MatchService.ReadIndexDatapoints].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ReadIndexDatapointsRequest</code>
 */
class ReadIndexDatapointsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the index endpoint.
     * Format:
     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *
     * Generated from protobuf field <code>string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $index_endpoint = '';
    /**
     * The ID of the DeployedIndex that will serve the request.
     *
     * Generated from protobuf field <code>string deployed_index_id = 2;</code>
     */
    protected $deployed_index_id = '';
    /**
     * IDs of the datapoints to be searched for.
     *
     * Generated from protobuf field <code>repeated string ids = 3;</code>
     */
    private $ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $index_endpoint
     *           Required. The name of the index endpoint.
     *           Format:
     *           `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *     @type string $deployed_index_id
     *           The ID of the DeployedIndex that will serve the request.
     *     @type string[] $ids
     *           IDs of the datapoints to be searched for.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\MatchService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the index endpoint.
     * Format:
     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *
     * Generated from protobuf field <code>string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getIndexEndpoint()
    {
        return $this->index_endpoint;
    }

    /**
     * Required. The name of the index endpoint.
     * Format:
     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *
     * Generated from protobuf field <code>string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setIndexEndpoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->index_endpoint = $var;

        return $this;
    }

    /**
     * The ID of the DeployedIndex that will serve the request.
     *
     * Generated from protobuf field <code>string deployed_index_id = 2;</code>
     * @return string
     */
    public function getDeployedIndexId()
    {
        return $this->deployed_index_id;
    }

    /**
     * The ID of the DeployedIndex that will serve the request.
     *
     * Generated from protobuf field <code>string deployed_index_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDeployedIndexId($var)
    {
        GPBUtil::checkString($var, True);
        $this->deployed_index_id = $var;

        return $this;
    }

    /**
     * IDs of the datapoints to be searched for.
     *
     * Generated from protobuf field <code>repeated string ids = 3;</code>
     * @return RepeatedField<string>
     */
    public function getIds()
    {
        return $this->ids;
    }

    /**
     * IDs of the datapoints to be searched for.
     *
     * Generated from protobuf field <code>repeated string ids = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->ids = $arr;

        return $this;
    }

}

