Class DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder (0.37.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.v1alpha.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
TypeDescription
Descriptor

Methods

addAllEnhancedDocumentElements(Iterable<String> values)

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

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
NameDescription
valuesIterable<String>

The enhancedDocumentElements to add.

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

addEnhancedDocumentElements(String value)

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

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
NameDescription
valueString

The enhancedDocumentElements to add.

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

addEnhancedDocumentElementsBytes(ByteString value)

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

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
NameDescription
valueByteString

The bytes of the enhancedDocumentElements to add.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

build()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig build()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

buildPartial()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig buildPartial()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

clear()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clear()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

clearEnhancedDocumentElements()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearEnhancedDocumentElements()

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.

clone()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder clone()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

getDefaultInstanceForType()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig getDefaultInstanceForType()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnhancedDocumentElements(int index)

public String getEnhancedDocumentElements(int index)

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The enhancedDocumentElements at the given index.

getEnhancedDocumentElementsBytes(int index)

public ByteString getEnhancedDocumentElementsBytes(int index)

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the enhancedDocumentElements at the given index.

getEnhancedDocumentElementsCount()

public int getEnhancedDocumentElementsCount()

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Returns
TypeDescription
int

The count of enhancedDocumentElements.

getEnhancedDocumentElementsList()

public ProtocolStringList getEnhancedDocumentElementsList()

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Returns
TypeDescription
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
TypeDescription
boolean

The useNativeText.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig other)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeFrom(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig other)
Parameter
NameDescription
otherDocumentProcessingConfig.ParsingConfig.OcrParsingConfig
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

setEnhancedDocumentElements(int index, String value)

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

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The enhancedDocumentElements to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The useNativeText to set.

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

This builder for chaining.