Class ImportDocumentsRequest.BatchDocumentsImportConfig.Builder (2.47.0)

public static final class ImportDocumentsRequest.BatchDocumentsImportConfig.Builder extends GeneratedMessageV3.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder> implements ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder

Config for importing documents. Each batch can have its own dataset split type.

Protobuf type google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest.BatchDocumentsImportConfig build()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig

buildPartial()

public ImportDocumentsRequest.BatchDocumentsImportConfig buildPartial()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig

clear()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clear()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides

clearAutoSplitConfig()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearAutoSplitConfig()

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

clearBatchInputConfig()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearBatchInputConfig()

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

clearDatasetSplit()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearDatasetSplit()

Target dataset split where the documents must be stored.

.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSplitTypeConfig()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearSplitTypeConfig()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

clone()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clone()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides

getAutoSplitConfig()

public ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig getAutoSplitConfig()

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig

The autoSplitConfig.

getAutoSplitConfigBuilder()

public ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder getAutoSplitConfigBuilder()

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder

getAutoSplitConfigOrBuilder()

public ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfigOrBuilder getAutoSplitConfigOrBuilder()

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfigOrBuilder

getBatchInputConfig()

public BatchDocumentsInputConfig getBatchInputConfig()

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Returns
Type Description
BatchDocumentsInputConfig

The batchInputConfig.

getBatchInputConfigBuilder()

public BatchDocumentsInputConfig.Builder getBatchInputConfigBuilder()

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Returns
Type Description
BatchDocumentsInputConfig.Builder

getBatchInputConfigOrBuilder()

public BatchDocumentsInputConfigOrBuilder getBatchInputConfigOrBuilder()

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Returns
Type Description
BatchDocumentsInputConfigOrBuilder

getDatasetSplit()

public DatasetSplitType getDatasetSplit()

Target dataset split where the documents must be stored.

.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;

Returns
Type Description
DatasetSplitType

The datasetSplit.

getDatasetSplitValue()

public int getDatasetSplitValue()

Target dataset split where the documents must be stored.

.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;

Returns
Type Description
int

The enum numeric value on the wire for datasetSplit.

getDefaultInstanceForType()

public ImportDocumentsRequest.BatchDocumentsImportConfig getDefaultInstanceForType()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig

getDescriptorForType()

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

getSplitTypeConfigCase()

public ImportDocumentsRequest.BatchDocumentsImportConfig.SplitTypeConfigCase getSplitTypeConfigCase()
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.SplitTypeConfigCase

hasAutoSplitConfig()

public boolean hasAutoSplitConfig()

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Returns
Type Description
boolean

Whether the autoSplitConfig field is set.

hasBatchInputConfig()

public boolean hasBatchInputConfig()

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Returns
Type Description
boolean

Whether the batchInputConfig field is set.

hasDatasetSplit()

public boolean hasDatasetSplit()

Target dataset split where the documents must be stored.

.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;

Returns
Type Description
boolean

Whether the datasetSplit field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig value)

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Parameter
Name Description
value ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

mergeBatchInputConfig(BatchDocumentsInputConfig value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeBatchInputConfig(BatchDocumentsInputConfig value)

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

mergeFrom(ImportDocumentsRequest.BatchDocumentsImportConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig value)

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Parameter
Name Description
value ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

setAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder builderForValue)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder builderForValue)

If set, documents will be automatically split into training and test split category with the specified ratio.

.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig auto_split_config = 3;

Parameter
Name Description
builderForValue ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

setBatchInputConfig(BatchDocumentsInputConfig value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setBatchInputConfig(BatchDocumentsInputConfig value)

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

setBatchInputConfig(BatchDocumentsInputConfig.Builder builderForValue)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setBatchInputConfig(BatchDocumentsInputConfig.Builder builderForValue)

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

.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;

Parameter
Name Description
builderForValue BatchDocumentsInputConfig.Builder
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

setDatasetSplit(DatasetSplitType value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setDatasetSplit(DatasetSplitType value)

Target dataset split where the documents must be stored.

.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;

Parameter
Name Description
value DatasetSplitType

The datasetSplit to set.

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

This builder for chaining.

setDatasetSplitValue(int value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setDatasetSplitValue(int value)

Target dataset split where the documents must be stored.

.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for datasetSplit to set.

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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