Class BatchDocumentsInputConfig.Builder (2.50.0)

public static final class BatchDocumentsInputConfig.Builder extends GeneratedMessageV3.Builder<BatchDocumentsInputConfig.Builder> implements BatchDocumentsInputConfigOrBuilder

The common config to specify a set of documents used as input.

Protobuf type google.cloud.documentai.v1.BatchDocumentsInputConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDocumentsInputConfig build()
Returns
Type Description
BatchDocumentsInputConfig

buildPartial()

public BatchDocumentsInputConfig buildPartial()
Returns
Type Description
BatchDocumentsInputConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcsDocuments()

public BatchDocumentsInputConfig.Builder clearGcsDocuments()

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Returns
Type Description
BatchDocumentsInputConfig.Builder

clearGcsPrefix()

public BatchDocumentsInputConfig.Builder clearGcsPrefix()

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Returns
Type Description
BatchDocumentsInputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

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

clone()

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

getDefaultInstanceForType()

public BatchDocumentsInputConfig getDefaultInstanceForType()
Returns
Type Description
BatchDocumentsInputConfig

getDescriptorForType()

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

getGcsDocuments()

public GcsDocuments getGcsDocuments()

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Returns
Type Description
GcsDocuments

The gcsDocuments.

getGcsDocumentsBuilder()

public GcsDocuments.Builder getGcsDocumentsBuilder()

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Returns
Type Description
GcsDocuments.Builder

getGcsDocumentsOrBuilder()

public GcsDocumentsOrBuilder getGcsDocumentsOrBuilder()

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Returns
Type Description
GcsDocumentsOrBuilder

getGcsPrefix()

public GcsPrefix getGcsPrefix()

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Returns
Type Description
GcsPrefix

The gcsPrefix.

getGcsPrefixBuilder()

public GcsPrefix.Builder getGcsPrefixBuilder()

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Returns
Type Description
GcsPrefix.Builder

getGcsPrefixOrBuilder()

public GcsPrefixOrBuilder getGcsPrefixOrBuilder()

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Returns
Type Description
GcsPrefixOrBuilder

getSourceCase()

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

hasGcsDocuments()

public boolean hasGcsDocuments()

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Returns
Type Description
boolean

Whether the gcsDocuments field is set.

hasGcsPrefix()

public boolean hasGcsPrefix()

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Returns
Type Description
boolean

Whether the gcsPrefix field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDocumentsInputConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsDocuments(GcsDocuments value)

public BatchDocumentsInputConfig.Builder mergeGcsDocuments(GcsDocuments value)

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Parameter
Name Description
value GcsDocuments
Returns
Type Description
BatchDocumentsInputConfig.Builder

mergeGcsPrefix(GcsPrefix value)

public BatchDocumentsInputConfig.Builder mergeGcsPrefix(GcsPrefix value)

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Parameter
Name Description
value GcsPrefix
Returns
Type Description
BatchDocumentsInputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsDocuments(GcsDocuments value)

public BatchDocumentsInputConfig.Builder setGcsDocuments(GcsDocuments value)

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Parameter
Name Description
value GcsDocuments
Returns
Type Description
BatchDocumentsInputConfig.Builder

setGcsDocuments(GcsDocuments.Builder builderForValue)

public BatchDocumentsInputConfig.Builder setGcsDocuments(GcsDocuments.Builder builderForValue)

The set of documents individually specified on Cloud Storage.

.google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;

Parameter
Name Description
builderForValue GcsDocuments.Builder
Returns
Type Description
BatchDocumentsInputConfig.Builder

setGcsPrefix(GcsPrefix value)

public BatchDocumentsInputConfig.Builder setGcsPrefix(GcsPrefix value)

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Parameter
Name Description
value GcsPrefix
Returns
Type Description
BatchDocumentsInputConfig.Builder

setGcsPrefix(GcsPrefix.Builder builderForValue)

public BatchDocumentsInputConfig.Builder setGcsPrefix(GcsPrefix.Builder builderForValue)

The set of documents that match the specified Cloud Storage gcs_prefix.

.google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;

Parameter
Name Description
builderForValue GcsPrefix.Builder
Returns
Type Description
BatchDocumentsInputConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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