Skip to main content

custom_classes

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

Overview

Namecustom_classes
TypeResource
Idgoogle.speech.custom_classes

Fields

NameDatatypeDescription
valuestringThe class item's value.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomClassesId, locationsId, projectsIdGet a custom class.
listSELECTlocationsId, projectsIdList custom classes.
createINSERTlocationsId, projectsIdCreate a custom class.
deleteDELETEcustomClassesId, locationsId, projectsIdDelete a custom class.
patchUPDATEcustomClassesId, locationsId, projectsIdUpdate a custom class.

SELECT examples

List custom classes.

SELECT
value
FROM google.speech.custom_classes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.speech.custom_classes (
locationsId,
projectsId,
customClassId,
customClass
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ customClassId }}',
'{{ customClass }}'
;

UPDATE example

Updates a custom_classes resource.

/*+ update */
UPDATE google.speech.custom_classes
SET
name = '{{ name }}',
customClassId = '{{ customClassId }}',
items = '{{ items }}'
WHERE
customClassesId = '{{ customClassesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified custom_classes resource.

/*+ delete */
DELETE FROM google.speech.custom_classes
WHERE customClassesId = '{{ customClassesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';