Class ImportDocumentsRequest.Builder (0.27.0)

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

Request message for Import methods.

Protobuf type google.cloud.discoveryengine.v1beta.ImportDocumentsRequest

Static Methods

getDescriptor()

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

Methods

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

clearAutoGenerateIds()

public ImportDocumentsRequest.Builder clearAutoGenerateIds()

Whether to automatically generate IDs for the documents if absent.

If set to true, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to false, Document.ids have to be specified using id_field, otherwise, documents without IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom or csv. Otherwise, an INVALID_ARGUMENT error is thrown.

bool auto_generate_ids = 8;

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearBigquerySource()

public ImportDocumentsRequest.Builder clearBigquerySource()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearErrorConfig()

public ImportDocumentsRequest.Builder clearErrorConfig()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public ImportDocumentsRequest.Builder clearGcsSource()

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearIdField()

public ImportDocumentsRequest.Builder clearIdField()

The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.

For GcsSource it is the key of the JSON field. For instance, my_id for JSON {"my_id": "some_uuid"}. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored.

The values of the JSON field or the BigQuery column are used as the Document.ids. The JSON field or the BigQuery column must be of string type, and the values must be set as valid strings conform to RFC-1034 with 1-63 characters. Otherwise, documents without valid IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom. And only set this field when auto_generate_ids is unset or set as false. Otherwise, an INVALID_ARGUMENT error is thrown.

If it is unset, a default value _id is used when importing from the allowed data sources.

string id_field = 9;

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearInlineSource()

public ImportDocumentsRequest.Builder clearInlineSource()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportDocumentsRequest.Builder clearParent()

Required. The parent branch resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

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

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearReconciliationMode()

public ImportDocumentsRequest.Builder clearReconciliationMode()

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearSource()

public ImportDocumentsRequest.Builder clearSource()
Returns
TypeDescription
ImportDocumentsRequest.Builder

clone()

public ImportDocumentsRequest.Builder clone()
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

getAutoGenerateIds()

public boolean getAutoGenerateIds()

Whether to automatically generate IDs for the documents if absent.

If set to true, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to false, Document.ids have to be specified using id_field, otherwise, documents without IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom or csv. Otherwise, an INVALID_ARGUMENT error is thrown.

bool auto_generate_ids = 8;

Returns
TypeDescription
boolean

The autoGenerateIds.

getBigquerySource()

public BigQuerySource getBigquerySource()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
BigQuerySource

The bigquerySource.

getBigquerySourceBuilder()

public BigQuerySource.Builder getBigquerySourceBuilder()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
BigQuerySource.Builder

getBigquerySourceOrBuilder()

public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
BigQuerySourceOrBuilder

getDefaultInstanceForType()

public ImportDocumentsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportDocumentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorConfig()

public ImportErrorConfig getErrorConfig()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportErrorConfig

The errorConfig.

getErrorConfigBuilder()

public ImportErrorConfig.Builder getErrorConfigBuilder()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportErrorConfig.Builder

getErrorConfigOrBuilder()

public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportErrorConfigOrBuilder

getGcsSource()

public GcsSource getGcsSource()

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSourceOrBuilder

getIdField()

public String getIdField()

The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.

For GcsSource it is the key of the JSON field. For instance, my_id for JSON {"my_id": "some_uuid"}. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored.

The values of the JSON field or the BigQuery column are used as the Document.ids. The JSON field or the BigQuery column must be of string type, and the values must be set as valid strings conform to RFC-1034 with 1-63 characters. Otherwise, documents without valid IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom. And only set this field when auto_generate_ids is unset or set as false. Otherwise, an INVALID_ARGUMENT error is thrown.

If it is unset, a default value _id is used when importing from the allowed data sources.

string id_field = 9;

Returns
TypeDescription
String

The idField.

getIdFieldBytes()

public ByteString getIdFieldBytes()

The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.

For GcsSource it is the key of the JSON field. For instance, my_id for JSON {"my_id": "some_uuid"}. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored.

The values of the JSON field or the BigQuery column are used as the Document.ids. The JSON field or the BigQuery column must be of string type, and the values must be set as valid strings conform to RFC-1034 with 1-63 characters. Otherwise, documents without valid IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom. And only set this field when auto_generate_ids is unset or set as false. Otherwise, an INVALID_ARGUMENT error is thrown.

If it is unset, a default value _id is used when importing from the allowed data sources.

string id_field = 9;

Returns
TypeDescription
ByteString

The bytes for idField.

getInlineSource()

public ImportDocumentsRequest.InlineSource getInlineSource()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.InlineSource

The inlineSource.

getInlineSourceBuilder()

public ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder

getInlineSourceOrBuilder()

public ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.InlineSourceOrBuilder

getParent()

public String getParent()

Required. The parent branch resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent branch resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getReconciliationMode()

public ImportDocumentsRequest.ReconciliationMode getReconciliationMode()

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Returns
TypeDescription
ImportDocumentsRequest.ReconciliationMode

The reconciliationMode.

getReconciliationModeValue()

public int getReconciliationModeValue()

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for reconciliationMode.

getSourceCase()

public ImportDocumentsRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportDocumentsRequest.SourceCase

hasBigquerySource()

public boolean hasBigquerySource()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
boolean

Whether the bigquerySource field is set.

hasErrorConfig()

public boolean hasErrorConfig()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
boolean

Whether the errorConfig field is set.

hasGcsSource()

public boolean hasGcsSource()

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

hasInlineSource()

public boolean hasInlineSource()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
boolean

Whether the inlineSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBigquerySource(BigQuerySource value)

public ImportDocumentsRequest.Builder mergeBigquerySource(BigQuerySource value)

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Parameter
NameDescription
valueBigQuerySource
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeErrorConfig(ImportErrorConfig value)

public ImportDocumentsRequest.Builder mergeErrorConfig(ImportErrorConfig value)

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
ImportDocumentsRequest.Builder

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

mergeGcsSource(GcsSource value)

public ImportDocumentsRequest.Builder mergeGcsSource(GcsSource value)

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeInlineSource(ImportDocumentsRequest.InlineSource value)

public ImportDocumentsRequest.Builder mergeInlineSource(ImportDocumentsRequest.InlineSource value)

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Parameter
NameDescription
valueImportDocumentsRequest.InlineSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoGenerateIds(boolean value)

public ImportDocumentsRequest.Builder setAutoGenerateIds(boolean value)

Whether to automatically generate IDs for the documents if absent.

If set to true, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to false, Document.ids have to be specified using id_field, otherwise, documents without IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom or csv. Otherwise, an INVALID_ARGUMENT error is thrown.

bool auto_generate_ids = 8;

Parameter
NameDescription
valueboolean

The autoGenerateIds to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setBigquerySource(BigQuerySource value)

public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource value)

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Parameter
NameDescription
valueBigQuerySource
Returns
TypeDescription
ImportDocumentsRequest.Builder

setBigquerySource(BigQuerySource.Builder builderForValue)

public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource.Builder builderForValue)

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Parameter
NameDescription
builderForValueBigQuerySource.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setErrorConfig(ImportErrorConfig value)

public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig value)

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
ImportDocumentsRequest.Builder

setErrorConfig(ImportErrorConfig.Builder builderForValue)

public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Parameter
NameDescription
builderForValueImportErrorConfig.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public ImportDocumentsRequest.Builder setGcsSource(GcsSource value)

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

setGcsSource(GcsSource.Builder builderForValue)

public ImportDocumentsRequest.Builder setGcsSource(GcsSource.Builder builderForValue)

Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setIdField(String value)

public ImportDocumentsRequest.Builder setIdField(String value)

The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.

For GcsSource it is the key of the JSON field. For instance, my_id for JSON {"my_id": "some_uuid"}. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored.

The values of the JSON field or the BigQuery column are used as the Document.ids. The JSON field or the BigQuery column must be of string type, and the values must be set as valid strings conform to RFC-1034 with 1-63 characters. Otherwise, documents without valid IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom. And only set this field when auto_generate_ids is unset or set as false. Otherwise, an INVALID_ARGUMENT error is thrown.

If it is unset, a default value _id is used when importing from the allowed data sources.

string id_field = 9;

Parameter
NameDescription
valueString

The idField to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setIdFieldBytes(ByteString value)

public ImportDocumentsRequest.Builder setIdFieldBytes(ByteString value)

The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.

For GcsSource it is the key of the JSON field. For instance, my_id for JSON {"my_id": "some_uuid"}. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored.

The values of the JSON field or the BigQuery column are used as the Document.ids. The JSON field or the BigQuery column must be of string type, and the values must be set as valid strings conform to RFC-1034 with 1-63 characters. Otherwise, documents without valid IDs fail to be imported.

Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is custom. And only set this field when auto_generate_ids is unset or set as false. Otherwise, an INVALID_ARGUMENT error is thrown.

If it is unset, a default value _id is used when importing from the allowed data sources.

string id_field = 9;

Parameter
NameDescription
valueByteString

The bytes for idField to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setInlineSource(ImportDocumentsRequest.InlineSource value)

public ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource value)

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Parameter
NameDescription
valueImportDocumentsRequest.InlineSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)

public ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Parameter
NameDescription
builderForValueImportDocumentsRequest.InlineSource.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setParent(String value)

public ImportDocumentsRequest.Builder setParent(String value)

Required. The parent branch resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportDocumentsRequest.Builder setParentBytes(ByteString value)

Required. The parent branch resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setReconciliationMode(ImportDocumentsRequest.ReconciliationMode value)

public ImportDocumentsRequest.Builder setReconciliationMode(ImportDocumentsRequest.ReconciliationMode value)

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Parameter
NameDescription
valueImportDocumentsRequest.ReconciliationMode

The reconciliationMode to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setReconciliationModeValue(int value)

public ImportDocumentsRequest.Builder setReconciliationModeValue(int value)

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for reconciliationMode to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

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