Class ImportDocumentsRequest.Builder (2.47.0)

public static final class ImportDocumentsRequest.Builder extends GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder> implements ImportDocumentsRequestOrBuilder

Protobuf type google.cloud.documentai.v1beta3.ImportDocumentsRequest

Static Methods

getDescriptor()

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

Methods

addAllBatchDocumentsImportConfigs(Iterable<? extends ImportDocumentsRequest.BatchDocumentsImportConfig> values)

public ImportDocumentsRequest.Builder addAllBatchDocumentsImportConfigs(Iterable<? extends ImportDocumentsRequest.BatchDocumentsImportConfig> values)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig>
Returns
Type Description
ImportDocumentsRequest.Builder

addBatchDocumentsImportConfigs(ImportDocumentsRequest.BatchDocumentsImportConfig value)

public ImportDocumentsRequest.Builder addBatchDocumentsImportConfigs(ImportDocumentsRequest.BatchDocumentsImportConfig value)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportDocumentsRequest.BatchDocumentsImportConfig
Returns
Type Description
ImportDocumentsRequest.Builder

addBatchDocumentsImportConfigs(ImportDocumentsRequest.BatchDocumentsImportConfig.Builder builderForValue)

public ImportDocumentsRequest.Builder addBatchDocumentsImportConfigs(ImportDocumentsRequest.BatchDocumentsImportConfig.Builder builderForValue)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Returns
Type Description
ImportDocumentsRequest.Builder

addBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig value)

public ImportDocumentsRequest.Builder addBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig value)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ImportDocumentsRequest.BatchDocumentsImportConfig
Returns
Type Description
ImportDocumentsRequest.Builder

addBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig.Builder builderForValue)

public ImportDocumentsRequest.Builder addBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig.Builder builderForValue)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Returns
Type Description
ImportDocumentsRequest.Builder

addBatchDocumentsImportConfigsBuilder()

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder addBatchDocumentsImportConfigsBuilder()

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

addBatchDocumentsImportConfigsBuilder(int index)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder addBatchDocumentsImportConfigsBuilder(int index)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest build()
Returns
Type Description
ImportDocumentsRequest

buildPartial()

public ImportDocumentsRequest buildPartial()
Returns
Type Description
ImportDocumentsRequest

clear()

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

clearBatchDocumentsImportConfigs()

public ImportDocumentsRequest.Builder clearBatchDocumentsImportConfigs()

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentsRequest.Builder

clearDataset()

public ImportDocumentsRequest.Builder clearDataset()

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBatchDocumentsImportConfigs(int index)

public ImportDocumentsRequest.BatchDocumentsImportConfig getBatchDocumentsImportConfigs(int index)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig

getBatchDocumentsImportConfigsBuilder(int index)

public ImportDocumentsRequest.BatchDocumentsImportConfig.Builder getBatchDocumentsImportConfigsBuilder(int index)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

getBatchDocumentsImportConfigsBuilderList()

public List<ImportDocumentsRequest.BatchDocumentsImportConfig.Builder> getBatchDocumentsImportConfigsBuilderList()

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getBatchDocumentsImportConfigsCount()

public int getBatchDocumentsImportConfigsCount()

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getBatchDocumentsImportConfigsList()

public List<ImportDocumentsRequest.BatchDocumentsImportConfig> getBatchDocumentsImportConfigsList()

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<BatchDocumentsImportConfig>

getBatchDocumentsImportConfigsOrBuilder(int index)

public ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder getBatchDocumentsImportConfigsOrBuilder(int index)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder

getBatchDocumentsImportConfigsOrBuilderList()

public List<? extends ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder> getBatchDocumentsImportConfigsOrBuilderList()

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfigOrBuilder>

getDataset()

public String getDataset()

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public ImportDocumentsRequest getDefaultInstanceForType()
Returns
Type Description
ImportDocumentsRequest

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportDocumentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBatchDocumentsImportConfigs(int index)

public ImportDocumentsRequest.Builder removeBatchDocumentsImportConfigs(int index)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportDocumentsRequest.Builder

setBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig value)

public ImportDocumentsRequest.Builder setBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig value)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ImportDocumentsRequest.BatchDocumentsImportConfig
Returns
Type Description
ImportDocumentsRequest.Builder

setBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig.Builder builderForValue)

public ImportDocumentsRequest.Builder setBatchDocumentsImportConfigs(int index, ImportDocumentsRequest.BatchDocumentsImportConfig.Builder builderForValue)

Required. The Cloud Storage uri containing raw documents that must be imported.

repeated .google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig batch_documents_import_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Returns
Type Description
ImportDocumentsRequest.Builder

setDataset(String value)

public ImportDocumentsRequest.Builder setDataset(String value)

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public ImportDocumentsRequest.Builder setDatasetBytes(ByteString value)

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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