Class GlossaryInputConfig.Builder (2.16.0)

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

Input configuration for glossaries.

Protobuf type google.cloud.translation.v3beta1.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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

.google.cloud.translation.v3beta1.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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

.google.cloud.translation.v3beta1.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 not allowed. This must be a single file in one of the following formats: For unidirectional glossaries:

  • TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

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

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

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

Returns
TypeDescription
GcsSourceOrBuilder

getSourceCase()

public GlossaryInputConfig.SourceCase getSourceCase()
Returns
TypeDescription
GlossaryInputConfig.SourceCase

hasGcsSource()

public boolean hasGcsSource()

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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

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

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GlossaryInputConfig other)

public GlossaryInputConfig.Builder mergeFrom(GlossaryInputConfig other)
Parameter
NameDescription
otherGlossaryInputConfig
Returns
TypeDescription
GlossaryInputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GlossaryInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GlossaryInputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

mergeGcsSource(GcsSource value)

public GlossaryInputConfig.Builder mergeGcsSource(GcsSource value)

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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

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

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
GlossaryInputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GlossaryInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public GlossaryInputConfig.Builder setGcsSource(GcsSource value)

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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

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

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
GlossaryInputConfig.Builder

setGcsSource(GcsSource.Builder builderForValue)

public GlossaryInputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)

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): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, 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. The format is defined for Google Translation Toolkit and documented in Use a glossary.

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

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
GlossaryInputConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GlossaryInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GlossaryInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GlossaryInputConfig.Builder
Overrides