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.v1beta1.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.v1beta1.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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
clear
public TableExtractionParams.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<TableExtractionParams.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<TableExtractionParams.Builder>
-
getDefaultInstanceForType
public TableExtractionParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TableExtractionParams build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TableExtractionParams buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TableExtractionParams.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<TableExtractionParams.Builder>
-
setField
public TableExtractionParams.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<TableExtractionParams.Builder>
-
clearField
public TableExtractionParams.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<TableExtractionParams.Builder>
-
clearOneof
public TableExtractionParams.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<TableExtractionParams.Builder>
-
setRepeatedField
public TableExtractionParams.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<TableExtractionParams.Builder>
-
addRepeatedField
public TableExtractionParams.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<TableExtractionParams.Builder>
-
mergeFrom
public TableExtractionParams.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TableExtractionParams.Builder>
-
mergeFrom
public TableExtractionParams.Builder mergeFrom(TableExtractionParams other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TableExtractionParams.Builder>
- Throws:
IOException
-
getEnabled
public boolean getEnabled()
Whether to enable table extraction.
bool enabled = 1;
- Specified by:
getEnabled
in 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.v1beta1.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTableBoundHintsList
in 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.v1beta1.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTableBoundHintsCount
in 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.v1beta1.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTableBoundHints
in 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTableBoundHintsOrBuilder
in 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.v1beta1.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTableBoundHintsOrBuilderList
in 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.v1beta1.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.v1beta1.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.v1beta1.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getHeaderHintsList
public com.google.protobuf.ProtocolStringList getHeaderHintsList()
Optional. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHeaderHintsList
in interfaceTableExtractionParamsOrBuilder
- Returns:
- A list containing the headerHints.
-
getHeaderHintsCount
public int getHeaderHintsCount()
Optional. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHeaderHintsCount
in interfaceTableExtractionParamsOrBuilder
- Returns:
- The count of headerHints.
-
getHeaderHints
public String getHeaderHints(int index)
Optional. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHeaderHints
in 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. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHeaderHintsBytes
in 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. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
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. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
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. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
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. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
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. Table header hints. The extraction will bias towards producing these terms as table headers, which may improve accuracy.
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:
getModelVersion
in 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:
getModelVersionBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
mergeUnknownFields
public final TableExtractionParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
-
-