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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Response message for
 * [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.AskContextsResponse</code>
 */
class AskContextsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The Retrieval Response.
     *
     * Generated from protobuf field <code>string response = 1;</code>
     */
    protected $response = '';
    /**
     * The contexts of the query.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagContexts contexts = 2;</code>
     */
    protected $contexts = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $response
     *           The Retrieval Response.
     *     @type \Google\Cloud\AIPlatform\V1\RagContexts $contexts
     *           The contexts of the query.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagService::initOnce();
        parent::__construct($data);
    }

    /**
     * The Retrieval Response.
     *
     * Generated from protobuf field <code>string response = 1;</code>
     * @return string
     */
    public function getResponse()
    {
        return $this->response;
    }

    /**
     * The Retrieval Response.
     *
     * Generated from protobuf field <code>string response = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setResponse($var)
    {
        GPBUtil::checkString($var, True);
        $this->response = $var;

        return $this;
    }

    /**
     * The contexts of the query.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagContexts contexts = 2;</code>
     * @return \Google\Cloud\AIPlatform\V1\RagContexts|null
     */
    public function getContexts()
    {
        return $this->contexts;
    }

    public function hasContexts()
    {
        return isset($this->contexts);
    }

    public function clearContexts()
    {
        unset($this->contexts);
    }

    /**
     * The contexts of the query.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagContexts contexts = 2;</code>
     * @param \Google\Cloud\AIPlatform\V1\RagContexts $var
     * @return $this
     */
    public function setContexts($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\RagContexts::class);
        $this->contexts = $var;

        return $this;
    }

}

