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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Response message for
 * [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.DeployIndexResponse</code>
 */
class DeployIndexResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The DeployedIndex that had been deployed in the IndexEndpoint.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1;</code>
     */
    private $deployed_index = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\DeployedIndex $deployed_index
     *           The DeployedIndex that had been deployed in the IndexEndpoint.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce();
        parent::__construct($data);
    }

    /**
     * The DeployedIndex that had been deployed in the IndexEndpoint.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1;</code>
     * @return \Google\Cloud\AIPlatform\V1\DeployedIndex|null
     */
    public function getDeployedIndex()
    {
        return $this->deployed_index;
    }

    public function hasDeployedIndex()
    {
        return isset($this->deployed_index);
    }

    public function clearDeployedIndex()
    {
        unset($this->deployed_index);
    }

    /**
     * The DeployedIndex that had been deployed in the IndexEndpoint.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1;</code>
     * @param \Google\Cloud\AIPlatform\V1\DeployedIndex $var
     * @return $this
     */
    public function setDeployedIndex($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedIndex::class);
        $this->deployed_index = $var;

        return $this;
    }

}

