Class ImportDocumentsRequest.Builder (2.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig>
Returns
TypeDescription
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
NameDescription
valueImportDocumentsRequest.BatchDocumentsImportConfig
Returns
TypeDescription
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
NameDescription
builderForValueImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueImportDocumentsRequest.BatchDocumentsImportConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ImportDocumentsRequest.BatchDocumentsImportConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest build()
Returns
TypeDescription
ImportDocumentsRequest

buildPartial()

public ImportDocumentsRequest buildPartial()
Returns
TypeDescription
ImportDocumentsRequest

clear()

public ImportDocumentsRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImportDocumentsRequest.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public ImportDocumentsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportDocumentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportDocumentsRequest other)

public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
Parameter
NameDescription
otherImportDocumentsRequest
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueImportDocumentsRequest.BatchDocumentsImportConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueImportDocumentsRequest.BatchDocumentsImportConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The dataset to set.

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

The bytes for dataset to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ImportDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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