public static final class ImportDocumentsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder> implements ImportDocumentsRequestOrBuilder
Request message for Import methods.Protobuf type
google.cloud.discoveryengine.v1beta.ImportDocumentsRequest| Modifier and Type | Method and Description |
|---|---|
ImportDocumentsRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImportDocumentsRequest |
build() |
ImportDocumentsRequest |
buildPartial() |
ImportDocumentsRequest.Builder |
clear() |
ImportDocumentsRequest.Builder |
clearAutoGenerateIds()
Whether to automatically generate IDs for the documents if absent.
|
ImportDocumentsRequest.Builder |
clearBigquerySource()
BigQuery input source.
|
ImportDocumentsRequest.Builder |
clearErrorConfig()
The desired location of errors incurred during the Import.
|
ImportDocumentsRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ImportDocumentsRequest.Builder |
clearGcsSource()
Cloud Storage location for the input content.
|
ImportDocumentsRequest.Builder |
clearIdField()
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
|
ImportDocumentsRequest.Builder |
clearInlineSource()
The Inline source for the input content for documents.
|
ImportDocumentsRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ImportDocumentsRequest.Builder |
clearParent()
Required.
|
ImportDocumentsRequest.Builder |
clearReconciliationMode()
The mode of reconciliation between existing documents and the documents to
be imported.
|
ImportDocumentsRequest.Builder |
clearSource() |
ImportDocumentsRequest.Builder |
clone() |
boolean |
getAutoGenerateIds()
Whether to automatically generate IDs for the documents if absent.
|
BigQuerySource |
getBigquerySource()
BigQuery input source.
|
BigQuerySource.Builder |
getBigquerySourceBuilder()
BigQuery input source.
|
BigQuerySourceOrBuilder |
getBigquerySourceOrBuilder()
BigQuery input source.
|
ImportDocumentsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ImportErrorConfig |
getErrorConfig()
The desired location of errors incurred during the Import.
|
ImportErrorConfig.Builder |
getErrorConfigBuilder()
The desired location of errors incurred during the Import.
|
ImportErrorConfigOrBuilder |
getErrorConfigOrBuilder()
The desired location of errors incurred during the Import.
|
GcsSource |
getGcsSource()
Cloud Storage location for the input content.
|
GcsSource.Builder |
getGcsSourceBuilder()
Cloud Storage location for the input content.
|
GcsSourceOrBuilder |
getGcsSourceOrBuilder()
Cloud Storage location for the input content.
|
String |
getIdField()
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
|
com.google.protobuf.ByteString |
getIdFieldBytes()
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
|
ImportDocumentsRequest.InlineSource |
getInlineSource()
The Inline source for the input content for documents.
|
ImportDocumentsRequest.InlineSource.Builder |
getInlineSourceBuilder()
The Inline source for the input content for documents.
|
ImportDocumentsRequest.InlineSourceOrBuilder |
getInlineSourceOrBuilder()
The Inline source for the input content for documents.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
ImportDocumentsRequest.ReconciliationMode |
getReconciliationMode()
The mode of reconciliation between existing documents and the documents to
be imported.
|
int |
getReconciliationModeValue()
The mode of reconciliation between existing documents and the documents to
be imported.
|
ImportDocumentsRequest.SourceCase |
getSourceCase() |
boolean |
hasBigquerySource()
BigQuery input source.
|
boolean |
hasErrorConfig()
The desired location of errors incurred during the Import.
|
boolean |
hasGcsSource()
Cloud Storage location for the input content.
|
boolean |
hasInlineSource()
The Inline source for the input content for documents.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ImportDocumentsRequest.Builder |
mergeBigquerySource(BigQuerySource value)
BigQuery input source.
|
ImportDocumentsRequest.Builder |
mergeErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.
|
ImportDocumentsRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImportDocumentsRequest.Builder |
mergeFrom(ImportDocumentsRequest other) |
ImportDocumentsRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
ImportDocumentsRequest.Builder |
mergeGcsSource(GcsSource value)
Cloud Storage location for the input content.
|
ImportDocumentsRequest.Builder |
mergeInlineSource(ImportDocumentsRequest.InlineSource value)
The Inline source for the input content for documents.
|
ImportDocumentsRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImportDocumentsRequest.Builder |
setAutoGenerateIds(boolean value)
Whether to automatically generate IDs for the documents if absent.
|
ImportDocumentsRequest.Builder |
setBigquerySource(BigQuerySource.Builder builderForValue)
BigQuery input source.
|
ImportDocumentsRequest.Builder |
setBigquerySource(BigQuerySource value)
BigQuery input source.
|
ImportDocumentsRequest.Builder |
setErrorConfig(ImportErrorConfig.Builder builderForValue)
The desired location of errors incurred during the Import.
|
ImportDocumentsRequest.Builder |
setErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.
|
ImportDocumentsRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImportDocumentsRequest.Builder |
setGcsSource(GcsSource.Builder builderForValue)
Cloud Storage location for the input content.
|
ImportDocumentsRequest.Builder |
setGcsSource(GcsSource value)
Cloud Storage location for the input content.
|
ImportDocumentsRequest.Builder |
setIdField(String value)
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
|
ImportDocumentsRequest.Builder |
setIdFieldBytes(com.google.protobuf.ByteString value)
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
|
ImportDocumentsRequest.Builder |
setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)
The Inline source for the input content for documents.
|
ImportDocumentsRequest.Builder |
setInlineSource(ImportDocumentsRequest.InlineSource value)
The Inline source for the input content for documents.
|
ImportDocumentsRequest.Builder |
setParent(String value)
Required.
|
ImportDocumentsRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
ImportDocumentsRequest.Builder |
setReconciliationMode(ImportDocumentsRequest.ReconciliationMode value)
The mode of reconciliation between existing documents and the documents to
be imported.
|
ImportDocumentsRequest.Builder |
setReconciliationModeValue(int value)
The mode of reconciliation between existing documents and the documents to
be imported.
|
ImportDocumentsRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ImportDocumentsRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ImportDocumentsRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ImportDocumentsRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ImportDocumentsRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public ImportDocumentsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.Builder>IOExceptionpublic ImportDocumentsRequest.SourceCase getSourceCase()
getSourceCase in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder clearSource()
public boolean hasInlineSource()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
hasInlineSource in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.InlineSource getInlineSource()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
getInlineSource in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource value)
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
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;
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;
public ImportDocumentsRequest.Builder clearInlineSource()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
public ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
public ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
getInlineSourceOrBuilder in interface ImportDocumentsRequestOrBuilderpublic boolean hasGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;hasGcsSource in interface ImportDocumentsRequestOrBuilderpublic GcsSource getGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;getGcsSource in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder setGcsSource(GcsSource value)
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;public ImportDocumentsRequest.Builder setGcsSource(GcsSource.Builder builderForValue)
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;public ImportDocumentsRequest.Builder mergeGcsSource(GcsSource value)
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;public ImportDocumentsRequest.Builder clearGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;public GcsSource.Builder getGcsSourceBuilder()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;public GcsSourceOrBuilder getGcsSourceOrBuilder()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;getGcsSourceOrBuilder in interface ImportDocumentsRequestOrBuilderpublic boolean hasBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;hasBigquerySource in interface ImportDocumentsRequestOrBuilderpublic BigQuerySource getBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;getBigquerySource in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource value)
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource.Builder builderForValue)
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;public ImportDocumentsRequest.Builder mergeBigquerySource(BigQuerySource value)
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;public ImportDocumentsRequest.Builder clearBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;public BigQuerySource.Builder getBigquerySourceBuilder()
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()
BigQuery input source.
.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;getBigquerySourceOrBuilder in interface ImportDocumentsRequestOrBuilderpublic 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) = { ... }
getParent in interface ImportDocumentsRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getParentBytes in interface ImportDocumentsRequestOrBuilderpublic 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) = { ... }
value - The parent to set.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) = { ... }
public ImportDocumentsRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
value - The bytes for parent to set.public boolean hasErrorConfig()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;hasErrorConfig in interface ImportDocumentsRequestOrBuilderpublic ImportErrorConfig getErrorConfig()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;getErrorConfig in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;public ImportDocumentsRequest.Builder mergeErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;public ImportDocumentsRequest.Builder clearErrorConfig()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;public ImportErrorConfig.Builder getErrorConfigBuilder()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;getErrorConfigOrBuilder in interface ImportDocumentsRequestOrBuilderpublic 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.INCREMENTAL].
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
getReconciliationModeValue in interface ImportDocumentsRequestOrBuilderpublic 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.INCREMENTAL].
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
value - The enum numeric value on the wire for reconciliationMode to set.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.INCREMENTAL].
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
getReconciliationMode in interface ImportDocumentsRequestOrBuilderpublic 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.INCREMENTAL].
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
value - The reconciliationMode to set.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.INCREMENTAL].
.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
public boolean getAutoGenerateIds()
Whether to automatically generate IDs for the documents if absent. If set to `true`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case [ReconciliationMode.FULL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.FULL] is highly recommended to avoid duplicate contents. If unset or set to `false`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s have to be specified using [id_field][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.id_field], otherwise, documents without IDs fail to be imported. Only set this field when using [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema] is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;getAutoGenerateIds in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder setAutoGenerateIds(boolean value)
Whether to automatically generate IDs for the documents if absent. If set to `true`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case [ReconciliationMode.FULL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.FULL] is highly recommended to avoid duplicate contents. If unset or set to `false`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s have to be specified using [id_field][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.id_field], otherwise, documents without IDs fail to be imported. Only set this field when using [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema] is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;value - The autoGenerateIds to set.public ImportDocumentsRequest.Builder clearAutoGenerateIds()
Whether to automatically generate IDs for the documents if absent. If set to `true`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case [ReconciliationMode.FULL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.FULL] is highly recommended to avoid duplicate contents. If unset or set to `false`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s have to be specified using [id_field][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.id_field], otherwise, documents without IDs fail to be imported. Only set this field when using [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema] is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;public String getIdField()
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
key of the JSON field. For instance, `my_id` for JSON `{"my_id":
"some_uuid"}`. For
[BigQuerySource][google.cloud.discoveryengine.v1beta.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.id][google.cloud.discoveryengine.v1beta.Document.id]s. 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](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
Otherwise, documents without valid IDs fail to be imported.
Only set this field when using
[GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
[BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
when
[GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
or
[BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
is `custom`. And only set this field when
[auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.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;getIdField in interface ImportDocumentsRequestOrBuilderpublic com.google.protobuf.ByteString getIdFieldBytes()
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
key of the JSON field. For instance, `my_id` for JSON `{"my_id":
"some_uuid"}`. For
[BigQuerySource][google.cloud.discoveryengine.v1beta.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.id][google.cloud.discoveryengine.v1beta.Document.id]s. 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](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
Otherwise, documents without valid IDs fail to be imported.
Only set this field when using
[GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
[BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
when
[GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
or
[BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
is `custom`. And only set this field when
[auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.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;getIdFieldBytes in interface ImportDocumentsRequestOrBuilderpublic ImportDocumentsRequest.Builder setIdField(String value)
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
key of the JSON field. For instance, `my_id` for JSON `{"my_id":
"some_uuid"}`. For
[BigQuerySource][google.cloud.discoveryengine.v1beta.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.id][google.cloud.discoveryengine.v1beta.Document.id]s. 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](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
Otherwise, documents without valid IDs fail to be imported.
Only set this field when using
[GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
[BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
when
[GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
or
[BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
is `custom`. And only set this field when
[auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.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;value - The idField to set.public ImportDocumentsRequest.Builder clearIdField()
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
key of the JSON field. For instance, `my_id` for JSON `{"my_id":
"some_uuid"}`. For
[BigQuerySource][google.cloud.discoveryengine.v1beta.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.id][google.cloud.discoveryengine.v1beta.Document.id]s. 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](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
Otherwise, documents without valid IDs fail to be imported.
Only set this field when using
[GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
[BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
when
[GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
or
[BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
is `custom`. And only set this field when
[auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.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;public ImportDocumentsRequest.Builder setIdFieldBytes(com.google.protobuf.ByteString value)
The field in the Cloud Storage and BigQuery sources that indicates the
unique IDs of the documents.
For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
key of the JSON field. For instance, `my_id` for JSON `{"my_id":
"some_uuid"}`. For
[BigQuerySource][google.cloud.discoveryengine.v1beta.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.id][google.cloud.discoveryengine.v1beta.Document.id]s. 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](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
Otherwise, documents without valid IDs fail to be imported.
Only set this field when using
[GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
[BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
when
[GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
or
[BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
is `custom`. And only set this field when
[auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.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;value - The bytes for idField to set.public final ImportDocumentsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>public final ImportDocumentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.