Skip to main content

engines

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

Overview

Nameengines
TypeResource
Idgoogle.discoveryengine.engines

Fields

NameDatatypeDescription
namestringImmutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine} engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
chatEngineConfigobjectConfigurations for a Chat Engine.
chatEngineMetadataobjectAdditional information of a Chat Engine. Fields in this message are output only.
commonConfigobjectCommon configurations for an Engine.
createTimestringOutput only. Timestamp the Recommendation Engine was created at.
dataStoreIdsarrayThe data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.
displayNamestringRequired. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.
industryVerticalstringThe industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: If unspecified, default to GENERIC. Vertical on Engine has to match vertical of the DataStore linked to the engine.
searchEngineConfigobjectConfigurations for a Search Engine.
solutionTypestringRequired. The solutions of the engine.
updateTimestringOutput only. Timestamp the Recommendation Engine was last updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_collections_engines_getSELECTcollectionsId, enginesId, locationsId, projectsIdGets a Engine.
projects_locations_collections_engines_listSELECTcollectionsId, locationsId, projectsIdLists all the Engines associated with the project.
projects_locations_collections_engines_createINSERTcollectionsId, locationsId, projectsIdCreates a Engine.
projects_locations_collections_engines_deleteDELETEcollectionsId, enginesId, locationsId, projectsIdDeletes a Engine.
projects_locations_collections_engines_patchUPDATEcollectionsId, enginesId, locationsId, projectsIdUpdates an Engine

SELECT examples

Lists all the Engines associated with the project.

SELECT
name,
chatEngineConfig,
chatEngineMetadata,
commonConfig,
createTime,
dataStoreIds,
displayName,
industryVertical,
searchEngineConfig,
solutionType,
updateTime
FROM google.discoveryengine.engines
WHERE collectionsId = '{{ collectionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new engines resource.

/*+ create */
INSERT INTO google.discoveryengine.engines (
collectionsId,
locationsId,
projectsId,
chatEngineConfig,
searchEngineConfig,
name,
displayName,
dataStoreIds,
solutionType,
industryVertical,
commonConfig
)
SELECT
'{{ collectionsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ chatEngineConfig }}',
'{{ searchEngineConfig }}',
'{{ name }}',
'{{ displayName }}',
'{{ dataStoreIds }}',
'{{ solutionType }}',
'{{ industryVertical }}',
'{{ commonConfig }}'
;

UPDATE example

Updates a engines resource.

/*+ update */
UPDATE google.discoveryengine.engines
SET
chatEngineConfig = '{{ chatEngineConfig }}',
searchEngineConfig = '{{ searchEngineConfig }}',
name = '{{ name }}',
displayName = '{{ displayName }}',
dataStoreIds = '{{ dataStoreIds }}',
solutionType = '{{ solutionType }}',
industryVertical = '{{ industryVertical }}',
commonConfig = '{{ commonConfig }}'
WHERE
collectionsId = '{{ collectionsId }}'
AND enginesId = '{{ enginesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified engines resource.

/*+ delete */
DELETE FROM google.discoveryengine.engines
WHERE collectionsId = '{{ collectionsId }}'
AND enginesId = '{{ enginesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';