public static final class ImportDocumentsRequest.BatchDocumentsImportConfig.Builder extends GeneratedMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder> implements ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilderConfig for importing documents. Each batch can have its own dataset split type.
Protobuf type
google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ImportDocumentsRequest.BatchDocumentsImportConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
clearDocumentType()
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearDocumentType() Optional. If set, determines the type of the documents to be imported in
this batch. It can be used to auto-label the documents with a single
entity of the provided type. This field can only be used with a
classifier or splitter processor. Providing this field is mutually
exclusive with entities and auto_labeling_config.
string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder |
This builder for chaining. |
clearSplitTypeConfig()
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder clearSplitTypeConfig()| Returns | |
|---|---|
| Type | Description |
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder |
|
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 |
|
getDocumentType()
public String getDocumentType() Optional. If set, determines the type of the documents to be imported in
this batch. It can be used to auto-label the documents with a single
entity of the provided type. This field can only be used with a
classifier or splitter processor. Providing this field is mutually
exclusive with entities and auto_labeling_config.
string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The documentType. |
getDocumentTypeBytes()
public ByteString getDocumentTypeBytes() Optional. If set, determines the type of the documents to be imported in
this batch. It can be used to auto-label the documents with a single
entity of the provided type. This field can only be used with a
classifier or splitter processor. Providing this field is mutually
exclusive with entities and auto_labeling_config.
string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for documentType. |
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
DatasetSplitTypeThe 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 |
intThe enum numeric value on the wire for datasetSplit to set. |
| Returns | |
|---|---|
| Type | Description |
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder |
This builder for chaining. |
setDocumentType(String value)
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setDocumentType(String value) Optional. If set, determines the type of the documents to be imported in
this batch. It can be used to auto-label the documents with a single
entity of the provided type. This field can only be used with a
classifier or splitter processor. Providing this field is mutually
exclusive with entities and auto_labeling_config.
string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe documentType to set. |
| Returns | |
|---|---|
| Type | Description |
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder |
This builder for chaining. |
setDocumentTypeBytes(ByteString value)
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setDocumentTypeBytes(ByteString value) Optional. If set, determines the type of the documents to be imported in
this batch. It can be used to auto-label the documents with a single
entity of the provided type. This field can only be used with a
classifier or splitter processor. Providing this field is mutually
exclusive with entities and auto_labeling_config.
string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for documentType to set. |
| Returns | |
|---|---|
| Type | Description |
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder |
This builder for chaining. |