Skip to main content

examples

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

Overview

Nameexamples
TypeResource
Idgoogle.dialogflow.examples

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
actionsarray
conversationStatestring (OUTPUT_STATE_UNSPECIFIED, OUTPUT_STATE_OK, OUTPUT_STATE_CANCELLED, OUTPUT_STATE_FAILED, OUTPUT_STATE_ESCALATED, OUTPUT_STATE_PENDING)
createTimestring (google-datetime)
descriptionstring
displayNamestring
languageCodestring
playbookInputobject (id: GoogleCloudDialogflowCxV3PlaybookInput)
playbookOutputobject (id: GoogleCloudDialogflowCxV3PlaybookOutput)
tokenCountstring (int64)
updateTimestring (google-datetime)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_playbooks_examples_getselectprojectsId, locationsId, agentsId, playbooksId, examplesId
projects_locations_agents_playbooks_examples_listselectprojectsId, locationsId, agentsId, playbooksIdlanguageCode, pageSize, pageToken
projects_locations_agents_playbooks_examples_createinsertprojectsId, locationsId, agentsId, playbooksId
projects_locations_agents_playbooks_examples_patchupdateprojectsId, locationsId, agentsId, playbooksId, examplesIdupdateMask
projects_locations_agents_playbooks_examples_deletedeleteprojectsId, locationsId, agentsId, playbooksId, examplesId

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
agentsIdstring
examplesIdstring
locationsIdstring
playbooksIdstring
projectsIdstring
languageCodestring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Successful response

SELECT
name,
actions,
conversationState,
createTime,
description,
displayName,
languageCode,
playbookInput,
playbookOutput,
tokenCount,
updateTime
FROM google.dialogflow.examples
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND playbooksId = '{{ playbooksId }}' -- required
AND examplesId = '{{ examplesId }}' -- required
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.examples (
data__playbookOutput,
data__displayName,
data__conversationState,
data__name,
data__languageCode,
data__playbookInput,
data__description,
data__actions,
projectsId,
locationsId,
agentsId,
playbooksId
)
SELECT
'{{ playbookOutput }}',
'{{ displayName }}',
'{{ conversationState }}',
'{{ name }}',
'{{ languageCode }}',
'{{ playbookInput }}',
'{{ description }}',
'{{ actions }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}',
'{{ playbooksId }}'
RETURNING
name,
actions,
conversationState,
createTime,
description,
displayName,
languageCode,
playbookInput,
playbookOutput,
tokenCount,
updateTime
;

UPDATE examples

No description available.

UPDATE google.dialogflow.examples
SET
data__playbookOutput = '{{ playbookOutput }}',
data__displayName = '{{ displayName }}',
data__conversationState = '{{ conversationState }}',
data__name = '{{ name }}',
data__languageCode = '{{ languageCode }}',
data__playbookInput = '{{ playbookInput }}',
data__description = '{{ description }}',
data__actions = '{{ actions }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND playbooksId = '{{ playbooksId }}' --required
AND examplesId = '{{ examplesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
actions,
conversationState,
createTime,
description,
displayName,
languageCode,
playbookInput,
playbookOutput,
tokenCount,
updateTime;

DELETE examples

No description available.

DELETE FROM google.dialogflow.examples
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND playbooksId = '{{ playbooksId }}' --required
AND examplesId = '{{ examplesId }}' --required
;