Skip to main content

data_stores

Creates, updates, deletes, gets or lists a data_stores resource.

Overview

Namedata_stores
TypeResource
Idgoogle.discoveryengine.data_stores

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
aclEnabledbooleanImmutable. Whether data in the DataStore has ACL information. If set to true, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in GENERIC industry vertical with non-PUBLIC_WEBSITE content config.
advancedSiteSearchConfigobjectOptional. Configuration for advanced site search. (id: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig)
billingEstimationobjectOutput only. Data size estimation for billing. (id: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation)
cmekConfigobjectConfigurations used to enable CMEK data encryption with Cloud KMS keys. (id: GoogleCloudDiscoveryengineV1CmekConfig)
contentConfigstringImmutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
createTimestring (google-datetime)Output only. Timestamp the DataStore was created at.
defaultSchemaIdstringOutput only. The id of the default Schema associated to this data store.
displayNamestringRequired. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
documentProcessingConfigobjectConfiguration for Document understanding and enrichment. (id: GoogleCloudDiscoveryengineV1DocumentProcessingConfig)
healthcareFhirConfigobjectOptional. Configuration for HEALTHCARE_FHIR vertical. (id: GoogleCloudDiscoveryengineV1HealthcareFhirConfig)
identityMappingStorestringImmutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with THIRD_PARTY or GSUITE IdP. Format: projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}.
industryVerticalstringImmutable. The industry vertical that the data store registers.
isInfobotFaqDataStorebooleanOptional. If set, this DataStore is an Infobot FAQ DataStore.
kmsKeyNamestringInput only. The KMS key to be used to protect this DataStore at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the DataStore will be protected by the KMS key, as indicated in the cmek_config field.
servingConfigDataStoreobjectOptional. Stores serving config at DataStore level. (id: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore)
solutionTypesarrayThe solutions that the data store enrolls. Available solutions for each industry_vertical: * MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH. * SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.
startingSchemaobjectThe start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from this doc. (id: GoogleCloudDiscoveryengineV1Schema)
workspaceConfigobjectConfig to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. (id: GoogleCloudDiscoveryengineV1WorkspaceConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_collections_data_stores_getselectprojectsId, locationsId, collectionsId, dataStoresIdGets a DataStore.
projects_locations_collections_data_stores_listselectprojectsId, locationsId, collectionsIdpageSize, pageToken, filterLists all the DataStores associated with the project.
projects_locations_data_stores_getselectprojectsId, locationsId, dataStoresIdGets a DataStore.
projects_locations_data_stores_listselectprojectsId, locationsIdpageSize, pageToken, filterLists all the DataStores associated with the project.
projects_locations_collections_data_stores_createinsertprojectsId, locationsId, collectionsIdcmekConfigName, disableCmek, dataStoreId, createAdvancedSiteSearch, skipDefaultSchemaCreationCreates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.
projects_locations_data_stores_createinsertprojectsId, locationsIdcmekConfigName, disableCmek, dataStoreId, createAdvancedSiteSearch, skipDefaultSchemaCreationCreates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.
projects_locations_collections_data_stores_patchupdateprojectsId, locationsId, collectionsId, dataStoresIdupdateMaskUpdates a DataStore
projects_locations_data_stores_patchupdateprojectsId, locationsId, dataStoresIdupdateMaskUpdates a DataStore
projects_locations_collections_data_stores_deletedeleteprojectsId, locationsId, collectionsId, dataStoresIdDeletes a DataStore.
projects_locations_data_stores_deletedeleteprojectsId, locationsId, dataStoresIdDeletes a DataStore.
projects_locations_collections_data_stores_complete_queryexecprojectsId, locationsId, collectionsId, dataStoresIdquery, queryModel, userPseudoId, includeTailSuggestionsCompletes the specified user input with keyword suggestions.
projects_locations_collections_data_stores_train_custom_modelexecprojectsId, locationsId, collectionsId, dataStoresIdTrains a custom model.
projects_locations_data_stores_complete_queryexecprojectsId, locationsId, dataStoresIdquery, queryModel, userPseudoId, includeTailSuggestionsCompletes the specified user input with keyword suggestions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collectionsIdstring
dataStoresIdstring
locationsIdstring
projectsIdstring
cmekConfigNamestring
createAdvancedSiteSearchboolean
dataStoreIdstring
disableCmekboolean
filterstring
includeTailSuggestionsboolean
pageSizeinteger (int32)
pageTokenstring
querystring
queryModelstring
skipDefaultSchemaCreationboolean
updateMaskstring (google-fieldmask)
userPseudoIdstring

SELECT examples

Gets a DataStore.

SELECT
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig
FROM google.discoveryengine.data_stores
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND collectionsId = '{{ collectionsId }}' -- required
AND dataStoresId = '{{ dataStoresId }}' -- required;

INSERT examples

Creates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.

INSERT INTO google.discoveryengine.data_stores (
data__name,
data__displayName,
data__industryVertical,
data__solutionTypes,
data__contentConfig,
data__advancedSiteSearchConfig,
data__kmsKeyName,
data__aclEnabled,
data__workspaceConfig,
data__documentProcessingConfig,
data__startingSchema,
data__healthcareFhirConfig,
data__servingConfigDataStore,
data__identityMappingStore,
data__isInfobotFaqDataStore,
projectsId,
locationsId,
collectionsId,
cmekConfigName,
disableCmek,
dataStoreId,
createAdvancedSiteSearch,
skipDefaultSchemaCreation
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ industryVertical }}',
'{{ solutionTypes }}',
'{{ contentConfig }}',
'{{ advancedSiteSearchConfig }}',
'{{ kmsKeyName }}',
{{ aclEnabled }},
'{{ workspaceConfig }}',
'{{ documentProcessingConfig }}',
'{{ startingSchema }}',
'{{ healthcareFhirConfig }}',
'{{ servingConfigDataStore }}',
'{{ identityMappingStore }}',
{{ isInfobotFaqDataStore }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ collectionsId }}',
'{{ cmekConfigName }}',
'{{ disableCmek }}',
'{{ dataStoreId }}',
'{{ createAdvancedSiteSearch }}',
'{{ skipDefaultSchemaCreation }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a DataStore

UPDATE google.discoveryengine.data_stores
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__industryVertical = '{{ industryVertical }}',
data__solutionTypes = '{{ solutionTypes }}',
data__contentConfig = '{{ contentConfig }}',
data__advancedSiteSearchConfig = '{{ advancedSiteSearchConfig }}',
data__kmsKeyName = '{{ kmsKeyName }}',
data__aclEnabled = {{ aclEnabled }},
data__workspaceConfig = '{{ workspaceConfig }}',
data__documentProcessingConfig = '{{ documentProcessingConfig }}',
data__startingSchema = '{{ startingSchema }}',
data__healthcareFhirConfig = '{{ healthcareFhirConfig }}',
data__servingConfigDataStore = '{{ servingConfigDataStore }}',
data__identityMappingStore = '{{ identityMappingStore }}',
data__isInfobotFaqDataStore = {{ isInfobotFaqDataStore }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND collectionsId = '{{ collectionsId }}' --required
AND dataStoresId = '{{ dataStoresId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig;

DELETE examples

Deletes a DataStore.

DELETE FROM google.discoveryengine.data_stores
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND collectionsId = '{{ collectionsId }}' --required
AND dataStoresId = '{{ dataStoresId }}' --required;

Lifecycle Methods

Completes the specified user input with keyword suggestions.

EXEC google.discoveryengine.data_stores.projects_locations_collections_data_stores_complete_query 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@collectionsId='{{ collectionsId }}' --required,
@dataStoresId='{{ dataStoresId }}' --required,
@query='{{ query }}',
@queryModel='{{ queryModel }}',
@userPseudoId='{{ userPseudoId }}',
@includeTailSuggestions={{ includeTailSuggestions }};