public static final class GlossaryInputConfig.Builder extends GeneratedMessageV3.Builder<GlossaryInputConfig.Builder> implements GlossaryInputConfigOrBuilder
Input configuration for glossaries.
Protobuf type google.cloud.translation.v3.GlossaryInputConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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. See documentation for more information -
glossaries.
.google.cloud.translation.v3.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. See documentation for more information -
glossaries.
.google.cloud.translation.v3.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. See documentation for more information -
glossaries.
.google.cloud.translation.v3.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. See documentation for more information -
glossaries.
.google.cloud.translation.v3.GcsSource gcs_source = 1;
Returns