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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public GlossaryInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public GlossaryInputConfig build()
Returns
public GlossaryInputConfig buildPartial()
Returns
public GlossaryInputConfig.Builder clear()
Returns
Overrides
public GlossaryInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public GlossaryInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public GlossaryInputConfig.Builder clearSource()
Returns
public GlossaryInputConfig.Builder clone()
Returns
Overrides
public GlossaryInputConfig getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
public GlossaryInputConfig.SourceCase getSourceCase()
Returns
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
Type | Description |
boolean | Whether the gcsSource field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public GlossaryInputConfig.Builder mergeFrom(GlossaryInputConfig other)
Parameter
Returns
public GlossaryInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public GlossaryInputConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
public final GlossaryInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public GlossaryInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
public GlossaryInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final GlossaryInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides