public final class BatchDocumentInputConfig extends GeneratedMessageV3 implements BatchDocumentInputConfigOrBuilder
Input configuration for BatchTranslateDocument request.
Protobuf type google.cloud.translation.v3.BatchDocumentInputConfig
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 BatchDocumentInputConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static BatchDocumentInputConfig.Builder newBuilder()
public static BatchDocumentInputConfig.Builder newBuilder(BatchDocumentInputConfig prototype)
public static BatchDocumentInputConfig parseDelimitedFrom(InputStream input)
public static BatchDocumentInputConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchDocumentInputConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static BatchDocumentInputConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BatchDocumentInputConfig parseFrom(ByteString data)
public static BatchDocumentInputConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchDocumentInputConfig parseFrom(CodedInputStream input)
public static BatchDocumentInputConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchDocumentInputConfig parseFrom(InputStream input)
public static BatchDocumentInputConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchDocumentInputConfig parseFrom(ByteBuffer data)
public static BatchDocumentInputConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<BatchDocumentInputConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public BatchDocumentInputConfig getDefaultInstanceForType()
public GcsSource getGcsSource()
Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.docx
) or a wildcard (for example,
gs://translation-test/*
).
File mime type is determined based on extension. Supported mime type
includes:
pdf
, application/pdf
docx
,
application/vnd.openxmlformats-officedocument.wordprocessingml.document
pptx
,
application/vnd.openxmlformats-officedocument.presentationml.presentation
xlsx
,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
The max file size to support for .docx
, .pptx
and .xlsx
is 100MB.
The max file size to support for .pdf
is 1GB and the max page limit is
1000 pages.
The max file size to support for all input documents is 1GB.
.google.cloud.translation.v3.GcsSource gcs_source = 1;
Returns |
---|
Type | Description |
GcsSource | The gcsSource.
|
public GcsSourceOrBuilder getGcsSourceOrBuilder()
Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.docx
) or a wildcard (for example,
gs://translation-test/*
).
File mime type is determined based on extension. Supported mime type
includes:
pdf
, application/pdf
docx
,
application/vnd.openxmlformats-officedocument.wordprocessingml.document
pptx
,
application/vnd.openxmlformats-officedocument.presentationml.presentation
xlsx
,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
The max file size to support for .docx
, .pptx
and .xlsx
is 100MB.
The max file size to support for .pdf
is 1GB and the max page limit is
1000 pages.
The max file size to support for all input documents is 1GB.
.google.cloud.translation.v3.GcsSource gcs_source = 1;
public Parser<BatchDocumentInputConfig> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public BatchDocumentInputConfig.SourceCase getSourceCase()
public boolean hasGcsSource()
Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.docx
) or a wildcard (for example,
gs://translation-test/*
).
File mime type is determined based on extension. Supported mime type
includes:
pdf
, application/pdf
docx
,
application/vnd.openxmlformats-officedocument.wordprocessingml.document
pptx
,
application/vnd.openxmlformats-officedocument.presentationml.presentation
xlsx
,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
The max file size to support for .docx
, .pptx
and .xlsx
is 100MB.
The max file size to support for .pdf
is 1GB and the max page limit is
1000 pages.
The max file size to support for all input documents is 1GB.
.google.cloud.translation.v3.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 BatchDocumentInputConfig.Builder newBuilderForType()
protected BatchDocumentInputConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public BatchDocumentInputConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides