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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRagCorpus\u003c/code\u003e class in the Vertex AI v1beta1 API is a container for \u003ccode\u003eRagFile\u003c/code\u003e objects, allowing multiple \u003ccode\u003eRagCorpora\u003c/code\u003e within a project.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRagCorpus\u003c/code\u003e objects have properties for configuration, including \u003ccode\u003eRagEmbeddingModelConfig\u003c/code\u003e and \u003ccode\u003eRagVectorDbConfig\u003c/code\u003e, and they can also be configured to use Vertex AI Search through the \u003ccode\u003eVertexAiSearchConfig\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eRagCorpus\u003c/code\u003e has a display name, an optional description, and timestamps indicating when it was created and last updated.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRagCorpus\u003c/code\u003e is available in the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a property called \u003ccode\u003eRagFilesCount\u003c/code\u003e which represents the number of \u003ccode\u003eRagFiles\u003c/code\u003e contained within a given \u003ccode\u003eRagCorpus\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class RagCorpus (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.RagCorpus) \n\n public sealed class RagCorpus : IMessage\u003cRagCorpus\u003e, IEquatable\u003cRagCorpus\u003e, IDeepCloneable\u003cRagCorpus\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class RagCorpus.\n\nA RagCorpus is a RagFile container and a project can have multiple\nRagCorpora. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RagCorpus \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RagCorpus](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RagCorpus](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### RagCorpus()\n\n public RagCorpus()\n\n### RagCorpus(RagCorpus)\n\n public RagCorpus(RagCorpus other)\n\nProperties\n----------\n\n### BackendConfigCase\n\n public RagCorpus.BackendConfigOneofCase BackendConfigCase { get; }\n\n### CorpusStatus\n\n public CorpusStatus CorpusStatus { get; set; }\n\nOutput only. RagCorpus state.\n\n### CorpusTypeConfig\n\n public RagCorpus.Types.CorpusTypeConfig CorpusTypeConfig { get; set; }\n\nOptional. The corpus type config of the RagCorpus.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Timestamp when this RagCorpus was created.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. The description of the RagCorpus.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nRequired. The display name of the RagCorpus.\nThe name can be up to 128 characters long and can consist of any UTF-8\ncharacters.\n\n### EncryptionSpec\n\n public EncryptionSpec EncryptionSpec { get; set; }\n\nOptional. Immutable. The CMEK key name used to encrypt at-rest data related\nto this Corpus. Only applicable to RagManagedDb option for Vector DB. This\nfield can only be set at corpus creation time, and cannot be updated or\ndeleted.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. The resource name of the RagCorpus.\n\n### RagCorpusName\n\n public RagCorpusName RagCorpusName { get; set; }\n\n[RagCorpusName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpusName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpus#Google_Cloud_AIPlatform_V1Beta1_RagCorpus_Name) resource name property.\n\n### RagEmbeddingModelConfig\n\n [Obsolete]\n public RagEmbeddingModelConfig RagEmbeddingModelConfig { get; set; }\n\nOptional. Immutable. The embedding model config of the RagCorpus.\n\n### RagFilesCount\n\n public int RagFilesCount { get; set; }\n\nOutput only. Number of RagFiles in the RagCorpus.\n\n### RagVectorDbConfig\n\n [Obsolete]\n public RagVectorDbConfig RagVectorDbConfig { get; set; }\n\nOptional. Immutable. The Vector DB config of the RagCorpus.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Timestamp when this RagCorpus was last updated.\n\n### VectorDbConfig\n\n public RagVectorDbConfig VectorDbConfig { get; set; }\n\nOptional. Immutable. The config for the Vector DBs.\n\n### VertexAiSearchConfig\n\n public VertexAiSearchConfig VertexAiSearchConfig { get; set; }\n\nOptional. Immutable. The config for the Vertex AI Search."]]