Class BatchDocumentInputConfig.Builder (2.16.0)

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchDocumentInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides

build()

public BatchDocumentInputConfig build()
Returns
TypeDescription
BatchDocumentInputConfig

buildPartial()

public BatchDocumentInputConfig buildPartial()
Returns
TypeDescription
BatchDocumentInputConfig

clear()

public BatchDocumentInputConfig.Builder clear()
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchDocumentInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
BatchDocumentInputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchDocumentInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides

clearSource()

public BatchDocumentInputConfig.Builder clearSource()
Returns
TypeDescription
BatchDocumentInputConfig.Builder

clone()

public BatchDocumentInputConfig.Builder clone()
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides

getDefaultInstanceForType()

public BatchDocumentInputConfig getDefaultInstanceForType()
Returns
TypeDescription
BatchDocumentInputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
GcsSourceOrBuilder

getSourceCase()

public BatchDocumentInputConfig.SourceCase getSourceCase()
Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchDocumentInputConfig other)

public BatchDocumentInputConfig.Builder mergeFrom(BatchDocumentInputConfig other)
Parameter
NameDescription
otherBatchDocumentInputConfig
Returns
TypeDescription
BatchDocumentInputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchDocumentInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchDocumentInputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
BatchDocumentInputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchDocumentInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BatchDocumentInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
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.v3beta1.GcsSource gcs_source = 1;

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
BatchDocumentInputConfig.Builder

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

public BatchDocumentInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchDocumentInputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchDocumentInputConfig.Builder
Overrides