Skip to main content

engines

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

Overview

Nameengines
TypeResource
Idgoogle.discoveryengine.engines

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. 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 the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. (id: GoogleCloudDiscoveryengineV1EngineChatEngineConfig)
chatEngineMetadataobjectOutput only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. (id: GoogleCloudDiscoveryengineV1EngineChatEngineMetadata)
commonConfigobjectCommon config spec that specifies the metadata of the engine. (id: GoogleCloudDiscoveryengineV1EngineCommonConfig)
createTimestring (google-datetime)Output only. Timestamp the Recommendation Engine was created at.
dataStoreIdsarrayOptional. The 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.
disableAnalyticsbooleanOptional. Whether to disable analytics for searches performed on this engine.
displayNamestringRequired. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.
featuresobjectOptional. Feature config for the engine to opt in or opt out of features. Supported keys: * *: all features, if it's present, all other feature state settings are ignored. * agent-gallery * no-code-agent-builder * prompt-gallery * model-selector * notebook-lm * people-search * people-search-org-chart * bi-directional-audio * feedback * session-sharing * personalization-memory - Enables personalization based on user preferences.
industryVerticalstringOptional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.
mediaRecommendationEngineConfigobjectConfigurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. (id: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig)
searchEngineConfigobjectConfigurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. (id: GoogleCloudDiscoveryengineV1EngineSearchEngineConfig)
solutionTypestringRequired. The solutions of the engine.
updateTimestring (google-datetime)Output only. Timestamp the Recommendation Engine was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_collections_engines_getselectprojectsId, locationsId, collectionsId, enginesIdGets a Engine.
projects_locations_collections_engines_listselectprojectsId, locationsId, collectionsIdpageSize, pageToken, filterLists all the Engines associated with the project.
projects_locations_collections_engines_createinsertprojectsId, locationsId, collectionsIdengineIdCreates a Engine.
projects_locations_collections_engines_patchupdateprojectsId, locationsId, collectionsId, enginesIdupdateMaskUpdates an Engine
projects_locations_collections_engines_deletedeleteprojectsId, locationsId, collectionsId, enginesIdDeletes a Engine.

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
enginesIdstring
locationsIdstring
projectsIdstring
engineIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a Engine.

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

INSERT examples

Creates a Engine.

INSERT INTO google.discoveryengine.engines (
data__chatEngineConfig,
data__searchEngineConfig,
data__mediaRecommendationEngineConfig,
data__name,
data__displayName,
data__dataStoreIds,
data__solutionType,
data__industryVertical,
data__commonConfig,
data__disableAnalytics,
data__features,
projectsId,
locationsId,
collectionsId,
engineId
)
SELECT
'{{ chatEngineConfig }}',
'{{ searchEngineConfig }}',
'{{ mediaRecommendationEngineConfig }}',
'{{ name }}',
'{{ displayName }}',
'{{ dataStoreIds }}',
'{{ solutionType }}',
'{{ industryVertical }}',
'{{ commonConfig }}',
{{ disableAnalytics }},
'{{ features }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ collectionsId }}',
'{{ engineId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an Engine

UPDATE google.discoveryengine.engines
SET
data__chatEngineConfig = '{{ chatEngineConfig }}',
data__searchEngineConfig = '{{ searchEngineConfig }}',
data__mediaRecommendationEngineConfig = '{{ mediaRecommendationEngineConfig }}',
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__dataStoreIds = '{{ dataStoreIds }}',
data__solutionType = '{{ solutionType }}',
data__industryVertical = '{{ industryVertical }}',
data__commonConfig = '{{ commonConfig }}',
data__disableAnalytics = {{ disableAnalytics }},
data__features = '{{ features }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND collectionsId = '{{ collectionsId }}' --required
AND enginesId = '{{ enginesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
chatEngineConfig,
chatEngineMetadata,
commonConfig,
createTime,
dataStoreIds,
disableAnalytics,
displayName,
features,
industryVertical,
mediaRecommendationEngineConfig,
searchEngineConfig,
solutionType,
updateTime;

DELETE examples

Deletes a Engine.

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