public static final class GlossaryInputConfig.Builder extends GeneratedMessageV3.Builder<GlossaryInputConfig.Builder> implements GlossaryInputConfigOrBuilder
Input configuration for glossaries.
Protobuf type google.cloud.translation.v3beta1.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()
Methods
public GlossaryInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GlossaryInputConfig build()
public GlossaryInputConfig buildPartial()
public GlossaryInputConfig.Builder clear()
Overrides
public GlossaryInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
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;
public GlossaryInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public GlossaryInputConfig.Builder clearSource()
public GlossaryInputConfig.Builder clone()
Overrides
public GlossaryInputConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
GcsSource | The gcsSource.
|
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;
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;
public GlossaryInputConfig.SourceCase getSourceCase()
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()
Overrides
public final boolean isInitialized()
Overrides
public GlossaryInputConfig.Builder mergeFrom(GlossaryInputConfig other)
public GlossaryInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public GlossaryInputConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
public final GlossaryInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public GlossaryInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
public GlossaryInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final GlossaryInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides