public final class TableExtractionParams extends GeneratedMessageV3 implements TableExtractionParamsOrBuilder
Parameters to control table extraction behavior.
Protobuf type google.cloud.documentai.v1beta1.TableExtractionParams
Fields
public static final int ENABLED_FIELD_NUMBER
Field Value
public static final int HEADER_HINTS_FIELD_NUMBER
Field Value
public static final int MODEL_VERSION_FIELD_NUMBER
Field Value
public static final int TABLE_BOUND_HINTS_FIELD_NUMBER
Field Value
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public static TableExtractionParams getDefaultInstance()
Returns
public TableExtractionParams getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public boolean getEnabled()
Whether to enable table extraction.
bool enabled = 1;
Returns
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];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The headerHints at the given index.
|
public 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];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the headerHints at the given index.
|
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];
Returns
Type | Description |
int | The count of headerHints.
|
public 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];
Returns
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;
Returns
Type | Description |
String | The modelVersion.
|
public ByteString getModelVersionBytes()
Model version of the table extraction system. Default is "builtin/stable".
Specify "builtin/latest" for the latest model.
string model_version = 4;
Returns
Type | Description |
ByteString | The bytes for modelVersion.
|
public Parser<TableExtractionParams> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
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];
Parameter
Returns
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];
Returns
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];
Returns
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];
Parameter
Returns
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];
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta1.TableBoundHintOrBuilder> | |
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static TableExtractionParams.Builder newBuilder()
Returns
public static TableExtractionParams.Builder newBuilder(TableExtractionParams prototype)
Parameter
Returns
public TableExtractionParams.Builder newBuilderForType()
Returns
protected TableExtractionParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static TableExtractionParams parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TableExtractionParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TableExtractionParams parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TableExtractionParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TableExtractionParams parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TableExtractionParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TableExtractionParams parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TableExtractionParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TableExtractionParams parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TableExtractionParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TableExtractionParams parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TableExtractionParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TableExtractionParams> parser()
Returns
public TableExtractionParams.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions