Class DocumentProcessingConfig.ParsingConfig.Builder (0.36.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.v1alpha.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.v1alpha.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

clearLayoutParsingConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearLayoutParsingConfig()

Configurations applied to layout parser.

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

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.Builder

clearOcrParsingConfig()

public DocumentProcessingConfig.ParsingConfig.Builder clearOcrParsingConfig()

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

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

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.DigitalParsingConfigOrBuilder

getLayoutParsingConfig()

public DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig getLayoutParsingConfig()

Configurations applied to layout parser.

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

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig

The layoutParsingConfig.

getLayoutParsingConfigBuilder()

public DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder getLayoutParsingConfigBuilder()

Configurations applied to layout parser.

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

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder

getLayoutParsingConfigOrBuilder()

public DocumentProcessingConfig.ParsingConfig.LayoutParsingConfigOrBuilder getLayoutParsingConfigOrBuilder()

Configurations applied to layout parser.

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

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig.LayoutParsingConfigOrBuilder

getOcrParsingConfig()

public DocumentProcessingConfig.ParsingConfig.OcrParsingConfig getOcrParsingConfig()

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

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

Returns
TypeDescription
boolean

Whether the digitalParsingConfig field is set.

hasLayoutParsingConfig()

public boolean hasLayoutParsingConfig()

Configurations applied to layout parser.

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

Returns
TypeDescription
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.v1alpha.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.v1alpha.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

mergeLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig value)

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

Configurations applied to layout parser.

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

Parameter
NameDescription
valueDocumentProcessingConfig.ParsingConfig.LayoutParsingConfig
Returns
TypeDescription
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.v1alpha.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.v1alpha.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.v1alpha.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

setLayoutParsingConfig(DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig value)

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

Configurations applied to layout parser.

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

Parameter
NameDescription
valueDocumentProcessingConfig.ParsingConfig.LayoutParsingConfig
Returns
TypeDescription
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.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3;

Parameter
NameDescription
builderForValueDocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.Builder
Returns
TypeDescription
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.v1alpha.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.v1alpha.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