Class ImportDocumentsRequest.BatchDocumentsImportConfig.Builder (2.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest.BatchDocumentsImportConfig build()
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig

buildPartial()

public ImportDocumentsRequest.BatchDocumentsImportConfig buildPartial()
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig

clear()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides

clearSplitTypeConfig()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearSplitTypeConfig()
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

clone()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BatchDocumentsInputConfigOrBuilder

getDatasetSplit()

public DatasetSplitType getDatasetSplit()

Target dataset split where the documents must be stored.

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

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

The enum numeric value on the wire for datasetSplit.

getDefaultInstanceForType()

public ImportDocumentsRequest.BatchDocumentsImportConfig getDefaultInstanceForType()
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSplitTypeConfigCase()

public ImportDocumentsRequest.BatchDocumentsImportConfig.SplitTypeConfigCase getSplitTypeConfigCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the datasetSplit field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig
Returns
TypeDescription
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
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

mergeFrom(ImportDocumentsRequest.BatchDocumentsImportConfig other)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeFrom(ImportDocumentsRequest.BatchDocumentsImportConfig other)
Parameter
NameDescription
otherImportDocumentsRequest.BatchDocumentsImportConfig
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig
Returns
TypeDescription
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
NameDescription
builderForValueImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder
Returns
TypeDescription
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
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
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
NameDescription
builderForValueBatchDocumentsInputConfig.Builder
Returns
TypeDescription
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
NameDescription
valueDatasetSplitType

The datasetSplit to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Overrides