1.0.0-beta87 (latest) 1.0.0-beta86

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

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

A RagCorpus is a RagFile container and a project can have multiple
RagCorpora.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RagCorpus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RagCorpus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RagCorpus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus), [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

### RagCorpus()

    public RagCorpus()

### RagCorpus(RagCorpus)

    public RagCorpus(RagCorpus other)

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

## Properties

### BackendConfigCase

    public RagCorpus.BackendConfigOneofCase BackendConfigCase { get; }

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

### CorpusStatus

    public CorpusStatus CorpusStatus { get; set; }

Output only. RagCorpus state.

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

### CorpusTypeConfig

    public RagCorpus.Types.CorpusTypeConfig CorpusTypeConfig { get; set; }

Optional. The corpus type config of the RagCorpus.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Timestamp when this RagCorpus was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Description

    public string Description { get; set; }

Optional. The description of the RagCorpus.

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

### DisplayName

    public string DisplayName { get; set; }

Required. The display name of the RagCorpus.
The name can be up to 128 characters long and can consist of any UTF-8
characters.

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

### EncryptionSpec

    public EncryptionSpec EncryptionSpec { get; set; }

Optional. Immutable. The CMEK key name used to encrypt at-rest data related
to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
field can only be set at corpus creation time, and cannot be updated or
deleted.

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

### Name

    public string Name { get; set; }

Output only. The resource name of the RagCorpus.

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

### RagCorpusName

    public RagCorpusName RagCorpusName { get; set; }

[RagCorpusName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpusName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus#Google_Cloud_AIPlatform_V1Beta1_RagCorpus_Name) resource name property.

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

### RagEmbeddingModelConfig

    [Obsolete]
    public RagEmbeddingModelConfig RagEmbeddingModelConfig { get; set; }

Optional. Immutable. The embedding model config of the RagCorpus.

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

### RagFilesCount

    public int RagFilesCount { get; set; }

Output only. Number of RagFiles in the RagCorpus.

NOTE: This field is not populated in the response of
\[VertexRagDataService.ListRagCorpora\]\[google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora\].

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

### RagVectorDbConfig

    [Obsolete]
    public RagVectorDbConfig RagVectorDbConfig { get; set; }

Optional. Immutable. The Vector DB config of the RagCorpus.

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

### SatisfiesPzi

    public bool SatisfiesPzi { get; set; }

Output only. Reserved for future use.

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

### SatisfiesPzs

    public bool SatisfiesPzs { get; set; }

Output only. Reserved for future use.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Timestamp when this RagCorpus was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### VectorDbConfig

    public RagVectorDbConfig VectorDbConfig { get; set; }

Optional. Immutable. The config for the Vector DBs.

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

### VertexAiSearchConfig

    public VertexAiSearchConfig VertexAiSearchConfig { get; set; }

Optional. Immutable. The config for the Vertex AI Search.

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