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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Request message for
 * [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints]
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RemoveDatapointsRequest</code>
 */
class RemoveDatapointsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the Index resource to be updated.
     * Format:
     * `projects/{project}/locations/{location}/indexes/{index}`
     *
     * Generated from protobuf field <code>string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $index = '';
    /**
     * A list of datapoint ids to be deleted.
     *
     * Generated from protobuf field <code>repeated string datapoint_ids = 2;</code>
     */
    private $datapoint_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $index
     *           Required. The name of the Index resource to be updated.
     *           Format:
     *           `projects/{project}/locations/{location}/indexes/{index}`
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $datapoint_ids
     *           A list of datapoint ids to be deleted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexService::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * A list of datapoint ids to be deleted.
     *
     * Generated from protobuf field <code>repeated string datapoint_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDatapointIds()
    {
        return $this->datapoint_ids;
    }

    /**
     * A list of datapoint ids to be deleted.
     *
     * Generated from protobuf field <code>repeated string datapoint_ids = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDatapointIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->datapoint_ids = $arr;

        return $this;
    }

}

