Class ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>
com.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
- All Implemented Interfaces:
ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportDocumentsRequest.BatchDocumentsImportConfig
public static final class ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If set, documents will be automatically split into training and test split category with the specified ratio.The common config to specify a set of documents used as input.Target dataset split where the documents must be stored.Optional.If set, documents will be automatically split into training and test split category with the specified ratio.If set, documents will be automatically split into training and test split category with the specified ratio.If set, documents will be automatically split into training and test split category with the specified ratio.The common config to specify a set of documents used as input.The common config to specify a set of documents used as input.The common config to specify a set of documents used as input.Target dataset split where the documents must be stored.intTarget dataset split where the documents must be stored.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanIf set, documents will be automatically split into training and test split category with the specified ratio.booleanThe common config to specify a set of documents used as input.booleanTarget dataset split where the documents must be stored.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanIf set, documents will be automatically split into training and test split category with the specified ratio.The common config to specify a set of documents used as input.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) If set, documents will be automatically split into training and test split category with the specified ratio.setAutoSplitConfig(ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig.Builder builderForValue) If set, documents will be automatically split into training and test split category with the specified ratio.The common config to specify a set of documents used as input.setBatchInputConfig(BatchDocumentsInputConfig.Builder builderForValue) The common config to specify a set of documents used as input.setDatasetSplit(DatasetSplitType value) Target dataset split where the documents must be stored.setDatasetSplitValue(int value) Target dataset split where the documents must be stored.setDocumentType(String value) Optional.setDocumentTypeBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>
-
mergeFrom
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder>- Throws:
IOException
-
getSplitTypeConfigCase
public ImportDocumentsRequest.BatchDocumentsImportConfig.SplitTypeConfigCase getSplitTypeConfigCase()- Specified by:
getSplitTypeConfigCasein interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder
-
clearSplitTypeConfig
-
hasDatasetSplit
public boolean hasDatasetSplit()Target dataset split where the documents must be stored.
.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;- Specified by:
hasDatasetSplitin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- Whether the datasetSplit field is set.
-
getDatasetSplitValue
public int getDatasetSplitValue()Target dataset split where the documents must be stored.
.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;- Specified by:
getDatasetSplitValuein interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- The enum numeric value on the wire for datasetSplit.
-
setDatasetSplitValue
Target dataset split where the documents must be stored.
.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;- Parameters:
value- The enum numeric value on the wire for datasetSplit to set.- Returns:
- This builder for chaining.
-
getDatasetSplit
Target dataset split where the documents must be stored.
.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;- Specified by:
getDatasetSplitin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- The datasetSplit.
-
setDatasetSplit
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setDatasetSplit(DatasetSplitType value) Target dataset split where the documents must be stored.
.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;- Parameters:
value- The datasetSplit to set.- Returns:
- This builder for chaining.
-
clearDatasetSplit
Target dataset split where the documents must be stored.
.google.cloud.documentai.v1beta3.DatasetSplitType dataset_split = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasAutoSplitConfigin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- Whether the autoSplitConfig field is set.
-
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;- Specified by:
getAutoSplitConfigin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- The autoSplitConfig.
-
setAutoSplitConfig
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; -
setAutoSplitConfig
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; -
mergeAutoSplitConfig
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; -
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; -
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; -
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;- Specified by:
getAutoSplitConfigOrBuilderin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder
-
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;- Specified by:
hasBatchInputConfigin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- Whether the batchInputConfig field is set.
-
getBatchInputConfig
The common config to specify a set of documents used as input.
.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;- Specified by:
getBatchInputConfigin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- The batchInputConfig.
-
setBatchInputConfig
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; -
setBatchInputConfig
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; -
mergeBatchInputConfig
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; -
clearBatchInputConfig
The common config to specify a set of documents used as input.
.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1; -
getBatchInputConfigBuilder
The common config to specify a set of documents used as input.
.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1; -
getBatchInputConfigOrBuilder
The common config to specify a set of documents used as input.
.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig batch_input_config = 1;- Specified by:
getBatchInputConfigOrBuilderin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder
-
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];- Specified by:
getDocumentTypein interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- The documentType.
-
getDocumentTypeBytes
public com.google.protobuf.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];- Specified by:
getDocumentTypeBytesin interfaceImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder- Returns:
- The bytes for documentType.
-
setDocumentType
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];- Parameters:
value- The documentType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDocumentTypeBytes
public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder setDocumentTypeBytes(com.google.protobuf.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];- Parameters:
value- The bytes for documentType to set.- Returns:
- This builder for chaining.
-