data_stores
Creates, updates, deletes, gets or lists a data_stores resource.
Overview
| Name | data_stores |
| Type | Resource |
| Id | google.discoveryengine.data_stores |
Fields
The following fields are returned by SELECT queries:
- projects_locations_collections_data_stores_get
- projects_locations_collections_data_stores_list
- projects_locations_data_stores_get
- projects_locations_data_stores_list
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. 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. |
aclEnabled | boolean | Immutable. 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. |
advancedSiteSearchConfig | object | Optional. Configuration for advanced site search. (id: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig) |
billingEstimation | object | Output only. Data size estimation for billing. (id: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation) |
cmekConfig | object | Output only. CMEK-related information for the DataStore. (id: GoogleCloudDiscoveryengineV1CmekConfig) |
configurableBillingApproach | string | Optional. Configuration for configurable billing approach. See (CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED, CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE, CONFIGURABLE_CONSUMPTION_EMBEDDING) |
configurableBillingApproachUpdateTime | string (google-datetime) | Output only. The timestamp when configurable_billing_approach was last updated. |
contentConfig | string | Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. (CONTENT_CONFIG_UNSPECIFIED, NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE, GOOGLE_WORKSPACE) |
createTime | string (google-datetime) | Output only. Timestamp the DataStore was created at. |
defaultSchemaId | string | Output only. The id of the default Schema associated to this data store. |
displayName | string | Required. 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. |
documentProcessingConfig | object | Configuration for Document understanding and enrichment. (id: GoogleCloudDiscoveryengineV1DocumentProcessingConfig) |
federatedSearchConfig | object | Optional. If set, this DataStore is a federated search DataStore. (id: GoogleCloudDiscoveryengineV1DataStoreFederatedSearchConfig) |
healthcareFhirConfig | object | Optional. Configuration for HEALTHCARE_FHIR vertical. (id: GoogleCloudDiscoveryengineV1HealthcareFhirConfig) |
identityMappingStore | string | Immutable. 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}. |
industryVertical | string | Immutable. The industry vertical that the data store registers. (INDUSTRY_VERTICAL_UNSPECIFIED, GENERIC, MEDIA, HEALTHCARE_FHIR) |
isInfobotFaqDataStore | boolean | Optional. If set, this DataStore is an Infobot FAQ DataStore. |
kmsKeyName | string | Input 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. |
naturalLanguageQueryUnderstandingConfig | object | Optional. Configuration for Natural Language Query Understanding. (id: GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig) |
servingConfigDataStore | object | Optional. Stores serving config at DataStore level. (id: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore) |
solutionTypes | array | The 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. |
startingSchema | object | The 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) |
workspaceConfig | object | Config 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) |
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. 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. |
aclEnabled | boolean | Immutable. 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. |
advancedSiteSearchConfig | object | Optional. Configuration for advanced site search. (id: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig) |
billingEstimation | object | Output only. Data size estimation for billing. (id: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation) |
cmekConfig | object | Output only. CMEK-related information for the DataStore. (id: GoogleCloudDiscoveryengineV1CmekConfig) |
configurableBillingApproach | string | Optional. Configuration for configurable billing approach. See (CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED, CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE, CONFIGURABLE_CONSUMPTION_EMBEDDING) |
configurableBillingApproachUpdateTime | string (google-datetime) | Output only. The timestamp when configurable_billing_approach was last updated. |
contentConfig | string | Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. (CONTENT_CONFIG_UNSPECIFIED, NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE, GOOGLE_WORKSPACE) |
createTime | string (google-datetime) | Output only. Timestamp the DataStore was created at. |
defaultSchemaId | string | Output only. The id of the default Schema associated to this data store. |
displayName | string | Required. 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. |
documentProcessingConfig | object | Configuration for Document understanding and enrichment. (id: GoogleCloudDiscoveryengineV1DocumentProcessingConfig) |
federatedSearchConfig | object | Optional. If set, this DataStore is a federated search DataStore. (id: GoogleCloudDiscoveryengineV1DataStoreFederatedSearchConfig) |
healthcareFhirConfig | object | Optional. Configuration for HEALTHCARE_FHIR vertical. (id: GoogleCloudDiscoveryengineV1HealthcareFhirConfig) |
identityMappingStore | string | Immutable. 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}. |
industryVertical | string | Immutable. The industry vertical that the data store registers. (INDUSTRY_VERTICAL_UNSPECIFIED, GENERIC, MEDIA, HEALTHCARE_FHIR) |
isInfobotFaqDataStore | boolean | Optional. If set, this DataStore is an Infobot FAQ DataStore. |
kmsKeyName | string | Input 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. |
naturalLanguageQueryUnderstandingConfig | object | Optional. Configuration for Natural Language Query Understanding. (id: GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig) |
servingConfigDataStore | object | Optional. Stores serving config at DataStore level. (id: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore) |
solutionTypes | array | The 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. |
startingSchema | object | The 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) |
workspaceConfig | object | Config 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) |
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. 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. |
aclEnabled | boolean | Immutable. 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. |
advancedSiteSearchConfig | object | Optional. Configuration for advanced site search. (id: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig) |
billingEstimation | object | Output only. Data size estimation for billing. (id: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation) |
cmekConfig | object | Output only. CMEK-related information for the DataStore. (id: GoogleCloudDiscoveryengineV1CmekConfig) |
configurableBillingApproach | string | Optional. Configuration for configurable billing approach. See (CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED, CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE, CONFIGURABLE_CONSUMPTION_EMBEDDING) |
configurableBillingApproachUpdateTime | string (google-datetime) | Output only. The timestamp when configurable_billing_approach was last updated. |
contentConfig | string | Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. (CONTENT_CONFIG_UNSPECIFIED, NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE, GOOGLE_WORKSPACE) |
createTime | string (google-datetime) | Output only. Timestamp the DataStore was created at. |
defaultSchemaId | string | Output only. The id of the default Schema associated to this data store. |
displayName | string | Required. 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. |
documentProcessingConfig | object | Configuration for Document understanding and enrichment. (id: GoogleCloudDiscoveryengineV1DocumentProcessingConfig) |
federatedSearchConfig | object | Optional. If set, this DataStore is a federated search DataStore. (id: GoogleCloudDiscoveryengineV1DataStoreFederatedSearchConfig) |
healthcareFhirConfig | object | Optional. Configuration for HEALTHCARE_FHIR vertical. (id: GoogleCloudDiscoveryengineV1HealthcareFhirConfig) |
identityMappingStore | string | Immutable. 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}. |
industryVertical | string | Immutable. The industry vertical that the data store registers. (INDUSTRY_VERTICAL_UNSPECIFIED, GENERIC, MEDIA, HEALTHCARE_FHIR) |
isInfobotFaqDataStore | boolean | Optional. If set, this DataStore is an Infobot FAQ DataStore. |
kmsKeyName | string | Input 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. |
naturalLanguageQueryUnderstandingConfig | object | Optional. Configuration for Natural Language Query Understanding. (id: GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig) |
servingConfigDataStore | object | Optional. Stores serving config at DataStore level. (id: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore) |
solutionTypes | array | The 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. |
startingSchema | object | The 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) |
workspaceConfig | object | Config 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) |
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. 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. |
aclEnabled | boolean | Immutable. 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. |
advancedSiteSearchConfig | object | Optional. Configuration for advanced site search. (id: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig) |
billingEstimation | object | Output only. Data size estimation for billing. (id: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation) |
cmekConfig | object | Output only. CMEK-related information for the DataStore. (id: GoogleCloudDiscoveryengineV1CmekConfig) |
configurableBillingApproach | string | Optional. Configuration for configurable billing approach. See (CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED, CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE, CONFIGURABLE_CONSUMPTION_EMBEDDING) |
configurableBillingApproachUpdateTime | string (google-datetime) | Output only. The timestamp when configurable_billing_approach was last updated. |
contentConfig | string | Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. (CONTENT_CONFIG_UNSPECIFIED, NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE, GOOGLE_WORKSPACE) |
createTime | string (google-datetime) | Output only. Timestamp the DataStore was created at. |
defaultSchemaId | string | Output only. The id of the default Schema associated to this data store. |
displayName | string | Required. 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. |
documentProcessingConfig | object | Configuration for Document understanding and enrichment. (id: GoogleCloudDiscoveryengineV1DocumentProcessingConfig) |
federatedSearchConfig | object | Optional. If set, this DataStore is a federated search DataStore. (id: GoogleCloudDiscoveryengineV1DataStoreFederatedSearchConfig) |
healthcareFhirConfig | object | Optional. Configuration for HEALTHCARE_FHIR vertical. (id: GoogleCloudDiscoveryengineV1HealthcareFhirConfig) |
identityMappingStore | string | Immutable. 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}. |
industryVertical | string | Immutable. The industry vertical that the data store registers. (INDUSTRY_VERTICAL_UNSPECIFIED, GENERIC, MEDIA, HEALTHCARE_FHIR) |
isInfobotFaqDataStore | boolean | Optional. If set, this DataStore is an Infobot FAQ DataStore. |
kmsKeyName | string | Input 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. |
naturalLanguageQueryUnderstandingConfig | object | Optional. Configuration for Natural Language Query Understanding. (id: GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig) |
servingConfigDataStore | object | Optional. Stores serving config at DataStore level. (id: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore) |
solutionTypes | array | The 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. |
startingSchema | object | The 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) |
workspaceConfig | object | Config 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:
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.
| Name | Datatype | Description |
|---|---|---|
collectionsId | string | |
dataStoresId | string | |
locationsId | string | |
projectsId | string | |
cmekConfigName | string | |
createAdvancedSiteSearch | boolean | |
dataStoreId | string | |
disableCmek | boolean | |
filter | string | |
includeTailSuggestions | boolean | |
pageSize | integer (int32) | |
pageToken | string | |
query | string | |
queryModel | string | |
skipDefaultSchemaCreation | boolean | |
updateMask | string (google-fieldmask) | |
userPseudoId | string |
SELECT examples
- projects_locations_collections_data_stores_get
- projects_locations_collections_data_stores_list
- projects_locations_data_stores_get
- projects_locations_data_stores_list
Gets a DataStore.
SELECT
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
configurableBillingApproach,
configurableBillingApproachUpdateTime,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
federatedSearchConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
naturalLanguageQueryUnderstandingConfig,
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
;
Lists all the DataStores associated with the project.
SELECT
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
configurableBillingApproach,
configurableBillingApproachUpdateTime,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
federatedSearchConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
naturalLanguageQueryUnderstandingConfig,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig
FROM google.discoveryengine.data_stores
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND collectionsId = '{{ collectionsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
Gets a DataStore.
SELECT
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
configurableBillingApproach,
configurableBillingApproachUpdateTime,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
federatedSearchConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
naturalLanguageQueryUnderstandingConfig,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig
FROM google.discoveryengine.data_stores
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dataStoresId = '{{ dataStoresId }}' -- required
;
Lists all the DataStores associated with the project.
SELECT
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
configurableBillingApproach,
configurableBillingApproachUpdateTime,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
federatedSearchConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
naturalLanguageQueryUnderstandingConfig,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig
FROM google.discoveryengine.data_stores
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- projects_locations_collections_data_stores_create
- projects_locations_data_stores_create
- Manifest
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__aclEnabled,
data__advancedSiteSearchConfig,
data__configurableBillingApproach,
data__contentConfig,
data__displayName,
data__documentProcessingConfig,
data__federatedSearchConfig,
data__healthcareFhirConfig,
data__identityMappingStore,
data__industryVertical,
data__isInfobotFaqDataStore,
data__kmsKeyName,
data__name,
data__naturalLanguageQueryUnderstandingConfig,
data__servingConfigDataStore,
data__solutionTypes,
data__startingSchema,
data__workspaceConfig,
projectsId,
locationsId,
collectionsId,
cmekConfigName,
createAdvancedSiteSearch,
dataStoreId,
disableCmek,
skipDefaultSchemaCreation
)
SELECT
{{ aclEnabled }},
'{{ advancedSiteSearchConfig }}',
'{{ configurableBillingApproach }}',
'{{ contentConfig }}',
'{{ displayName }}',
'{{ documentProcessingConfig }}',
'{{ federatedSearchConfig }}',
'{{ healthcareFhirConfig }}',
'{{ identityMappingStore }}',
'{{ industryVertical }}',
{{ isInfobotFaqDataStore }},
'{{ kmsKeyName }}',
'{{ name }}',
'{{ naturalLanguageQueryUnderstandingConfig }}',
'{{ servingConfigDataStore }}',
'{{ solutionTypes }}',
'{{ startingSchema }}',
'{{ workspaceConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ collectionsId }}',
'{{ cmekConfigName }}',
'{{ createAdvancedSiteSearch }}',
'{{ dataStoreId }}',
'{{ disableCmek }}',
'{{ skipDefaultSchemaCreation }}'
RETURNING
name,
done,
error,
metadata,
response
;
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__aclEnabled,
data__advancedSiteSearchConfig,
data__configurableBillingApproach,
data__contentConfig,
data__displayName,
data__documentProcessingConfig,
data__federatedSearchConfig,
data__healthcareFhirConfig,
data__identityMappingStore,
data__industryVertical,
data__isInfobotFaqDataStore,
data__kmsKeyName,
data__name,
data__naturalLanguageQueryUnderstandingConfig,
data__servingConfigDataStore,
data__solutionTypes,
data__startingSchema,
data__workspaceConfig,
projectsId,
locationsId,
cmekConfigName,
createAdvancedSiteSearch,
dataStoreId,
disableCmek,
skipDefaultSchemaCreation
)
SELECT
{{ aclEnabled }},
'{{ advancedSiteSearchConfig }}',
'{{ configurableBillingApproach }}',
'{{ contentConfig }}',
'{{ displayName }}',
'{{ documentProcessingConfig }}',
'{{ federatedSearchConfig }}',
'{{ healthcareFhirConfig }}',
'{{ identityMappingStore }}',
'{{ industryVertical }}',
{{ isInfobotFaqDataStore }},
'{{ kmsKeyName }}',
'{{ name }}',
'{{ naturalLanguageQueryUnderstandingConfig }}',
'{{ servingConfigDataStore }}',
'{{ solutionTypes }}',
'{{ startingSchema }}',
'{{ workspaceConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ cmekConfigName }}',
'{{ createAdvancedSiteSearch }}',
'{{ dataStoreId }}',
'{{ disableCmek }}',
'{{ skipDefaultSchemaCreation }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: data_stores
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the data_stores resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the data_stores resource.
- name: collectionsId
value: "{{ collectionsId }}"
description: Required parameter for the data_stores resource.
- name: aclEnabled
value: {{ aclEnabled }}
description: |
Immutable. 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.
- name: advancedSiteSearchConfig
description: |
Optional. Configuration for advanced site search.
value:
disableAutomaticRefresh: {{ disableAutomaticRefresh }}
disableInitialIndex: {{ disableInitialIndex }}
- name: configurableBillingApproach
value: "{{ configurableBillingApproach }}"
description: |
Optional. Configuration for configurable billing approach. See
valid_values: ['CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED', 'CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE', 'CONFIGURABLE_CONSUMPTION_EMBEDDING']
- name: contentConfig
value: "{{ contentConfig }}"
description: |
Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
valid_values: ['CONTENT_CONFIG_UNSPECIFIED', 'NO_CONTENT', 'CONTENT_REQUIRED', 'PUBLIC_WEBSITE', 'GOOGLE_WORKSPACE']
- name: displayName
value: "{{ displayName }}"
description: |
Required. 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.
- name: documentProcessingConfig
description: |
Configuration for Document understanding and enrichment.
value:
chunkingConfig:
layoutBasedChunkingConfig:
chunkSize: {{ chunkSize }}
includeAncestorHeadings: {{ includeAncestorHeadings }}
defaultParsingConfig:
digitalParsingConfig: "{{ digitalParsingConfig }}"
layoutParsingConfig:
enableGetProcessedDocument: {{ enableGetProcessedDocument }}
enableImageAnnotation: {{ enableImageAnnotation }}
enableLlmLayoutParsing: {{ enableLlmLayoutParsing }}
enableTableAnnotation: {{ enableTableAnnotation }}
excludeHtmlClasses:
- "{{ excludeHtmlClasses }}"
excludeHtmlElements:
- "{{ excludeHtmlElements }}"
excludeHtmlIds:
- "{{ excludeHtmlIds }}"
structuredContentTypes:
- "{{ structuredContentTypes }}"
ocrParsingConfig:
enhancedDocumentElements:
- "{{ enhancedDocumentElements }}"
useNativeText: {{ useNativeText }}
name: "{{ name }}"
parsingConfigOverrides: "{{ parsingConfigOverrides }}"
- name: federatedSearchConfig
description: |
Optional. If set, this DataStore is a federated search DataStore.
value:
alloyDbConfig:
alloydbAiNlConfig:
nlConfigId: "{{ nlConfigId }}"
alloydbConnectionConfig:
authMode: "{{ authMode }}"
database: "{{ database }}"
enablePsvs: {{ enablePsvs }}
instance: "{{ instance }}"
password: "{{ password }}"
user: "{{ user }}"
returnedFields:
- "{{ returnedFields }}"
notebooklmConfig:
searchConfig: "{{ searchConfig }}"
thirdPartyOauthConfig:
appName: "{{ appName }}"
instanceName: "{{ instanceName }}"
- name: healthcareFhirConfig
description: |
Optional. Configuration for `HEALTHCARE_FHIR` vertical.
value:
enableConfigurableSchema: {{ enableConfigurableSchema }}
enableStaticIndexingForBatchIngestion: {{ enableStaticIndexingForBatchIngestion }}
initialFilterGroups:
- "{{ initialFilterGroups }}"
- name: identityMappingStore
value: "{{ identityMappingStore }}"
description: |
Immutable. 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}`.
- name: industryVertical
value: "{{ industryVertical }}"
description: |
Immutable. The industry vertical that the data store registers.
valid_values: ['INDUSTRY_VERTICAL_UNSPECIFIED', 'GENERIC', 'MEDIA', 'HEALTHCARE_FHIR']
- name: isInfobotFaqDataStore
value: {{ isInfobotFaqDataStore }}
description: |
Optional. If set, this DataStore is an Infobot FAQ DataStore.
- name: kmsKeyName
value: "{{ kmsKeyName }}"
description: |
Input 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.
- name: name
value: "{{ name }}"
description: |
Immutable. 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.
- name: naturalLanguageQueryUnderstandingConfig
description: |
Optional. Configuration for Natural Language Query Understanding.
value:
mode: "{{ mode }}"
- name: servingConfigDataStore
description: |
Optional. Stores serving config at DataStore level.
value:
disabledForServing: {{ disabledForServing }}
- name: solutionTypes
value:
- "{{ solutionTypes }}"
description: |
The 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.
- name: startingSchema
description: |
The 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](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
value:
jsonSchema: "{{ jsonSchema }}"
name: "{{ name }}"
structSchema: "{{ structSchema }}"
- name: workspaceConfig
description: |
Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE.
value:
dasherCustomerId: "{{ dasherCustomerId }}"
superAdminEmailAddress: "{{ superAdminEmailAddress }}"
superAdminServiceAccount: "{{ superAdminServiceAccount }}"
type: "{{ type }}"
- name: cmekConfigName
value: "{{ cmekConfigName }}"
- name: createAdvancedSiteSearch
value: {{ createAdvancedSiteSearch }}
- name: dataStoreId
value: "{{ dataStoreId }}"
- name: disableCmek
value: {{ disableCmek }}
- name: skipDefaultSchemaCreation
value: {{ skipDefaultSchemaCreation }}
UPDATE examples
- projects_locations_collections_data_stores_patch
- projects_locations_data_stores_patch
Updates a DataStore
UPDATE google.discoveryengine.data_stores
SET
data__aclEnabled = {{ aclEnabled }},
data__advancedSiteSearchConfig = '{{ advancedSiteSearchConfig }}',
data__configurableBillingApproach = '{{ configurableBillingApproach }}',
data__contentConfig = '{{ contentConfig }}',
data__displayName = '{{ displayName }}',
data__documentProcessingConfig = '{{ documentProcessingConfig }}',
data__federatedSearchConfig = '{{ federatedSearchConfig }}',
data__healthcareFhirConfig = '{{ healthcareFhirConfig }}',
data__identityMappingStore = '{{ identityMappingStore }}',
data__industryVertical = '{{ industryVertical }}',
data__isInfobotFaqDataStore = {{ isInfobotFaqDataStore }},
data__kmsKeyName = '{{ kmsKeyName }}',
data__name = '{{ name }}',
data__naturalLanguageQueryUnderstandingConfig = '{{ naturalLanguageQueryUnderstandingConfig }}',
data__servingConfigDataStore = '{{ servingConfigDataStore }}',
data__solutionTypes = '{{ solutionTypes }}',
data__startingSchema = '{{ startingSchema }}',
data__workspaceConfig = '{{ workspaceConfig }}'
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,
configurableBillingApproach,
configurableBillingApproachUpdateTime,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
federatedSearchConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
naturalLanguageQueryUnderstandingConfig,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig;
Updates a DataStore
UPDATE google.discoveryengine.data_stores
SET
data__aclEnabled = {{ aclEnabled }},
data__advancedSiteSearchConfig = '{{ advancedSiteSearchConfig }}',
data__configurableBillingApproach = '{{ configurableBillingApproach }}',
data__contentConfig = '{{ contentConfig }}',
data__displayName = '{{ displayName }}',
data__documentProcessingConfig = '{{ documentProcessingConfig }}',
data__federatedSearchConfig = '{{ federatedSearchConfig }}',
data__healthcareFhirConfig = '{{ healthcareFhirConfig }}',
data__identityMappingStore = '{{ identityMappingStore }}',
data__industryVertical = '{{ industryVertical }}',
data__isInfobotFaqDataStore = {{ isInfobotFaqDataStore }},
data__kmsKeyName = '{{ kmsKeyName }}',
data__name = '{{ name }}',
data__naturalLanguageQueryUnderstandingConfig = '{{ naturalLanguageQueryUnderstandingConfig }}',
data__servingConfigDataStore = '{{ servingConfigDataStore }}',
data__solutionTypes = '{{ solutionTypes }}',
data__startingSchema = '{{ startingSchema }}',
data__workspaceConfig = '{{ workspaceConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataStoresId = '{{ dataStoresId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
aclEnabled,
advancedSiteSearchConfig,
billingEstimation,
cmekConfig,
configurableBillingApproach,
configurableBillingApproachUpdateTime,
contentConfig,
createTime,
defaultSchemaId,
displayName,
documentProcessingConfig,
federatedSearchConfig,
healthcareFhirConfig,
identityMappingStore,
industryVertical,
isInfobotFaqDataStore,
kmsKeyName,
naturalLanguageQueryUnderstandingConfig,
servingConfigDataStore,
solutionTypes,
startingSchema,
workspaceConfig;
DELETE examples
- projects_locations_collections_data_stores_delete
- projects_locations_data_stores_delete
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
;
Deletes a DataStore.
DELETE FROM google.discoveryengine.data_stores
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataStoresId = '{{ dataStoresId }}' --required
;
Lifecycle Methods
- projects_locations_collections_data_stores_complete_query
- projects_locations_collections_data_stores_train_custom_model
- projects_locations_data_stores_complete_query
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,
@includeTailSuggestions={{ includeTailSuggestions }},
@query='{{ query }}',
@queryModel='{{ queryModel }}',
@userPseudoId='{{ userPseudoId }}'
;
Trains a custom model.
EXEC google.discoveryengine.data_stores.projects_locations_collections_data_stores_train_custom_model
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@collectionsId='{{ collectionsId }}' --required,
@dataStoresId='{{ dataStoresId }}' --required
@@json=
'{
"errorConfig": "{{ errorConfig }}",
"gcsTrainingInput": "{{ gcsTrainingInput }}",
"modelId": "{{ modelId }}",
"modelType": "{{ modelType }}"
}'
;
Completes the specified user input with keyword suggestions.
EXEC google.discoveryengine.data_stores.projects_locations_data_stores_complete_query
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@dataStoresId='{{ dataStoresId }}' --required,
@includeTailSuggestions={{ includeTailSuggestions }},
@query='{{ query }}',
@queryModel='{{ queryModel }}',
@userPseudoId='{{ userPseudoId }}'
;