public final class TableExtractionParams extends GeneratedMessageV3 implements TableExtractionParamsOrBuilder
Parameters to control table extraction behavior.
Protobuf type google.cloud.documentai.v1beta1.TableExtractionParams
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int ENABLED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int HEADER_HINTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MODEL_VERSION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TABLE_BOUND_HINTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static TableExtractionParams getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static TableExtractionParams.Builder newBuilder()
public static TableExtractionParams.Builder newBuilder(TableExtractionParams prototype)
public static TableExtractionParams parseDelimitedFrom(InputStream input)
public static TableExtractionParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TableExtractionParams parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static TableExtractionParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TableExtractionParams parseFrom(ByteString data)
public static TableExtractionParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TableExtractionParams parseFrom(CodedInputStream input)
public static TableExtractionParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TableExtractionParams parseFrom(InputStream input)
public static TableExtractionParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TableExtractionParams parseFrom(ByteBuffer data)
public static TableExtractionParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<TableExtractionParams> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public TableExtractionParams getDefaultInstanceForType()
public boolean getEnabled()
Whether to enable table extraction.
bool enabled = 1;
Returns |
---|
Type | Description |
boolean | The enabled.
|
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];
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()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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];
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 |
---|
Name | Description |
index | int
|
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> | |
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TableExtractionParams.Builder newBuilderForType()
protected TableExtractionParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public TableExtractionParams.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides