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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentProcessingConfig.ParsingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder
Overrides

build()

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

buildPartial()

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

clear()

public DocumentProcessingConfig.ParsingConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public DocumentProcessingConfig.ParsingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentProcessingConfig.ParsingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder
Overrides

clearTypeDedicatedConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearTypeDedicatedConfig()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder

getTypeDedicatedConfigCase()

public DocumentProcessingConfig.ParsingConfig.TypeDedicatedConfigCase getTypeDedicatedConfigCase()
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.TypeDedicatedConfigCase

hasDigitalParsingConfig()

public boolean hasDigitalParsingConfig()

Configurations applied to digital parser.

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

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

Whether the ocrParsingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDocumentProcessingConfig.ParsingConfig.DigitalParsingConfig
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

mergeFrom(DocumentProcessingConfig.ParsingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocumentProcessingConfig.ParsingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDocumentProcessingConfig.ParsingConfig.OcrParsingConfig
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentProcessingConfig.ParsingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentProcessingConfig.ParsingConfig.DigitalParsingConfig
Returns
TypeDescription
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
NameDescription
builderForValueDocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.Builder
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentProcessingConfig.ParsingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDocumentProcessingConfig.ParsingConfig.OcrParsingConfig
Returns
TypeDescription
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
NameDescription
builderForValueDocumentProcessingConfig.ParsingConfig.OcrParsingConfig.Builder
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

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

public DocumentProcessingConfig.ParsingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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