Cloud Translation V3 Client - Class GlossaryEntry (1.18.1)

Reference documentation and code samples for the Cloud Translation V3 Client class GlossaryEntry.

Represents a single entry in a glossary.

Generated from protobuf message google.cloud.translation.v3.GlossaryEntry

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name of the entry. Format: projects/*/locations/*/glossaries/*/glossaryEntries/*

↳ terms_pair Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsPair

Used for an unidirectional glossary.

↳ terms_set Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsSet

Used for an equivalent term sets glossary.

↳ description string

Describes the glossary entry.

getName

Identifier. The resource name of the entry.

Format: projects/*/locations/*/glossaries/*/glossaryEntries/*

Returns
Type Description
string

setName

Identifier. The resource name of the entry.

Format: projects/*/locations/*/glossaries/*/glossaryEntries/*

Parameter
Name Description
var string
Returns
Type Description
$this

getTermsPair

Used for an unidirectional glossary.

Returns
Type Description
Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsPair|null

hasTermsPair

setTermsPair

Used for an unidirectional glossary.

Parameter
Name Description
var Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsPair
Returns
Type Description
$this

getTermsSet

Used for an equivalent term sets glossary.

Returns
Type Description
Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsSet|null

hasTermsSet

setTermsSet

Used for an equivalent term sets glossary.

Parameter
Name Description
var Google\Cloud\Translate\V3\GlossaryEntry\GlossaryTermsSet
Returns
Type Description
$this

getDescription

Describes the glossary entry.

Returns
Type Description
string

setDescription

Describes the glossary entry.

Parameter
Name Description
var string
Returns
Type Description
$this

getData

Returns
Type Description
string