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.v1.DocumentProcessingConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DocumentProcessingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DocumentProcessingConfig build()
buildPartial()
public DocumentProcessingConfig buildPartial()
clear()
public DocumentProcessingConfig.Builder clear()
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
clearField(Descriptors.FieldDescriptor field)
public DocumentProcessingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public DocumentProcessingConfig.Builder clearName()
The full resource name of the Document Processing Config.
Format:
projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
.
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public DocumentProcessingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParsingConfigOverrides()
public DocumentProcessingConfig.Builder clearParsingConfigOverrides()
clone()
public DocumentProcessingConfig.Builder clone()
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public DocumentProcessingConfig getDefaultInstanceForType()
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableParsingConfigOverrides() (deprecated)
public Map<String,DocumentProcessingConfig.ParsingConfig> getMutableParsingConfigOverrides()
Use alternate mutation accessors instead.
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()
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.v1.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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Parameter |
Name |
Description |
key |
String
|
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
Returns |
Type |
Description |
boolean |
Whether the defaultParsingConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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()
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
mergeFrom(DocumentProcessingConfig other)
public DocumentProcessingConfig.Builder mergeFrom(DocumentProcessingConfig other)
public DocumentProcessingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DocumentProcessingConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DocumentProcessingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Parameter |
Name |
Description |
key |
String
|
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.v1.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Parameter |
Name |
Description |
key |
String
|
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
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.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
setField(Descriptors.FieldDescriptor field, Object value)
public DocumentProcessingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DocumentProcessingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DocumentProcessingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides