Resource: Glossary
Represents a glossary built from user provided data.
| JSON representation | 
|---|
| { "name": string, "inputConfig": { object ( | 
| Fields | |
|---|---|
| name | 
 Required. The resource name of the glossary. Glossary names have the form  | 
| inputConfig | 
 Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints. | 
| entryCount | 
 Output only. The number of entries defined in the glossary. | 
| submitTime | 
 Output only. When glossaries.create was called. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:  | 
| endTime | 
 Output only. When the glossary creation was finished. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:  | 
| Union field languages. Languages supported by the glossary.languagescan be only one of the following: | |
| languagePair | 
 Used with unidirectional glossaries. | 
| languageCodesSet | 
 Used with equivalent term set glossaries. | 
LanguageCodePair
Used with unidirectional glossaries.
| JSON representation | 
|---|
| { "sourceLanguageCode": string, "targetLanguageCode": string } | 
| Fields | |
|---|---|
| sourceLanguageCode | 
 Required. The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code. | 
| targetLanguageCode | 
 Required. The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. | 
LanguageCodesSet
Used with equivalent term set glossaries.
| JSON representation | 
|---|
| { "languageCodes": [ string ] } | 
| Fields | |
|---|---|
| languageCodes[] | 
 The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code. | 
GlossaryInputConfig
Input configuration for glossaries.
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field source. Required. Specify the input.sourcecan be only one of the following: | |
| gcsSource | 
 Required. Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns  For unidirectional glossaries: 
 For equivalent term sets glossaries: 
 | 
GcsSource
The Google Cloud Storage location for the input content.
| JSON representation | 
|---|
| { "inputUri": string } | 
| Fields | |
|---|---|
| inputUri | 
 Required. Source data URI. For example,  | 
| Methods | |
|---|---|
| 
 | Creates a glossary and returns the long-running operation. | 
| 
 | Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. | 
| 
 | Gets a glossary. | 
| 
 | Lists glossaries in a project. |