1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class RetrieveContextsRequest : IMessage<RetrieveContextsRequest>, IEquatable<RetrieveContextsRequest>, IDeepCloneable<RetrieveContextsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class RetrieveContextsRequest.

Request message for
\[VertexRagService.RetrieveContexts\]\[google.cloud.aiplatform.v1beta1.VertexRagService.RetrieveContexts\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RetrieveContextsRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RetrieveContextsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RetrieveContextsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RetrieveContextsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### RetrieveContextsRequest()

    public RetrieveContextsRequest()

### RetrieveContextsRequest(RetrieveContextsRequest)

    public RetrieveContextsRequest(RetrieveContextsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest` |

## Properties

### DataSourceCase

    public RetrieveContextsRequest.DataSourceOneofCase DataSourceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest.DataSourceOneofCase` |   |

### Parent

    public string Parent { get; set; }

Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
`projects/{project}/locations/{location}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest#Google_Cloud_AIPlatform_V1Beta1_RetrieveContextsRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### Query

    public RagQuery Query { get; set; }

Required. Single RAG retrieve query.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagQuery` |   |

### VertexRagStore

    public RetrieveContextsRequest.Types.VertexRagStore VertexRagStore { get; set; }

The data source for Vertex RagStore.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest.Types.VertexRagStore` |   |