Cloud Translation V3 Client - Class GlossaryInputConfig (1.17.7)

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

Input configuration for glossaries.

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

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ gcs_source Google\Cloud\Translate\V3\GcsSource

Required. Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): Two column file, tab- or comma-separated. The first column is source text. The second column is target text. No headers in this file. The first row contains data and not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.

getGcsSource

Required. Google Cloud Storage location of glossary data.

File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries:

  • TSV/CSV (.tsv/.csv): Two column file, tab- or comma-separated. The first column is source text. The second column is target text. No headers in this file. The first row contains data and not column names.
  • TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries:
  • CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
Returns
Type Description
Google\Cloud\Translate\V3\GcsSource|null

hasGcsSource

setGcsSource

Required. Google Cloud Storage location of glossary data.

File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries:

  • TSV/CSV (.tsv/.csv): Two column file, tab- or comma-separated. The first column is source text. The second column is target text. No headers in this file. The first row contains data and not column names.
  • TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries:
  • CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
Parameter
Name Description
var Google\Cloud\Translate\V3\GcsSource
Returns
Type Description
$this

getSource

Returns
Type Description
string