Cloud Translation V3 Client - Class GlossaryEntry (1.20.0)

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 GlossaryEntry\GlossaryTermsPair

Used for an unidirectional glossary.

↳ terms_set 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
GlossaryEntry\GlossaryTermsPair|null

hasTermsPair

setTermsPair

Used for an unidirectional glossary.

Parameter
Name Description
var GlossaryEntry\GlossaryTermsPair
Returns
Type Description
$this

getTermsSet

Used for an equivalent term sets glossary.

Returns
Type Description
GlossaryEntry\GlossaryTermsSet|null

hasTermsSet

setTermsSet

Used for an equivalent term sets glossary.

Parameter
Name Description
var 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