Class GlossaryInputConfig.Builder (2.30.0)

public static final class GlossaryInputConfig.Builder extends GeneratedMessageV3.Builder<GlossaryInputConfig.Builder> implements GlossaryInputConfigOrBuilder

Input configuration for glossaries.

Protobuf type google.cloud.translation.v3.GlossaryInputConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GlossaryInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

build()

public GlossaryInputConfig build()
Returns
TypeDescription
GlossaryInputConfig

buildPartial()

public GlossaryInputConfig buildPartial()
Returns
TypeDescription
GlossaryInputConfig

clear()

public GlossaryInputConfig.Builder clear()
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GlossaryInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

clearGcsSource()

public GlossaryInputConfig.Builder clearGcsSource()

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.

.google.cloud.translation.v3.GcsSource gcs_source = 1;

Returns
TypeDescription
GlossaryInputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GlossaryInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

clearSource()

public GlossaryInputConfig.Builder clearSource()
Returns
TypeDescription
GlossaryInputConfig.Builder

clone()

public GlossaryInputConfig.Builder clone()
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

getDefaultInstanceForType()

public GlossaryInputConfig getDefaultInstanceForType()
Returns
TypeDescription
GlossaryInputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public GcsSource 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.

.google.cloud.translation.v3.GcsSource gcs_source = 1;

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

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 n