public sealed class CreateDataStoreRequest : IMessage<CreateDataStoreRequest>, IEquatable<CreateDataStoreRequest>, IDeepCloneable<CreateDataStoreRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CreateDataStoreRequest.
Request for
[DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
method.
public bool CreateAdvancedSiteSearch { get; set; }
A boolean flag indicating whether user want to directly create an advanced
data store for site search.
If the data store is not configured as site
search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
be ignored.
Required. The ID to use for the
[DataStore][google.cloud.discoveryengine.v1.DataStore], which will become
the final component of the
[DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name.
This field must conform to RFC-1034
standard with a length limit of 63 characters. Otherwise, an
INVALID_ARGUMENT error is returned.
public bool SkipDefaultSchemaCreation { get; set; }
A boolean flag indicating whether to skip the default schema creation for
the data store. Only enable this flag if you are certain that the default
schema is incompatible with your use case.
If set to true, you must manually create a schema for the data store before
any documents can be ingested.
This flag cannot be specified if data_store.starting_schema is specified.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eCreateDataStoreRequest\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, outlining its purpose, structure, and implementation details.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateDataStoreRequest\u003c/code\u003e is used to request the creation of a new data store via the \u003ccode\u003eDataStoreService.CreateDataStore\u003c/code\u003e method and it implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eDataStore\u003c/code\u003e, \u003ccode\u003eDataStoreId\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which are essential for defining the new data store, its unique identifier, and the parent resource it belongs to.\u003c/p\u003e\n"],["\u003cp\u003eSeveral versions of the \u003ccode\u003eCreateDataStoreRequest\u003c/code\u003e are available, with the latest being 1.6.0 and earlier versions including 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0 and 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003eIt offers options for creating advanced site search data stores with the property \u003ccode\u003eCreateAdvancedSiteSearch\u003c/code\u003e, and provides the ability to skip default schema creation using the \u003ccode\u003eSkipDefaultSchemaCreation\u003c/code\u003e property, offering flexibility in data store setup.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class CreateDataStoreRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest) \n\n public sealed class CreateDataStoreRequest : IMessage\u003cCreateDataStoreRequest\u003e, IEquatable\u003cCreateDataStoreRequest\u003e, IDeepCloneable\u003cCreateDataStoreRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class CreateDataStoreRequest.\n\nRequest for\n\\[DataStoreService.CreateDataStore\\]\\[google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateDataStoreRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateDataStoreRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDataStoreRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateDataStoreRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest), [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.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### CreateDataStoreRequest()\n\n public CreateDataStoreRequest()\n\n### CreateDataStoreRequest(CreateDataStoreRequest)\n\n public CreateDataStoreRequest(CreateDataStoreRequest other)\n\nProperties\n----------\n\n### CmekConfigName\n\n public string CmekConfigName { get; set; }\n\nResource name of the CmekConfig to use for protecting this DataStore.\n\n### CmekConfigNameAsCmekConfigName\n\n public CmekConfigName CmekConfigNameAsCmekConfigName { get; set; }\n\n[CmekConfigName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfigName)-typed view over the [CmekConfigName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest#Google_Cloud_DiscoveryEngine_V1_CreateDataStoreRequest_CmekConfigName) resource name property.\n\n### CmekOptionsCase\n\n public CreateDataStoreRequest.CmekOptionsOneofCase CmekOptionsCase { get; }\n\n### CreateAdvancedSiteSearch\n\n public bool CreateAdvancedSiteSearch { get; set; }\n\nA boolean flag indicating whether user want to directly create an advanced\ndata store for site search.\nIf the data store is not configured as site\nsearch (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will\nbe ignored.\n\n### DataStore\n\n public DataStore DataStore { get; set; }\n\nRequired. The \\[DataStore\\]\\[google.cloud.discoveryengine.v1.DataStore\\] to\ncreate.\n\n### DataStoreId\n\n public string DataStoreId { get; set; }\n\nRequired. The ID to use for the\n\\[DataStore\\]\\[google.cloud.discoveryengine.v1.DataStore\\], which will become\nthe final component of the\n\\[DataStore\\]\\[google.cloud.discoveryengine.v1.DataStore\\]'s resource name.\n\nThis field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)\nstandard with a length limit of 63 characters. Otherwise, an\nINVALID_ARGUMENT error is returned.\n\n### DisableCmek\n\n public bool DisableCmek { get; set; }\n\nDataStore without CMEK protections. If a default CmekConfig is set for\nthe project, setting this field will override the default CmekConfig as\nwell.\n\n### HasCmekConfigName\n\n public bool HasCmekConfigName { get; }\n\nGets whether the \"cmek_config_name\" field is set\n\n### HasDisableCmek\n\n public bool HasDisableCmek { get; }\n\nGets whether the \"disable_cmek\" field is set\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource name, such as\n`projects/{project}/locations/{location}/collections/{collection}`.\n\n### ParentAsCollectionName\n\n public CollectionName ParentAsCollectionName { get; set; }\n\n[CollectionName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CollectionName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateDataStoreRequest#Google_Cloud_DiscoveryEngine_V1_CreateDataStoreRequest_Parent) resource name property.\n\n### SkipDefaultSchemaCreation\n\n public bool SkipDefaultSchemaCreation { get; set; }\n\nA boolean flag indicating whether to skip the default schema creation for\nthe data store. Only enable this flag if you are certain that the default\nschema is incompatible with your use case.\n\nIf set to true, you must manually create a schema for the data store before\nany documents can be ingested.\n\nThis flag cannot be specified if `data_store.starting_schema` is specified."]]