Class BatchProcessRequest.BatchInputConfig.Builder (2.4.3)

public static final class BatchProcessRequest.BatchInputConfig.Builder extends GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder> implements BatchProcessRequest.BatchInputConfigOrBuilder

The message for input config in batch process.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchProcessRequest.BatchInputConfig build()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig

buildPartial()

public BatchProcessRequest.BatchInputConfig buildPartial()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig

clear()

public BatchProcessRequest.BatchInputConfig.Builder clear()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchProcessRequest.BatchInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder
Overrides

clearGcsSource()

public BatchProcessRequest.BatchInputConfig.Builder clearGcsSource()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

clearMimeType()

public BatchProcessRequest.BatchInputConfig.Builder clearMimeType()

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BatchProcessRequest.BatchInputConfig.Builder clone()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder
Overrides

getDefaultInstanceForType()

public BatchProcessRequest.BatchInputConfig getDefaultInstanceForType()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public String getGcsSource()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
TypeDescription
String

The gcsSource.

getGcsSourceBytes()

public ByteString getGcsSourceBytes()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
TypeDescription
ByteString

The bytes for gcsSource.

getMimeType()

public String getMimeType()

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchProcessRequest.BatchInputConfig other)

public BatchProcessRequest.BatchInputConfig.Builder mergeFrom(BatchProcessRequest.BatchInputConfig other)
Parameter
NameDescription
otherBatchProcessRequest.BatchInputConfig
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BatchProcessRequest.BatchInputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BatchProcessRequest.BatchInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder
Overrides

setGcsSource(String value)

public BatchProcessRequest.BatchInputConfig.Builder setGcsSource(String value)

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Parameter
NameDescription
valueString

The gcsSource to set.

Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

setGcsSourceBytes(ByteString value)

public BatchProcessRequest.BatchInputConfig.Builder setGcsSourceBytes(ByteString value)

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Parameter
NameDescription
valueByteString

The bytes for gcsSource to set.

Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

setMimeType(String value)

public BatchProcessRequest.BatchInputConfig.Builder setMimeType(String value)

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Parameter
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public BatchProcessRequest.BatchInputConfig.Builder setMimeTypeBytes(ByteString value)

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Parameter
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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