public final class GlossaryInputConfig extends GeneratedMessageV3 implements GlossaryInputConfigOrBuilder
Input configuration for glossaries.
Protobuf type google.cloud.translation.v3beta1.GlossaryInputConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static GlossaryInputConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static GlossaryInputConfig.Builder newBuilder()
public static GlossaryInputConfig.Builder newBuilder(GlossaryInputConfig prototype)
public static GlossaryInputConfig parseDelimitedFrom(InputStream input)
public static GlossaryInputConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GlossaryInputConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static GlossaryInputConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GlossaryInputConfig parseFrom(ByteString data)
public static GlossaryInputConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GlossaryInputConfig parseFrom(CodedInputStream input)
public static GlossaryInputConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GlossaryInputConfig parseFrom(InputStream input)
public static GlossaryInputConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GlossaryInputConfig parseFrom(ByteBuffer data)
public static GlossaryInputConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<GlossaryInputConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public GlossaryInputConfig getDefaultInstanceForType()
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.v3beta1.GcsSource gcs_source = 1;
Returns |
---|
Type | Description |
GcsSource | The gcsSource.
|
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.v3beta1.GcsSource gcs_source = 1;
public Parser<GlossaryInputConfig> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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. See documentation for more information -
glossaries.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
Returns |
---|
Type | Description |
boolean | Whether the gcsSource field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GlossaryInputConfig.Builder newBuilderForType()
protected GlossaryInputConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public GlossaryInputConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides