Resource: GlossaryEntry
Represents a single entry in a glossary.
JSON representation |
---|
{ "name": string, "description": string, // Union field |
Fields | |
---|---|
name |
Required. The resource name of the entry. Format: "projects/*/locations/*/glossaries/*/glossaryEntries/*" |
description |
Describes the glossary entry. |
Union field data . The different data for the glossary types (Unidirectional, Equivalent term sets). data can be only one of the following: |
|
termsPair |
Used for an unidirectional glossary. |
termsSet |
Used for an equivalent term sets glossary. |
GlossaryTermsPair
Represents a single entry for an unidirectional glossary.
JSON representation |
---|
{ "sourceTerm": { object ( |
Fields | |
---|---|
sourceTerm |
The source term is the term that will get match in the text, |
targetTerm |
The term that will replace the match source term. |
GlossaryTerm
Represents a single glossary term
JSON representation |
---|
{ "languageCode": string, "text": string } |
Fields | |
---|---|
languageCode |
The language for this glossary term. |
text |
The text for the glossary term. |
GlossaryTermsSet
Represents 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.
JSON representation |
---|
{
"terms": [
{
object ( |
Fields | |
---|---|
terms[] |
Each term in the set represents a term that can be replaced by the other terms. |
Methods |
|
---|---|
|
Creates a glossary entry. |
|
Deletes a single entry from the glossary |
|
Gets a single glossary entry by the given id. |
|
List the entries for the glossary. |
|
Updates a glossary entry. |