Class BatchProcessRequest.BatchInputConfig.Builder (2.50.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchProcessRequest.BatchInputConfig build()
Returns
Type Description
BatchProcessRequest.BatchInputConfig

buildPartial()

public BatchProcessRequest.BatchInputConfig buildPartial()
Returns
Type Description
BatchProcessRequest.BatchInputConfig

clear()

public BatchProcessRequest.BatchInputConfig.Builder clear()
Returns
Type Description
BatchProcessRequest.BatchInputConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchProcessRequest.BatchInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

clearMimeType()

public BatchProcessRequest.BatchInputConfig.Builder clearMimeType()

An IANA published media type (MIME type) of the input. If the input is a raw document, refer to supported file types for the list of media types. If the input is a Document, the type should be application/json.

string mime_type = 2;

Returns
Type Description
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BatchProcessRequest.BatchInputConfig.Builder clone()
Returns
Type Description
BatchProcessRequest.BatchInputConfig.Builder
Overrides

getDefaultInstanceForType()

public BatchProcessRequest.BatchInputConfig getDefaultInstanceForType()
Returns
Type Description
BatchProcessRequest.BatchInputConfig

getDescriptorForType()

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

getGcsSource()

public String getGcsSource()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
Type Description
String

The gcsSource.

getGcsSourceBytes()

public ByteString getGcsSourceBytes()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
Type Description
ByteString

The bytes for gcsSource.

getMimeType()

public String getMimeType()

An IANA published media type (MIME type) of the input. If the input is a raw document, refer to supported file types for the list of media types. If the input is a Document, the type should be application/json.

string mime_type = 2;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

An IANA published media type (MIME type) of the input. If the input is a raw document, refer to supported file types for the list of media types. If the input is a Document, the type should be application/json.

string mime_type = 2;

Returns
Type Description
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchProcessRequest.BatchInputConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BatchProcessRequest.BatchInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The gcsSource to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for gcsSource to set.

Returns
Type Description
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

setMimeType(String value)

public BatchProcessRequest.BatchInputConfig.Builder setMimeType(String value)

An IANA published media type (MIME type) of the input. If the input is a raw document, refer to supported file types for the list of media types. If the input is a Document, the type should be application/json.

string mime_type = 2;

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
BatchProcessRequest.BatchInputConfig.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public BatchProcessRequest.BatchInputConfig.Builder setMimeTypeBytes(ByteString value)

An IANA published media type (MIME type) of the input. If the input is a raw document, refer to supported file types for the list of media types. If the input is a Document, the type should be application/json.

string mime_type = 2;

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchProcessRequest.BatchInputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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