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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentProcessingConfig build()
Returns
TypeDescription
DocumentProcessingConfig

buildPartial()

public DocumentProcessingConfig buildPartial()
Returns
TypeDescription
DocumentProcessingConfig

clear()

public DocumentProcessingConfig.Builder clear()
Returns
TypeDescription
DocumentProcessingConfig.Builder
Overrides

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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
TypeDescription
DocumentProcessingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParsingConfigOverrides()

public DocumentProcessingConfig.Builder clearParsingConfigOverrides()
Returns
TypeDescription
DocumentProcessingConfig.Builder

clone()

public DocumentProcessingConfig.Builder clone()
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public DocumentProcessingConfig getDefaultInstanceForType()
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
TypeDescription
DocumentProcessingConfig.ParsingConfigOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableParsingConfigOverrides() (deprecated)

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

Use alternate mutation accessors instead.

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

The bytes for name.

getParsingConfigOverrides() (deprecated)

public Map<String,DocumentProcessingConfig.ParsingConfig> getParsingConfigOverrides()
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameters
NameDescription
keyString
defaultValueDocumentProcessingConfig.ParsingConfig
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
DocumentProcessingConfig.ParsingConfig

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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Returns
TypeDescription
boolean

Whether the defaultParsingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Parameter
NameDescription
valueDocumentProcessingConfig.ParsingConfig
Returns
TypeDescription
DocumentProcessingConfig.Builder

mergeFrom(DocumentProcessingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocumentProcessingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentProcessingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentProcessingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
NameDescription
valuesMap<String,ParsingConfig>
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameters
NameDescription
keyString
valueDocumentProcessingConfig.ParsingConfig
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Parameter
NameDescription
valueDocumentProcessingConfig.ParsingConfig
Returns
TypeDescription
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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;

Parameter
NameDescription
builderForValueDocumentProcessingConfig.ParsingConfig.Builder
Returns
TypeDescription
DocumentProcessingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DocumentProcessingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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