Resource: Glossary
Represents a glossary built from user provided data.
JSON representation |
---|
{ "name": string, "input_config": { object ( |
Fields | |
---|---|
name |
Required. The resource name of the glossary. Glossary names have the form |
input_config |
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints. |
entry_count |
Output only. The number of entries defined in the glossary. |
submit_time |
Output only. When glossaries.create was called. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end_time |
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: |
display_name |
Optional. The display name of the glossary. |
Union field languages . Languages supported by the glossary. languages can be only one of the following: |
|
language_pair |
Used with unidirectional glossaries. |
language_codes_set |
Used with equivalent term set glossaries. |
LanguageCodePair
Used with unidirectional glossaries.
JSON representation |
---|
{ "source_language_code": string, "target_language_code": string } |
Fields | |
---|---|
source_language_code |
Required. The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code. |
target_language_code |
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 |
---|
{ "language_codes": [ string ] } |
Fields | |
---|---|
language_codes[] |
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 |
---|
{
"s3_source": {
object ( |
Fields | |
---|---|
s3_source |
Required. Storage location of glossary data. File format is determined based on the filename extension. API returns For unidirectional glossaries:
For equivalent term sets glossaries:
|
S3Source
The storage location for the input content.
JSON representation |
---|
{ "input_uri": string } |
Fields | |
---|---|
input_uri |
Required. Source data URI. For example, |
Methods |
|
---|---|
|
Creates a glossary and returns the long-running operation. |
|
Deletes a glossary if the glossary hasn't been created. |
|
Gets a glossary. |
|
Lists glossaries in a project. |