Skip to main content

glossary_entries

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

Overview

Nameglossary_entries
TypeResource
Idgoogle.translate.glossary_entries

Fields

NameDatatypeDescription
namestringIdentifier. The resource name of the entry. Format: projects/*/locations/*/glossaries/*/glossaryEntries/*
descriptionstringDescribes the glossary entry.
termsPairobjectRepresents a single entry for an unidirectional glossary.
termsSetobjectRepresents a single entry for an equivalent term set glossary. This is used for equivalent term sets where each term can be replaced by the other terms in the set.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_glossaries_glossary_entries_getSELECTglossariesId, glossaryEntriesId, locationsId, projectsIdGets a single glossary entry by the given id.
projects_locations_glossaries_glossary_entries_listSELECTglossariesId, locationsId, projectsIdList the entries for the glossary.
projects_locations_glossaries_glossary_entries_createINSERTglossariesId, locationsId, projectsIdCreates a glossary entry.
projects_locations_glossaries_glossary_entries_deleteDELETEglossariesId, glossaryEntriesId, locationsId, projectsIdDeletes a single entry from the glossary
projects_locations_glossaries_glossary_entries_patchUPDATEglossariesId, glossaryEntriesId, locationsId, projectsIdUpdates a glossary entry.

SELECT examples

List the entries for the glossary.

SELECT
name,
description,
termsPair,
termsSet
FROM google.translate.glossary_entries
WHERE glossariesId = '{{ glossariesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.translate.glossary_entries (
glossariesId,
locationsId,
projectsId,
name,
termsPair,
termsSet,
description
)
SELECT
'{{ glossariesId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ termsPair }}',
'{{ termsSet }}',
'{{ description }}'
;

UPDATE example

Updates a glossary_entries resource.

/*+ update */
UPDATE google.translate.glossary_entries
SET
name = '{{ name }}',
termsPair = '{{ termsPair }}',
termsSet = '{{ termsSet }}',
description = '{{ description }}'
WHERE
glossariesId = '{{ glossariesId }}'
AND glossaryEntriesId = '{{ glossaryEntriesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified glossary_entries resource.

/*+ delete */
DELETE FROM google.translate.glossary_entries
WHERE glossariesId = '{{ glossariesId }}'
AND glossaryEntriesId = '{{ glossaryEntriesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';