Class BatchDocumentInputConfig.Builder (2.48.0)

public static final class BatchDocumentInputConfig.Builder extends GeneratedMessageV3.Builder<BatchDocumentInputConfig.Builder> implements BatchDocumentInputConfigOrBuilder

Input configuration for BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchDocumentInputConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchDocumentInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

build()

public BatchDocumentInputConfig build()
Returns
Type Description
BatchDocumentInputConfig

buildPartial()

public BatchDocumentInputConfig buildPartial()
Returns
Type Description
BatchDocumentInputConfig

clear()

public BatchDocumentInputConfig.Builder clear()
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchDocumentInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

clearGcsSource()

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.v3.GcsSource gcs_source = 1;

Returns
Type Description
BatchDocumentInputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchDocumentInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

clearSource()

public BatchDocumentInputConfig.Builder clearSource()
Returns
Type Description
BatchDocumentInputConfig.Builder

clone()

public BatchDocumentInputConfig.Builder clone()
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

getDefaultInstanceForType()

public BatchDocumentInputConfig getDefaultInstanceForType()
Returns
Type Description
BatchDocumentInputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcsSource()

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.

getGcsSourceBuilder()

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.v3.GcsSource gcs_source = 1;

Returns
Type Description
GcsSource.Builder

getGcsSourceOrBuilder()

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;

Returns
Type Description
GcsSourceOrBuilder

getSourceCase()

public BatchDocumentInputConfig.SourceCase getSourceCase()
Returns
Type Description
BatchDocumentInputConfig.SourceCase

hasGcsSource()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDocumentInputConfig other)

public BatchDocumentInputConfig.Builder mergeFrom(BatchDocumentInputConfig other)
Parameter
Name Description
other BatchDocumentInputConfig
Returns
Type Description
BatchDocumentInputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchDocumentInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchDocumentInputConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

mergeGcsSource(GcsSource value)

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.v3.GcsSource gcs_source = 1;

Parameter
Name Description
value GcsSource
Returns
Type Description
BatchDocumentInputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchDocumentInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BatchDocumentInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

setGcsSource(GcsSource value)

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.v3.GcsSource gcs_source = 1;

Parameter
Name Description
value GcsSource
Returns
Type Description
BatchDocumentInputConfig.Builder

setGcsSource(GcsSource.Builder builderForValue)

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.v3.GcsSource gcs_source = 1;

Parameter
Name Description
builderForValue GcsSource.Builder
Returns
Type Description
BatchDocumentInputConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchDocumentInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchDocumentInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchDocumentInputConfig.Builder
Overrides