Cloud Translation V3 Client - Class TranslateTextGlossaryConfig (1.12.12)

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

Configures which glossary should be used for a specific target language, and defines options for applying that glossary.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ glossary string

Required. The glossary to be applied for this translation. The format depends on glossary: - User provided custom glossary: projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}

↳ ignore_case bool

Optional. Indicates match is case-insensitive. Default value is false if missing.

getGlossary

Required. The glossary to be applied for this translation.

The format depends on glossary:

  • User provided custom glossary: projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
Returns
TypeDescription
string

setGlossary

Required. The glossary to be applied for this translation.

The format depends on glossary:

  • User provided custom glossary: projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIgnoreCase

Optional. Indicates match is case-insensitive.

Default value is false if missing.

Returns
TypeDescription
bool

setIgnoreCase

Optional. Indicates match is case-insensitive.

Default value is false if missing.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this