Class TableExtractionParams.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
- com.google.cloud.documentai.v1beta2.TableExtractionParams.Builder
-
- All Implemented Interfaces:
TableExtractionParamsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TableExtractionParams
public static final class TableExtractionParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder> implements TableExtractionParamsOrBuilder
Parameters to control table extraction behavior.
Protobuf typegoogle.cloud.documentai.v1beta2.TableExtractionParams
-
-
Method Summary
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
clear
public TableExtractionParams.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.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.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
getDefaultInstanceForType
public TableExtractionParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TableExtractionParams build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TableExtractionParams buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TableExtractionParams.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
setField
public TableExtractionParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
clearField
public TableExtractionParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
clearOneof
public TableExtractionParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
setRepeatedField
public TableExtractionParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
addRepeatedField
public TableExtractionParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
mergeFrom
public TableExtractionParams.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableExtractionParams.Builder>
-
mergeFrom
public TableExtractionParams.Builder mergeFrom(TableExtractionParams other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
mergeFrom
public TableExtractionParams.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<TableExtractionParams.Builder>- Throws:
IOException
-
getEnabled
public boolean getEnabled()
Whether to enable table extraction.
bool enabled = 1;- Specified by:
getEnabledin interfaceTableExtractionParamsOrBuilder- Returns:
- The enabled.
-
setEnabled
public TableExtractionParams.Builder setEnabled(boolean value)
Whether to enable table extraction.
bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
public TableExtractionParams.Builder clearEnabled()
Whether to enable table extraction.
bool enabled = 1;- Returns:
- This builder for chaining.
-
getTableBoundHintsList
public List<TableBoundHint> getTableBoundHintsList()
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTableBoundHintsListin interfaceTableExtractionParamsOrBuilder
-
getTableBoundHintsCount
public int getTableBoundHintsCount()
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTableBoundHintsCountin interfaceTableExtractionParamsOrBuilder
-
getTableBoundHints
public TableBoundHint getTableBoundHints(int index)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTableBoundHintsin interfaceTableExtractionParamsOrBuilder
-
setTableBoundHints
public TableExtractionParams.Builder setTableBoundHints(int index, TableBoundHint value)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
setTableBoundHints
public TableExtractionParams.Builder setTableBoundHints(int index, TableBoundHint.Builder builderForValue)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addTableBoundHints
public TableExtractionParams.Builder addTableBoundHints(TableBoundHint value)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addTableBoundHints
public TableExtractionParams.Builder addTableBoundHints(int index, TableBoundHint value)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addTableBoundHints
public TableExtractionParams.Builder addTableBoundHints(TableBoundHint.Builder builderForValue)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addTableBoundHints
public TableExtractionParams.Builder addTableBoundHints(int index, TableBoundHint.Builder builderForValue)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addAllTableBoundHints
public TableExtractionParams.Builder addAllTableBoundHints(Iterable<? extends TableBoundHint> values)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
clearTableBoundHints
public TableExtractionParams.Builder clearTableBoundHints()
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
removeTableBoundHints
public TableExtractionParams.Builder removeTableBoundHints(int index)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getTableBoundHintsBuilder
public TableBoundHint.Builder getTableBoundHintsBuilder(int index)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getTableBoundHintsOrBuilder
public TableBoundHintOrBuilder getTableBoundHintsOrBuilder(int index)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTableBoundHintsOrBuilderin interfaceTableExtractionParamsOrBuilder
-
getTableBoundHintsOrBuilderList
public List<? extends TableBoundHintOrBuilder> getTableBoundHintsOrBuilderList()
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTableBoundHintsOrBuilderListin interfaceTableExtractionParamsOrBuilder
-
addTableBoundHintsBuilder
public TableBoundHint.Builder addTableBoundHintsBuilder()
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addTableBoundHintsBuilder
public TableBoundHint.Builder addTableBoundHintsBuilder(int index)
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getTableBoundHintsBuilderList
public List<TableBoundHint.Builder> getTableBoundHintsBuilderList()
Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in.
repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getHeaderHintsList
public com.google.protobuf.ProtocolStringList getHeaderHintsList()
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeaderHintsListin interfaceTableExtractionParamsOrBuilder- Returns:
- A list containing the headerHints.
-
getHeaderHintsCount
public int getHeaderHintsCount()
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeaderHintsCountin interfaceTableExtractionParamsOrBuilder- Returns:
- The count of headerHints.
-
getHeaderHints
public String getHeaderHints(int index)
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeaderHintsin interfaceTableExtractionParamsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The headerHints at the given index.
-
getHeaderHintsBytes
public com.google.protobuf.ByteString getHeaderHintsBytes(int index)
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeaderHintsBytesin interfaceTableExtractionParamsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the headerHints at the given index.
-
setHeaderHints
public TableExtractionParams.Builder setHeaderHints(int index, String value)
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The headerHints to set.- Returns:
- This builder for chaining.
-
addHeaderHints
public TableExtractionParams.Builder addHeaderHints(String value)
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The headerHints to add.- Returns:
- This builder for chaining.
-
addAllHeaderHints
public TableExtractionParams.Builder addAllHeaderHints(Iterable<String> values)
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The headerHints to add.- Returns:
- This builder for chaining.
-
clearHeaderHints
public TableExtractionParams.Builder clearHeaderHints()
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addHeaderHintsBytes
public TableExtractionParams.Builder addHeaderHintsBytes(com.google.protobuf.ByteString value)
Optional. Reserved for future use.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the headerHints to add.- Returns:
- This builder for chaining.
-
getModelVersion
public String getModelVersion()
Model version of the table extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 4;- Specified by:
getModelVersionin interfaceTableExtractionParamsOrBuilder- Returns:
- The modelVersion.
-
getModelVersionBytes
public com.google.protobuf.ByteString getModelVersionBytes()
Model version of the table extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 4;- Specified by:
getModelVersionBytesin interfaceTableExtractionParamsOrBuilder- Returns:
- The bytes for modelVersion.
-
setModelVersion
public TableExtractionParams.Builder setModelVersion(String value)
Model version of the table extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 4;- Parameters:
value- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
public TableExtractionParams.Builder clearModelVersion()
Model version of the table extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 4;- Returns:
- This builder for chaining.
-
setModelVersionBytes
public TableExtractionParams.Builder setModelVersionBytes(com.google.protobuf.ByteString value)
Model version of the table extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model.
string model_version = 4;- Parameters:
value- The bytes for modelVersion to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TableExtractionParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
mergeUnknownFields
public final TableExtractionParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
-