Cloud Translation V3 Client - Class Glossary (1.13.3)

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.

Parameters
NameDescription
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 Google\Cloud\Translate\V3\Glossary\LanguageCodePair

Used with unidirectional glossaries.

↳ language_codes_set Google\Cloud\Translate\V3\Glossary\LanguageCodesSet

Used with equivalent term set glossaries.

↳ 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 Google\Protobuf\Timestamp

Output only. When CreateGlossary was called.

↳ end_time Google\Protobuf\Timestamp

Output only. When the glossary creation was finished.

↳ display_name string

Optional. The display name of the glossary.

getName

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

Returns
TypeDescription
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}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLanguagePair

Used with unidirectional glossaries.

Returns
TypeDescription
Google\Cloud\Translate\V3\Glossary\LanguageCodePair|null

hasLanguagePair

setLanguagePair

Used with unidirectional glossaries.

Parameter
NameDescription
var Google\Cloud\Translate\V3\Glossary\LanguageCodePair
Returns
TypeDescription
$this

getLanguageCodesSet

Used with equivalent term set glossaries.

Returns
TypeDescription
Google\Cloud\Translate\V3\Glossary\LanguageCodesSet|null

hasLanguageCodesSet

setLanguageCodesSet

Used with equivalent term set glossaries.

Parameter
NameDescription
var Google\Cloud\Translate\V3\Glossary\LanguageCodesSet
Returns
TypeDescription
$this

getInputConfig

Required. Provides examples to build the glossary from.

Total glossary must not exceed 10M Unicode codepoints.

Returns
TypeDescription
Google\Cloud\Translate\V3\GlossaryInputConfig|null

hasInputConfig

clearInputConfig

setInputConfig

Required. Provides examples to build the glossary from.

Total glossary must not exceed 10M Unicode codepoints.

Parameter
NameDescription
var Google\Cloud\Translate\V3\GlossaryInputConfig
Returns
TypeDescription
$this

getEntryCount

Output only. The number of entries defined in the glossary.

Returns
TypeDescription
int

setEntryCount

Output only. The number of entries defined in the glossary.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSubmitTime

Output only. When CreateGlossary was called.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasSubmitTime

clearSubmitTime

setSubmitTime

Output only. When CreateGlossary was called.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

Output only. When the glossary creation was finished.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. When the glossary creation was finished.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDisplayName

Optional. The display name of the glossary.

Returns
TypeDescription
string

setDisplayName

Optional. The display name of the glossary.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLanguages

Returns
TypeDescription
string