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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the entry. Format: projects/*/locations/*/glossaries/*/glossaryEntries/*
descriptionstringDescribes the glossary entry.
termsPairobjectUsed for an unidirectional glossary. (id: GlossaryTermsPair)
termsSetobjectUsed for an equivalent term sets glossary. (id: GlossaryTermsSet)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_glossaries_glossary_entries_getselectprojectsId, locationsId, glossariesId, glossaryEntriesIdGets a single glossary entry by the given id.
projects_locations_glossaries_glossary_entries_listselectprojectsId, locationsId, glossariesIdpageSize, pageTokenList the entries for the glossary.
projects_locations_glossaries_glossary_entries_createinsertprojectsId, locationsId, glossariesIdCreates a glossary entry.
projects_locations_glossaries_glossary_entries_patchupdateprojectsId, locationsId, glossariesId, glossaryEntriesIdUpdates a glossary entry.
projects_locations_glossaries_glossary_entries_deletedeleteprojectsId, locationsId, glossariesId, glossaryEntriesIdDeletes a single entry from the glossary

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
glossariesIdstring
glossaryEntriesIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a single glossary entry by the given id.

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

INSERT examples

Creates a glossary entry.

INSERT INTO google.translate.glossary_entries (
data__name,
data__termsPair,
data__termsSet,
data__description,
projectsId,
locationsId,
glossariesId
)
SELECT
'{{ name }}',
'{{ termsPair }}',
'{{ termsSet }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ glossariesId }}'
RETURNING
name,
description,
termsPair,
termsSet
;

UPDATE examples

Updates a glossary entry.

UPDATE google.translate.glossary_entries
SET
data__name = '{{ name }}',
data__termsPair = '{{ termsPair }}',
data__termsSet = '{{ termsSet }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND glossariesId = '{{ glossariesId }}' --required
AND glossaryEntriesId = '{{ glossaryEntriesId }}' --required
RETURNING
name,
description,
termsPair,
termsSet;

DELETE examples

Deletes a single entry from the glossary

DELETE FROM google.translate.glossary_entries
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND glossariesId = '{{ glossariesId }}' --required
AND glossaryEntriesId = '{{ glossaryEntriesId }}' --required;