Interface DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder (0.38.0)

public static interface DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnhancedDocumentElements(int index) (deprecated)

public abstract String getEnhancedDocumentElements(int index)

Deprecated. google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements is deprecated. See google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

repeated string enhanced_document_elements = 1 [deprecated = true];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The enhancedDocumentElements at the given index.

getEnhancedDocumentElementsBytes(int index) (deprecated)

public abstract ByteString getEnhancedDocumentElementsBytes(int index)

Deprecated. google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements is deprecated. See google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

repeated string enhanced_document_elements = 1 [deprecated = true];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the enhancedDocumentElements at the given index.

getEnhancedDocumentElementsCount() (deprecated)

public abstract int getEnhancedDocumentElementsCount()

Deprecated. google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements is deprecated. See google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

repeated string enhanced_document_elements = 1 [deprecated = true];

Returns
Type Description
int

The count of enhancedDocumentElements.

getEnhancedDocumentElementsList() (deprecated)

public abstract List<String> getEnhancedDocumentElementsList()

Deprecated. google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements is deprecated. See google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

repeated string enhanced_document_elements = 1 [deprecated = true];

Returns
Type Description
List<String>

A list containing the enhancedDocumentElements.

getUseNativeText()

public abstract boolean getUseNativeText()

If true, will use native text instead of OCR text on pages containing native text.

bool use_native_text = 2;

Returns
Type Description
boolean

The useNativeText.