Required. The ID to use for theDataStore, which will become the final component of theDataStore's resource name. This field must conform toRFC-1034standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
↳ create_advanced_site_search
bool
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.
↳ skip_default_schema_creation
bool
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 ifdata_store.starting_schemais specified.
getCmekConfigName
Resource name of the CmekConfig to use for protecting this DataStore.
Returns
Type
Description
string
hasCmekConfigName
setCmekConfigName
Resource name of the CmekConfig to use for protecting this DataStore.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisableCmek
DataStore without CMEK protections. If a default CmekConfig is set for
the project, setting this field will override the default CmekConfig as
well.
Returns
Type
Description
bool
hasDisableCmek
setDisableCmek
DataStore without CMEK protections. If a default CmekConfig is set for
the project, setting this field will override the default CmekConfig as
well.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getParent
Required. The parent resource name, such asprojects/{project}/locations/{location}/collections/{collection}.
Returns
Type
Description
string
setParent
Required. The parent resource name, such asprojects/{project}/locations/{location}/collections/{collection}.
Required. The ID to use for theDataStore, which will become
the final component of theDataStore's resource name.
This field must conform toRFC-1034standard with a length limit of 63 characters. Otherwise, an
INVALID_ARGUMENT error is returned.
Returns
Type
Description
string
setDataStoreId
Required. The ID to use for theDataStore, which will become
the final component of theDataStore's resource name.
This field must conform toRFC-1034standard with a length limit of 63 characters. Otherwise, an
INVALID_ARGUMENT error is returned.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateAdvancedSiteSearch
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.
Returns
Type
Description
bool
setCreateAdvancedSiteSearch
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.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getSkipDefaultSchemaCreation
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 ifdata_store.starting_schemais specified.
Returns
Type
Description
bool
setSkipDefaultSchemaCreation
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 ifdata_store.starting_schemais specified.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getCmekOptions
Returns
Type
Description
string
static::build
Parameters
Name
Description
parent
string
Required. The parent resource name, such asprojects/{project}/locations/{location}/collections/{collection}. Please seeDataStoreServiceClient::collectionName()for help formatting this field.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class CreateDataStoreRequest (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.CreateDataStoreRequest)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.CreateDataStoreRequest)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.CreateDataStoreRequest)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.CreateDataStoreRequest)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.CreateDataStoreRequest)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.CreateDataStoreRequest)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.CreateDataStoreRequest)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.CreateDataStoreRequest)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.CreateDataStoreRequest)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.CreateDataStoreRequest)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.CreateDataStoreRequest)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.CreateDataStoreRequest)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.CreateDataStoreRequest)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.CreateDataStoreRequest)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.CreateDataStoreRequest)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.CreateDataStoreRequest)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.CreateDataStoreRequest) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CreateDataStoreRequest.\n\nRequest for\n[DataStoreService.CreateDataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.Client.DataStoreServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_DataStoreServiceClient__createDataStore__)\nmethod.\n\nGenerated from protobuf message `google.cloud.discoveryengine.v1.CreateDataStoreRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCmekConfigName\n\nResource name of the CmekConfig to use for protecting this DataStore.\n\n### hasCmekConfigName\n\n### setCmekConfigName\n\nResource name of the CmekConfig to use for protecting this DataStore.\n\n### getDisableCmek\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### hasDisableCmek\n\n### setDisableCmek\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### getParent\n\nRequired. The parent resource name, such as\n`projects/{project}/locations/{location}/collections/{collection}`.\n\n### setParent\n\nRequired. The parent resource name, such as\n`projects/{project}/locations/{location}/collections/{collection}`.\n\n### getDataStore\n\nRequired. The [DataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore) to\ncreate.\n\n### hasDataStore\n\n### clearDataStore\n\n### setDataStore\n\nRequired. The [DataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore) to\ncreate.\n\n### getDataStoreId\n\nRequired. The ID to use for the\n[DataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore), which will become\nthe final component of the\n[DataStore](/php/docs/reference/cloud-discoveryengine/latest/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### setDataStoreId\n\nRequired. The ID to use for the\n[DataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore), which will become\nthe final component of the\n[DataStore](/php/docs/reference/cloud-discoveryengine/latest/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### getCreateAdvancedSiteSearch\n\nA boolean flag indicating whether user want to directly create an advanced\ndata store for site search.\n\nIf the data store is not configured as site\nsearch (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will\nbe ignored.\n\n### setCreateAdvancedSiteSearch\n\nA boolean flag indicating whether user want to directly create an advanced\ndata store for site search.\n\nIf the data store is not configured as site\nsearch (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will\nbe ignored.\n\n### getSkipDefaultSchemaCreation\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.\nThis flag cannot be specified if `data_store.starting_schema` is specified.\n\n### setSkipDefaultSchemaCreation\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.\nThis flag cannot be specified if `data_store.starting_schema` is specified.\n\n### getCmekOptions\n\n### static::build"]]