Class Glossary (3.3.2)

Glossary(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a glossary built from user provided data. .. attribute:: name

Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.

:type: str

Attributes

NameDescription
language_pair google.cloud.translate_v3beta1.types.Glossary.LanguageCodePair
Used with unidirectional glossaries.
language_codes_set google.cloud.translate_v3beta1.types.Glossary.LanguageCodesSet
Used with equivalent term set glossaries.
input_config google.cloud.translate_v3beta1.types.GlossaryInputConfig
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
entry_count int
Output only. The number of entries defined in the glossary.
submit_time google.protobuf.timestamp_pb2.Timestamp
Output only. When CreateGlossary was called.
end_time google.protobuf.timestamp_pb2.Timestamp
Output only. When the glossary creation was finished.

Classes

LanguageCodePair

LanguageCodePair(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Used with unidirectional glossaries. .. attribute:: 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.

:type: str

LanguageCodesSet

LanguageCodesSet(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Used with equivalent term set glossaries. .. attribute:: 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.

:type: Sequence[str]