Reference documentation and code samples for the Cloud Translation V3 Client class Glossary.
Represents a glossary built from user provided data.
Generated from protobuf message google.cloud.translation.v3.Glossary
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
↳ language_pair
↳ language_codes_set
↳ input_config
Google\Cloud\Translate\V3\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
↳ end_time
getName
Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
string
setName
Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
var
string
$this
getLanguagePair
Used with unidirectional glossaries.
hasLanguagePair
setLanguagePair
Used with unidirectional glossaries.
$this
getLanguageCodesSet
Used with equivalent term set glossaries.
hasLanguageCodesSet
setLanguageCodesSet
Used with equivalent term set glossaries.
$this
getInputConfig
Required. Provides examples to build the glossary from.
Total glossary must not exceed 10M Unicode codepoints.
hasInputConfig
clearInputConfig
setInputConfig
Required. Provides examples to build the glossary from.
Total glossary must not exceed 10M Unicode codepoints.
$this
getEntryCount
Output only. The number of entries defined in the glossary.
int
setEntryCount
Output only. The number of entries defined in the glossary.
var
int
$this
getSubmitTime
Output only. When CreateGlossary was called.
hasSubmitTime
clearSubmitTime
setSubmitTime
Output only. When CreateGlossary was called.
$this
getEndTime
Output only. When the glossary creation was finished.
hasEndTime
clearEndTime
setEndTime
Output only. When the glossary creation was finished.
$this
getLanguages
string