Class FormExtractionParams.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
- com.google.cloud.documentai.v1beta1.FormExtractionParams.Builder
-
- All Implemented Interfaces:
FormExtractionParamsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- FormExtractionParams
public static final class FormExtractionParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder> implements FormExtractionParamsOrBuilder
Parameters to control form extraction behavior.
Protobuf typegoogle.cloud.documentai.v1beta1.FormExtractionParams
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormExtractionParams.Builder
addAllKeyValuePairHints(Iterable<? extends KeyValuePairHint> values)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
addKeyValuePairHints(int index, KeyValuePairHint value)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
addKeyValuePairHints(int index, KeyValuePairHint.Builder builderForValue)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
addKeyValuePairHints(KeyValuePairHint value)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
addKeyValuePairHints(KeyValuePairHint.Builder builderForValue)
User can provide pairs of (key text, value type) to improve the parsing result.KeyValuePairHint.Builder
addKeyValuePairHintsBuilder()
User can provide pairs of (key text, value type) to improve the parsing result.KeyValuePairHint.Builder
addKeyValuePairHintsBuilder(int index)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FormExtractionParams
build()
FormExtractionParams
buildPartial()
FormExtractionParams.Builder
clear()
FormExtractionParams.Builder
clearEnabled()
Whether to enable form extraction.FormExtractionParams.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FormExtractionParams.Builder
clearKeyValuePairHints()
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
clearModelVersion()
Model version of the form extraction system.FormExtractionParams.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FormExtractionParams.Builder
clone()
FormExtractionParams
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEnabled()
Whether to enable form extraction.KeyValuePairHint
getKeyValuePairHints(int index)
User can provide pairs of (key text, value type) to improve the parsing result.KeyValuePairHint.Builder
getKeyValuePairHintsBuilder(int index)
User can provide pairs of (key text, value type) to improve the parsing result.List<KeyValuePairHint.Builder>
getKeyValuePairHintsBuilderList()
User can provide pairs of (key text, value type) to improve the parsing result.int
getKeyValuePairHintsCount()
User can provide pairs of (key text, value type) to improve the parsing result.List<KeyValuePairHint>
getKeyValuePairHintsList()
User can provide pairs of (key text, value type) to improve the parsing result.KeyValuePairHintOrBuilder
getKeyValuePairHintsOrBuilder(int index)
User can provide pairs of (key text, value type) to improve the parsing result.List<? extends KeyValuePairHintOrBuilder>
getKeyValuePairHintsOrBuilderList()
User can provide pairs of (key text, value type) to improve the parsing result.String
getModelVersion()
Model version of the form extraction system.com.google.protobuf.ByteString
getModelVersionBytes()
Model version of the form extraction system.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FormExtractionParams.Builder
mergeFrom(FormExtractionParams other)
FormExtractionParams.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FormExtractionParams.Builder
mergeFrom(com.google.protobuf.Message other)
FormExtractionParams.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FormExtractionParams.Builder
removeKeyValuePairHints(int index)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
setEnabled(boolean value)
Whether to enable form extraction.FormExtractionParams.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FormExtractionParams.Builder
setKeyValuePairHints(int index, KeyValuePairHint value)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
setKeyValuePairHints(int index, KeyValuePairHint.Builder builderForValue)
User can provide pairs of (key text, value type) to improve the parsing result.FormExtractionParams.Builder
setModelVersion(String value)
Model version of the form extraction system.FormExtractionParams.Builder
setModelVersionBytes(com.google.protobuf.ByteString value)
Model version of the form extraction system.FormExtractionParams.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FormExtractionParams.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
clear
public FormExtractionParams.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
getDefaultInstanceForType
public FormExtractionParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FormExtractionParams build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FormExtractionParams buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FormExtractionParams.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
setField
public FormExtractionParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
clearField
public FormExtractionParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
clearOneof
public FormExtractionParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
setRepeatedField
public FormExtractionParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
addRepeatedField
public FormExtractionParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
mergeFrom
public FormExtractionParams.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FormExtractionParams.Builder>
-
mergeFrom
public FormExtractionParams.Builder mergeFrom(FormExtractionParams other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
mergeFrom
public FormExtractionParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FormExtractionParams.Builder>
- Throws:
IOException
-
getEnabled
public boolean getEnabled()
Whether to enable form extraction.
bool enabled = 1;
- Specified by:
getEnabled
in interfaceFormExtractionParamsOrBuilder
- Returns:
- The enabled.
-
setEnabled
public FormExtractionParams.Builder setEnabled(boolean value)
Whether to enable form extraction.
bool enabled = 1;
- Parameters:
value
- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
public FormExtractionParams.Builder clearEnabled()
Whether to enable form extraction.
bool enabled = 1;
- Returns:
- This builder for chaining.
-
getKeyValuePairHintsList
public List<KeyValuePairHint> getKeyValuePairHintsList()
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
- Specified by:
getKeyValuePairHintsList
in interfaceFormExtractionParamsOrBuilder
-
getKeyValuePairHintsCount
public int getKeyValuePairHintsCount()
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
- Specified by:
getKeyValuePairHintsCount
in interfaceFormExtractionParamsOrBuilder
-
getKeyValuePairHints
public KeyValuePairHint getKeyValuePairHints(int index)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
- Specified by:
getKeyValuePairHints
in interfaceFormExtractionParamsOrBuilder
-
setKeyValuePairHints
public FormExtractionParams.Builder setKeyValuePairHints(int index, KeyValuePairHint value)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
setKeyValuePairHints
public FormExtractionParams.Builder setKeyValuePairHints(int index, KeyValuePairHint.Builder builderForValue)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
addKeyValuePairHints
public FormExtractionParams.Builder addKeyValuePairHints(KeyValuePairHint value)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
addKeyValuePairHints
public FormExtractionParams.Builder addKeyValuePairHints(int index, KeyValuePairHint value)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
addKeyValuePairHints
public FormExtractionParams.Builder addKeyValuePairHints(KeyValuePairHint.Builder builderForValue)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
addKeyValuePairHints
public FormExtractionParams.Builder addKeyValuePairHints(int index, KeyValuePairHint.Builder builderForValue)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
addAllKeyValuePairHints
public FormExtractionParams.Builder addAllKeyValuePairHints(Iterable<? extends KeyValuePairHint> values)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
clearKeyValuePairHints
public FormExtractionParams.Builder clearKeyValuePairHints()
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
removeKeyValuePairHints
public FormExtractionParams.Builder removeKeyValuePairHints(int index)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
getKeyValuePairHintsBuilder
public KeyValuePairHint.Builder getKeyValuePairHintsBuilder(int index)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
getKeyValuePairHintsOrBuilder
public KeyValuePairHintOrBuilder getKeyValuePairHintsOrBuilder(int index)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
- Specified by:
getKeyValuePairHintsOrBuilder
in interfaceFormExtractionParamsOrBuilder
-
getKeyValuePairHintsOrBuilderList
public List<? extends KeyValuePairHintOrBuilder> getKeyValuePairHintsOrBuilderList()
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
- Specified by:
getKeyValuePairHintsOrBuilderList
in interfaceFormExtractionParamsOrBuilder
-
addKeyValuePairHintsBuilder
public KeyValuePairHint.Builder addKeyValuePairHintsBuilder()
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
addKeyValuePairHintsBuilder
public KeyValuePairHint.Builder addKeyValuePairHintsBuilder(int index)
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
getKeyValuePairHintsBuilderList
public List<KeyValuePairHint.Builder> getKeyValuePairHintsBuilderList()
User can provide pairs of (key text, value type) to improve the parsing result. For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
repeated .google.cloud.documentai.v1beta1.KeyValuePairHint key_value_pair_hints = 2;
-
getModelVersion
public String getModelVersion()
Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 3;
- Specified by:
getModelVersion
in interfaceFormExtractionParamsOrBuilder
- Returns:
- The modelVersion.
-
getModelVersionBytes
public com.google.protobuf.ByteString getModelVersionBytes()
Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 3;
- Specified by:
getModelVersionBytes
in interfaceFormExtractionParamsOrBuilder
- Returns:
- The bytes for modelVersion.
-
setModelVersion
public FormExtractionParams.Builder setModelVersion(String value)
Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 3;
- Parameters:
value
- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
public FormExtractionParams.Builder clearModelVersion()
Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 3;
- Returns:
- This builder for chaining.
-
setModelVersionBytes
public FormExtractionParams.Builder setModelVersionBytes(com.google.protobuf.ByteString value)
Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 3;
- Parameters:
value
- The bytes for modelVersion to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FormExtractionParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
mergeUnknownFields
public final FormExtractionParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FormExtractionParams.Builder>
-
-