Class BatchDocumentsInputConfig.Builder (2.1.9)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDocumentsInputConfig build()
Returns

buildPartial()

public BatchDocumentsInputConfig buildPartial()
Returns

clear()

public BatchDocumentsInputConfig.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchDocumentsInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns Overrides

clearGcsDocuments()

public BatchDocumentsInputConfig.Builder clearGcsDocuments()

The set of documents individually specified on Cloud Storage.

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

Returns

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public BatchDocumentsInputConfig.Builder clearSource()
Returns

clone()

public BatchDocumentsInputConfig.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public BatchDocumentsInputConfig getDefaultInstanceForType()
Returns

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsDocuments()

public GcsDocuments getGcsDocuments()

The set of documents individually specified on Cloud Storage.

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

Returns
TypeDescription
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
TypeDescription
GcsDocuments.Builder

getGcsDocumentsOrBuilder()

public GcsDocumentsOrBuilder getGcsDocumentsOrBuilder()

The set of documents individually specified on Cloud Storage.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GcsPrefixOrBuilder

getSourceCase()

public BatchDocumentsInputConfig.SourceCase getSourceCase()
Returns

hasGcsDocuments()

public boolean hasGcsDocuments()

The set of documents individually specified on Cloud Storage.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the gcsPrefix field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchDocumentsInputConfig other)

public BatchDocumentsInputConfig.Builder mergeFrom(BatchDocumentsInputConfig other)
Parameter
NameDescription
otherBatchDocumentsInputConfig
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BatchDocumentsInputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns 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
NameDescription
valueGcsDocuments
Returns

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
NameDescription
valueGcsPrefix
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BatchDocumentsInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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
NameDescription
valueGcsDocuments
Returns

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
NameDescription
builderForValueGcsDocuments.Builder
Returns

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
NameDescription
valueGcsPrefix
Returns

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
NameDescription
builderForValueGcsPrefix.Builder
Returns

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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