Class DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder (0.49.0)

public static final class DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder extends GeneratedMessageV3.Builder<DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder> implements DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder

The OCR parsing configurations for documents.

Protobuf type google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEnhancedDocumentElements(Iterable<String> values) (deprecated)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder addAllEnhancedDocumentElements(Iterable<String> values)

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

[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
values Iterable<String>

The enhancedDocumentElements to add.

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

addEnhancedDocumentElements(String value) (deprecated)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder addEnhancedDocumentElements(String value)

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

[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
value String

The enhancedDocumentElements to add.

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

addEnhancedDocumentElementsBytes(ByteString value) (deprecated)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder addEnhancedDocumentElementsBytes(ByteString value)

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

[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
value ByteString

The bytes of the enhancedDocumentElements to add.

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

build()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig build()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

buildPartial()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig buildPartial()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

clear()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clear()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

clearEnhancedDocumentElements() (deprecated)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearEnhancedDocumentElements()

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

[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
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

clearUseNativeText()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearUseNativeText()

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

bool use_native_text = 2;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

clone()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clone()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

getDefaultInstanceForType()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig getDefaultInstanceForType()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnhancedDocumentElements(int index) (deprecated)

public 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=76

[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 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=76

[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 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=76

[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 ProtocolStringList getEnhancedDocumentElementsList()

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

[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
ProtocolStringList

A list containing the enhancedDocumentElements.

getUseNativeText()

public 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig other)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeFrom(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig other)
Parameter
Name Description
other DocumentProcessingConfig.ParsingConfig.OcrParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

setEnhancedDocumentElements(int index, String value) (deprecated)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder setEnhancedDocumentElements(int index, String value)

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

[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];

Parameters
Name Description
index int

The index to set the value at.

value String

The enhancedDocumentElements to set.

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

setUseNativeText(boolean value)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder setUseNativeText(boolean value)

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

bool use_native_text = 2;

Parameter
Name Description
value boolean

The useNativeText to set.

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.