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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 BatchDocumentInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchDocumentInputConfig build()
public BatchDocumentInputConfig buildPartial()
public BatchDocumentInputConfig.Builder clear()
Overrides
public BatchDocumentInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
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;
public BatchDocumentInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public BatchDocumentInputConfig.Builder clearSource()
public BatchDocumentInputConfig.Builder clone()
Overrides
public BatchDocumentInputConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
GcsSource |
The gcsSource.
|
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;
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;
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.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 BatchDocumentInputConfig.Builder mergeFrom(BatchDocumentInputConfig other)
public BatchDocumentInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public BatchDocumentInputConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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;
public final BatchDocumentInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public BatchDocumentInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
public BatchDocumentInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final BatchDocumentInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides