Class DocumentProcessingConfig.ParsingConfig.Builder (0.41.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.v1beta.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.v1beta.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

clearOcrParsingConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearOcrParsingConfig()

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

.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.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.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.DigitalParsingConfigOrBuilder

getOcrParsingConfig()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig getOcrParsingConfig()

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

.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.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.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1;

Returns
Type Description
boolean

Whether the digitalParsingConfig field is set.

hasOcrParsingConfig()

public boolean hasOcrParsingConfig()

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

.google.cloud.discoveryengine.v1beta.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.v1beta.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

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

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