Class DocumentProcessingConfig.ParsingConfig.Builder (0.48.0)

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

Related configurations applied to a specific type of document parser.

Protobuf type google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDigitalParsingConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearDigitalParsingConfig()

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLayoutParsingConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearLayoutParsingConfig()

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

clearOcrParsingConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearOcrParsingConfig()

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTypeDedicatedConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearTypeDedicatedConfig()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDigitalParsingConfig()

public DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig getDigitalParsingConfig()

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig

The digitalParsingConfig.

getDigitalParsingConfigBuilder()

public DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.Builder getDigitalParsingConfigBuilder()

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.Builder

getDigitalParsingConfigOrBuilder()

public DocumentProcessingConfig.ParsingConfig.DigitalParsingConfigOrBuilder getDigitalParsingConfigOrBuilder()

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.DigitalParsingConfigOrBuilder

getLayoutParsingConfig()

public DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig getLayoutParsingConfig()

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig

The layoutParsingConfig.

getLayoutParsingConfigBuilder()

public DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder getLayoutParsingConfigBuilder()

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder

getLayoutParsingConfigOrBuilder()

public DocumentProcessingConfig.ParsingConfig.LayoutParsingConfigOrBuilder getLayoutParsingConfigOrBuilder()

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.LayoutParsingConfigOrBuilder

getOcrParsingConfig()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig getOcrParsingConfig()

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

The ocrParsingConfig.

getOcrParsingConfigBuilder()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder getOcrParsingConfigBuilder()

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder

getOcrParsingConfigOrBuilder()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder getOcrParsingConfigOrBuilder()

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder

getTypeDedicatedConfigCase()

public DocumentProcessingConfig.ParsingConfig.TypeDedicatedConfigCase getTypeDedicatedConfigCase()
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.TypeDedicatedConfigCase

hasDigitalParsingConfig()

public boolean hasDigitalParsingConfig()

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
boolean

Whether the digitalParsingConfig field is set.

hasLayoutParsingConfig()

public boolean hasLayoutParsingConfig()

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Returns
Type Description
boolean

Whether the layoutParsingConfig field is set.

hasOcrParsingConfig()

public boolean hasOcrParsingConfig()

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Returns
Type Description
boolean

Whether the ocrParsingConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDigitalParsingConfig(DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig value)

public DocumentProcessingConfig.ParsingConfig.Builder mergeDigitalParsingConfig(DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig value)

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Parameter
Name Description
value DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

mergeFrom(DocumentProcessingConfig.ParsingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig value)

public DocumentProcessingConfig.ParsingConfig.Builder mergeLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig value)

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Parameter
Name Description
value DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

mergeOcrParsingConfig(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig value)

public DocumentProcessingConfig.ParsingConfig.Builder mergeOcrParsingConfig(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig value)

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Parameter
Name Description
value DocumentProcessingConfig.ParsingConfig.OcrParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDigitalParsingConfig(DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig value)

public DocumentProcessingConfig.ParsingConfig.Builder setDigitalParsingConfig(DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig value)

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Parameter
Name Description
value DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

setDigitalParsingConfig(DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.Builder builderForValue)

public DocumentProcessingConfig.ParsingConfig.Builder setDigitalParsingConfig(DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.Builder builderForValue)

Configurations applied to digital parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Parameter
Name Description
builderForValue DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.Builder
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig value)

public DocumentProcessingConfig.ParsingConfig.Builder setLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig value)

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Parameter
Name Description
value DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

setLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder builderForValue)

public DocumentProcessingConfig.ParsingConfig.Builder setLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder builderForValue)

Configurations applied to layout parser.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Parameter
Name Description
builderForValue DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

setOcrParsingConfig(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig value)

public DocumentProcessingConfig.ParsingConfig.Builder setOcrParsingConfig(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig value)

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Parameter
Name Description
value DocumentProcessingConfig.ParsingConfig.OcrParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

setOcrParsingConfig(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder builderForValue)

public DocumentProcessingConfig.ParsingConfig.Builder setOcrParsingConfig(DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder builderForValue)

Configurations applied to OCR parser. Currently it only applies to PDFs.

.google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2;

Parameter
Name Description
builderForValue DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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