public static final class BatchDocumentInputConfig.Builder extends GeneratedMessageV3.Builder<BatchDocumentInputConfig.Builder> implements BatchDocumentInputConfigOrBuilder
Input configuration for BatchTranslateDocument request.
Protobuf type google.cloud.translation.v3beta1.BatchDocumentInputConfig
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public BatchDocumentInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchDocumentInputConfig build()
Returns
public BatchDocumentInputConfig buildPartial()
Returns
public BatchDocumentInputConfig.Builder clear()
Returns
Overrides
public BatchDocumentInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BatchDocumentInputConfig.Builder clearGcsSource()
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.v3beta1.GcsSource gcs_source = 1;
Returns
public BatchDocumentInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public BatchDocumentInputConfig.Builder clearSource()
Returns
public BatchDocumentInputConfig.Builder clone()
Returns
Overrides
public BatchDocumentInputConfig getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.v3beta1.GcsSource gcs_source = 1;
Returns
public GcsSource.Builder getGcsSourceBuilder()
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.v3beta1.GcsSource gcs_source = 1;
Returns
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.v3beta1.GcsSource gcs_source = 1;
Returns
public BatchDocumentInputConfig.SourceCase getSourceCase()
Returns
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.v3beta1.GcsSource gcs_source = 1;
Returns
Type | Description |
boolean | Whether the gcsSource field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchDocumentInputConfig.Builder mergeFrom(BatchDocumentInputConfig other)
Parameter
Returns
public BatchDocumentInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchDocumentInputConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public BatchDocumentInputConfig.Builder mergeGcsSource(GcsSource value)
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.v3beta1.GcsSource gcs_source = 1;
Parameter
Returns
public final BatchDocumentInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public BatchDocumentInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchDocumentInputConfig.Builder setGcsSource(GcsSource value)
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.v3beta1.GcsSource gcs_source = 1;
Parameter
Returns
public BatchDocumentInputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
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.v3beta1.GcsSource gcs_source = 1;
Parameter
Returns
public BatchDocumentInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final BatchDocumentInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides