public final class GlossaryInputConfig extends GeneratedMessageV3 implements GlossaryInputConfigOrBuilder
Input configuration for glossaries.
Protobuf type google.cloud.translation.v3beta1.GlossaryInputConfig
Static Fields
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
Static Methods
public static GlossaryInputConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static GlossaryInputConfig.Builder newBuilder()
Returns
public static GlossaryInputConfig.Builder newBuilder(GlossaryInputConfig prototype)
Parameter
Returns
public static GlossaryInputConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GlossaryInputConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GlossaryInputConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static GlossaryInputConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GlossaryInputConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static GlossaryInputConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GlossaryInputConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GlossaryInputConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GlossaryInputConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GlossaryInputConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GlossaryInputConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static GlossaryInputConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<GlossaryInputConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public GlossaryInputConfig getDefaultInstanceForType()
Returns
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 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 Parser<GlossaryInputConfig> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public GlossaryInputConfig.SourceCase getSourceCase()
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public GlossaryInputConfig.Builder newBuilderForType()
Returns
protected GlossaryInputConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public GlossaryInputConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions