Class DocumentProcessingConfig.Builder (0.38.0)

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

A singleton resource of DataStore. It's empty when DataStore is created, which defaults to digital parser. The first call to DataStoreService.UpdateDocumentProcessingConfig method will initialize the config.

Protobuf type google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentProcessingConfig build()
Returns
Type Description
DocumentProcessingConfig

buildPartial()

public DocumentProcessingConfig buildPartial()
Returns
Type Description
DocumentProcessingConfig

clear()

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

clearChunkingConfig()

public DocumentProcessingConfig.Builder clearChunkingConfig()

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Returns
Type Description
DocumentProcessingConfig.Builder

clearDefaultParsingConfig()

public DocumentProcessingConfig.Builder clearDefaultParsingConfig()

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
Type Description
DocumentProcessingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DocumentProcessingConfig.Builder clearName()

The full resource name of the Document Processing Config. Format: projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig.

string name = 1;

Returns
Type Description
DocumentProcessingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParsingConfigOverrides()

public DocumentProcessingConfig.Builder clearParsingConfigOverrides()
Returns
Type Description
DocumentProcessingConfig.Builder

clone()

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

containsParsingConfigOverrides(String key)

public boolean containsParsingConfigOverrides(String key)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getChunkingConfig()

public DocumentProcessingConfig.ChunkingConfig getChunkingConfig()

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Returns
Type Description
DocumentProcessingConfig.ChunkingConfig

The chunkingConfig.

getChunkingConfigBuilder()

public DocumentProcessingConfig.ChunkingConfig.Builder getChunkingConfigBuilder()

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Returns
Type Description
DocumentProcessingConfig.ChunkingConfig.Builder

getChunkingConfigOrBuilder()

public DocumentProcessingConfig.ChunkingConfigOrBuilder getChunkingConfigOrBuilder()

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Returns
Type Description
DocumentProcessingConfig.ChunkingConfigOrBuilder

getDefaultInstanceForType()

public DocumentProcessingConfig getDefaultInstanceForType()
Returns
Type Description
DocumentProcessingConfig

getDefaultParsingConfig()

public DocumentProcessingConfig.ParsingConfig getDefaultParsingConfig()

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig

The defaultParsingConfig.

getDefaultParsingConfigBuilder()

public DocumentProcessingConfig.ParsingConfig.Builder getDefaultParsingConfigBuilder()

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

getDefaultParsingConfigOrBuilder()

public DocumentProcessingConfig.ParsingConfigOrBuilder getDefaultParsingConfigOrBuilder()

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
Type Description
DocumentProcessingConfig.ParsingConfigOrBuilder

getDescriptorForType()

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

getMutableParsingConfigOverrides() (deprecated)

public Map<String,DocumentProcessingConfig.ParsingConfig> getMutableParsingConfigOverrides()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ParsingConfig>

getName()

public String getName()

The full resource name of the Document Processing Config. Format: projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The full resource name of the Document Processing Config. Format: projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParsingConfigOverrides() (deprecated)

public Map<String,DocumentProcessingConfig.ParsingConfig> getParsingConfigOverrides()
Returns
Type Description
Map<String,ParsingConfig>

getParsingConfigOverridesCount()

public int getParsingConfigOverridesCount()

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Returns
Type Description
int

getParsingConfigOverridesMap()

public Map<String,DocumentProcessingConfig.ParsingConfig> getParsingConfigOverridesMap()

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Returns
Type Description
Map<String,ParsingConfig>

getParsingConfigOverridesOrDefault(String key, DocumentProcessingConfig.ParsingConfig defaultValue)

public DocumentProcessingConfig.ParsingConfig getParsingConfigOverridesOrDefault(String key, DocumentProcessingConfig.ParsingConfig defaultValue)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameters
Name Description
key String
defaultValue DocumentProcessingConfig.ParsingConfig
Returns
Type Description
DocumentProcessingConfig.ParsingConfig

getParsingConfigOverridesOrThrow(String key)

public DocumentProcessingConfig.ParsingConfig getParsingConfigOverridesOrThrow(String key)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
Name Description
key String
Returns
Type Description
DocumentProcessingConfig.ParsingConfig

hasChunkingConfig()

public boolean hasChunkingConfig()

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Returns
Type Description
boolean

Whether the chunkingConfig field is set.

hasDefaultParsingConfig()

public boolean hasDefaultParsingConfig()

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
Type Description
boolean

Whether the defaultParsingConfig field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChunkingConfig(DocumentProcessingConfig.ChunkingConfig value)

public DocumentProcessingConfig.Builder mergeChunkingConfig(DocumentProcessingConfig.ChunkingConfig value)

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Parameter
Name Description
value DocumentProcessingConfig.ChunkingConfig
Returns
Type Description
DocumentProcessingConfig.Builder

mergeDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig value)

public DocumentProcessingConfig.Builder mergeDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig value)

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

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

mergeFrom(DocumentProcessingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllParsingConfigOverrides(Map<String,DocumentProcessingConfig.ParsingConfig> values)

public DocumentProcessingConfig.Builder putAllParsingConfigOverrides(Map<String,DocumentProcessingConfig.ParsingConfig> values)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
Name Description
values Map<String,ParsingConfig>
Returns
Type Description
DocumentProcessingConfig.Builder

putParsingConfigOverrides(String key, DocumentProcessingConfig.ParsingConfig value)

public DocumentProcessingConfig.Builder putParsingConfigOverrides(String key, DocumentProcessingConfig.ParsingConfig value)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameters
Name Description
key String
value DocumentProcessingConfig.ParsingConfig
Returns
Type Description
DocumentProcessingConfig.Builder

putParsingConfigOverridesBuilderIfAbsent(String key)

public DocumentProcessingConfig.ParsingConfig.Builder putParsingConfigOverridesBuilderIfAbsent(String key)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
Name Description
key String
Returns
Type Description
DocumentProcessingConfig.ParsingConfig.Builder

removeParsingConfigOverrides(String key)

public DocumentProcessingConfig.Builder removeParsingConfigOverrides(String key)

Map from file type to override the default parsing configuration based on the file type. Supported keys:

  • pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.
  • html: Override parsing config for HTML files, only digital parsing and or layout parsing are supported.
  • docx: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.

map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
Name Description
key String
Returns
Type Description
DocumentProcessingConfig.Builder

setChunkingConfig(DocumentProcessingConfig.ChunkingConfig value)

public DocumentProcessingConfig.Builder setChunkingConfig(DocumentProcessingConfig.ChunkingConfig value)

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Parameter
Name Description
value DocumentProcessingConfig.ChunkingConfig
Returns
Type Description
DocumentProcessingConfig.Builder

setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.Builder builderForValue)

public DocumentProcessingConfig.Builder setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.Builder builderForValue)

Whether chunking mode is enabled.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;

Parameter
Name Description
builderForValue DocumentProcessingConfig.ChunkingConfig.Builder
Returns
Type Description
DocumentProcessingConfig.Builder

setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig value)

public DocumentProcessingConfig.Builder setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig value)

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

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

setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.Builder builderForValue)

public DocumentProcessingConfig.Builder setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.Builder builderForValue)

Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DocumentProcessingConfig.Builder setName(String value)

The full resource name of the Document Processing Config. Format: projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DocumentProcessingConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DocumentProcessingConfig.Builder setNameBytes(ByteString value)

The full resource name of the Document Processing Config. Format: projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DocumentProcessingConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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