Class ImportDocumentsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
- com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.Builder
-
- All Implemented Interfaces:
ImportDocumentsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportDocumentsRequest
public static final class ImportDocumentsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder> implements ImportDocumentsRequestOrBuilder
Request message for Import methods.
Protobuf typegoogle.cloud.discoveryengine.v1.ImportDocumentsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportDocumentsRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImportDocumentsRequestbuild()ImportDocumentsRequestbuildPartial()ImportDocumentsRequest.Builderclear()ImportDocumentsRequest.BuilderclearAutoGenerateIds()Whether to automatically generate IDs for the documents if absent.ImportDocumentsRequest.BuilderclearBigquerySource()BigQuery input source.ImportDocumentsRequest.BuilderclearErrorConfig()The desired location of errors incurred during the Import.ImportDocumentsRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ImportDocumentsRequest.BuilderclearGcsSource()Cloud Storage location for the input content.ImportDocumentsRequest.BuilderclearIdField()The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.ImportDocumentsRequest.BuilderclearInlineSource()The Inline source for the input content for documents.ImportDocumentsRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ImportDocumentsRequest.BuilderclearParent()Required.ImportDocumentsRequest.BuilderclearReconciliationMode()The mode of reconciliation between existing documents and the documents to be imported.ImportDocumentsRequest.BuilderclearSource()ImportDocumentsRequest.Builderclone()booleangetAutoGenerateIds()Whether to automatically generate IDs for the documents if absent.BigQuerySourcegetBigquerySource()BigQuery input source.BigQuerySource.BuildergetBigquerySourceBuilder()BigQuery input source.BigQuerySourceOrBuildergetBigquerySourceOrBuilder()BigQuery input source.ImportDocumentsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ImportErrorConfiggetErrorConfig()The desired location of errors incurred during the Import.ImportErrorConfig.BuildergetErrorConfigBuilder()The desired location of errors incurred during the Import.ImportErrorConfigOrBuildergetErrorConfigOrBuilder()The desired location of errors incurred during the Import.GcsSourcegetGcsSource()Cloud Storage location for the input content.GcsSource.BuildergetGcsSourceBuilder()Cloud Storage location for the input content.GcsSourceOrBuildergetGcsSourceOrBuilder()Cloud Storage location for the input content.StringgetIdField()The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.com.google.protobuf.ByteStringgetIdFieldBytes()The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.ImportDocumentsRequest.InlineSourcegetInlineSource()The Inline source for the input content for documents.ImportDocumentsRequest.InlineSource.BuildergetInlineSourceBuilder()The Inline source for the input content for documents.ImportDocumentsRequest.InlineSourceOrBuildergetInlineSourceOrBuilder()The Inline source for the input content for documents.StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.ImportDocumentsRequest.ReconciliationModegetReconciliationMode()The mode of reconciliation between existing documents and the documents to be imported.intgetReconciliationModeValue()The mode of reconciliation between existing documents and the documents to be imported.ImportDocumentsRequest.SourceCasegetSourceCase()booleanhasBigquerySource()BigQuery input source.booleanhasErrorConfig()The desired location of errors incurred during the Import.booleanhasGcsSource()Cloud Storage location for the input content.booleanhasInlineSource()The Inline source for the input content for documents.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ImportDocumentsRequest.BuildermergeBigquerySource(BigQuerySource value)BigQuery input source.ImportDocumentsRequest.BuildermergeErrorConfig(ImportErrorConfig value)The desired location of errors incurred during the Import.ImportDocumentsRequest.BuildermergeFrom(ImportDocumentsRequest other)ImportDocumentsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ImportDocumentsRequest.BuildermergeFrom(com.google.protobuf.Message other)ImportDocumentsRequest.BuildermergeGcsSource(GcsSource value)Cloud Storage location for the input content.ImportDocumentsRequest.BuildermergeInlineSource(ImportDocumentsRequest.InlineSource value)The Inline source for the input content for documents.ImportDocumentsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ImportDocumentsRequest.BuildersetAutoGenerateIds(boolean value)Whether to automatically generate IDs for the documents if absent.ImportDocumentsRequest.BuildersetBigquerySource(BigQuerySource value)BigQuery input source.ImportDocumentsRequest.BuildersetBigquerySource(BigQuerySource.Builder builderForValue)BigQuery input source.ImportDocumentsRequest.BuildersetErrorConfig(ImportErrorConfig value)The desired location of errors incurred during the Import.ImportDocumentsRequest.BuildersetErrorConfig(ImportErrorConfig.Builder builderForValue)The desired location of errors incurred during the Import.ImportDocumentsRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImportDocumentsRequest.BuildersetGcsSource(GcsSource value)Cloud Storage location for the input content.ImportDocumentsRequest.BuildersetGcsSource(GcsSource.Builder builderForValue)Cloud Storage location for the input content.ImportDocumentsRequest.BuildersetIdField(String value)The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.ImportDocumentsRequest.BuildersetIdFieldBytes(com.google.protobuf.ByteString value)The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.ImportDocumentsRequest.BuildersetInlineSource(ImportDocumentsRequest.InlineSource value)The Inline source for the input content for documents.ImportDocumentsRequest.BuildersetInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)The Inline source for the input content for documents.ImportDocumentsRequest.BuildersetParent(String value)Required.ImportDocumentsRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Required.ImportDocumentsRequest.BuildersetReconciliationMode(ImportDocumentsRequest.ReconciliationMode value)The mode of reconciliation between existing documents and the documents to be imported.ImportDocumentsRequest.BuildersetReconciliationModeValue(int value)The mode of reconciliation between existing documents and the documents to be imported.ImportDocumentsRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ImportDocumentsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
clear
public ImportDocumentsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
getDefaultInstanceForType
public ImportDocumentsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ImportDocumentsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ImportDocumentsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ImportDocumentsRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
setField
public ImportDocumentsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
clearField
public ImportDocumentsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
clearOneof
public ImportDocumentsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
setRepeatedField
public ImportDocumentsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
addRepeatedField
public ImportDocumentsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
mergeFrom
public ImportDocumentsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.Builder>
-
mergeFrom
public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
mergeFrom
public ImportDocumentsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.Builder>- Throws:
IOException
-
getSourceCase
public ImportDocumentsRequest.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceImportDocumentsRequestOrBuilder
-
clearSource
public ImportDocumentsRequest.Builder clearSource()
-
hasInlineSource
public boolean hasInlineSource()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;- Specified by:
hasInlineSourcein interfaceImportDocumentsRequestOrBuilder- Returns:
- Whether the inlineSource field is set.
-
getInlineSource
public ImportDocumentsRequest.InlineSource getInlineSource()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;- Specified by:
getInlineSourcein interfaceImportDocumentsRequestOrBuilder- Returns:
- The inlineSource.
-
setInlineSource
public ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource value)
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;
-
setInlineSource
public ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;
-
mergeInlineSource
public ImportDocumentsRequest.Builder mergeInlineSource(ImportDocumentsRequest.InlineSource value)
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;
-
clearInlineSource
public ImportDocumentsRequest.Builder clearInlineSource()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;
-
getInlineSourceBuilder
public ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;
-
getInlineSourceOrBuilder
public ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()
The Inline source for the input content for documents.
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2;- Specified by:
getInlineSourceOrBuilderin interfaceImportDocumentsRequestOrBuilder
-
hasGcsSource
public boolean hasGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;- Specified by:
hasGcsSourcein interfaceImportDocumentsRequestOrBuilder- Returns:
- Whether the gcsSource field is set.
-
getGcsSource
public GcsSource getGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;- Specified by:
getGcsSourcein interfaceImportDocumentsRequestOrBuilder- Returns:
- The gcsSource.
-
setGcsSource
public ImportDocumentsRequest.Builder setGcsSource(GcsSource value)
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;
-
setGcsSource
public ImportDocumentsRequest.Builder setGcsSource(GcsSource.Builder builderForValue)
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;
-
mergeGcsSource
public ImportDocumentsRequest.Builder mergeGcsSource(GcsSource value)
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;
-
clearGcsSource
public ImportDocumentsRequest.Builder clearGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;
-
getGcsSourceBuilder
public GcsSource.Builder getGcsSourceBuilder()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;
-
getGcsSourceOrBuilder
public GcsSourceOrBuilder getGcsSourceOrBuilder()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;- Specified by:
getGcsSourceOrBuilderin interfaceImportDocumentsRequestOrBuilder
-
hasBigquerySource
public boolean hasBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;- Specified by:
hasBigquerySourcein interfaceImportDocumentsRequestOrBuilder- Returns:
- Whether the bigquerySource field is set.
-
getBigquerySource
public BigQuerySource getBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;- Specified by:
getBigquerySourcein interfaceImportDocumentsRequestOrBuilder- Returns:
- The bigquerySource.
-
setBigquerySource
public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource value)
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;
-
setBigquerySource
public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource.Builder builderForValue)
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;
-
mergeBigquerySource
public ImportDocumentsRequest.Builder mergeBigquerySource(BigQuerySource value)
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;
-
clearBigquerySource
public ImportDocumentsRequest.Builder clearBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;
-
getBigquerySourceBuilder
public BigQuerySource.Builder getBigquerySourceBuilder()
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;
-
getBigquerySourceOrBuilder
public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;- Specified by:
getBigquerySourceOrBuilderin interfaceImportDocumentsRequestOrBuilder
-
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) = { ... }- Specified by:
getParentin interfaceImportDocumentsRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public 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) = { ... }- Specified by:
getParentBytesin interfaceImportDocumentsRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setParentBytes
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) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasErrorConfig
public boolean hasErrorConfig()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;- Specified by:
hasErrorConfigin interfaceImportDocumentsRequestOrBuilder- Returns:
- Whether the errorConfig field is set.
-
getErrorConfig
public ImportErrorConfig getErrorConfig()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;- Specified by:
getErrorConfigin interfaceImportDocumentsRequestOrBuilder- Returns:
- The errorConfig.
-
setErrorConfig
public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
-
setErrorConfig
public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
-
mergeErrorConfig
public ImportDocumentsRequest.Builder mergeErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
-
clearErrorConfig
public ImportDocumentsRequest.Builder clearErrorConfig()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
-
getErrorConfigBuilder
public ImportErrorConfig.Builder getErrorConfigBuilder()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
-
getErrorConfigOrBuilder
public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()
The desired location of errors incurred during the Import.
.google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;- Specified by:
getErrorConfigOrBuilderin interfaceImportDocumentsRequestOrBuilder
-
getReconciliationModeValue
public int getReconciliationModeValue()
The mode of reconciliation between existing documents and the documents to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;- Specified by:
getReconciliationModeValuein interfaceImportDocumentsRequestOrBuilder- Returns:
- The enum numeric value on the wire for reconciliationMode.
-
setReconciliationModeValue
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.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;- Parameters:
value- The enum numeric value on the wire for reconciliationMode to set.- Returns:
- This builder for chaining.
-
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.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;- Specified by:
getReconciliationModein interfaceImportDocumentsRequestOrBuilder- Returns:
- The reconciliationMode.
-
setReconciliationMode
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.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;- Parameters:
value- The reconciliationMode to set.- Returns:
- 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.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;- Returns:
- This builder for chaining.
-
getAutoGenerateIds
public boolean getAutoGenerateIds()
Whether to automatically generate IDs for the documents if absent. If set to `true`, [Document.id][google.cloud.discoveryengine.v1.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.v1.ImportDocumentsRequest.ReconciliationMode.FULL] is highly recommended to avoid duplicate contents. If unset or set to `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have to be specified using [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], otherwise, documents without IDs fail to be imported. Only set this field when using [GcsSource][google.cloud.discoveryengine.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;- Specified by:
getAutoGenerateIdsin interfaceImportDocumentsRequestOrBuilder- Returns:
- The autoGenerateIds.
-
setAutoGenerateIds
public ImportDocumentsRequest.Builder setAutoGenerateIds(boolean value)
Whether to automatically generate IDs for the documents if absent. If set to `true`, [Document.id][google.cloud.discoveryengine.v1.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.v1.ImportDocumentsRequest.ReconciliationMode.FULL] is highly recommended to avoid duplicate contents. If unset or set to `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have to be specified using [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], otherwise, documents without IDs fail to be imported. Only set this field when using [GcsSource][google.cloud.discoveryengine.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;- Parameters:
value- The autoGenerateIds to set.- Returns:
- This builder for chaining.
-
clearAutoGenerateIds
public ImportDocumentsRequest.Builder clearAutoGenerateIds()
Whether to automatically generate IDs for the documents if absent. If set to `true`, [Document.id][google.cloud.discoveryengine.v1.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.v1.ImportDocumentsRequest.ReconciliationMode.FULL] is highly recommended to avoid duplicate contents. If unset or set to `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have to be specified using [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], otherwise, documents without IDs fail to be imported. Only set this field when using [GcsSource][google.cloud.discoveryengine.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;- Returns:
- This builder for chaining.
-
getIdField
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.v1.GcsSource] it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For [BigQuerySource][google.cloud.discoveryengine.v1.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.v1.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.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom`. And only set this field when [auto_generate_ids][google.cloud.discoveryengine.v1.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;- Specified by:
getIdFieldin interfaceImportDocumentsRequestOrBuilder- Returns:
- The idField.
-
getIdFieldBytes
public 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.v1.GcsSource] it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For [BigQuerySource][google.cloud.discoveryengine.v1.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.v1.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.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom`. And only set this field when [auto_generate_ids][google.cloud.discoveryengine.v1.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;- Specified by:
getIdFieldBytesin interfaceImportDocumentsRequestOrBuilder- Returns:
- The bytes for idField.
-
setIdField
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][google.cloud.discoveryengine.v1.GcsSource] it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For [BigQuerySource][google.cloud.discoveryengine.v1.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.v1.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.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom`. And only set this field when [auto_generate_ids][google.cloud.discoveryengine.v1.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;- Parameters:
value- The idField to set.- Returns:
- This builder for chaining.
-
clearIdField
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.v1.GcsSource] it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For [BigQuerySource][google.cloud.discoveryengine.v1.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.v1.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.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom`. And only set this field when [auto_generate_ids][google.cloud.discoveryengine.v1.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;- Returns:
- This builder for chaining.
-
setIdFieldBytes
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.v1.GcsSource] it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For [BigQuerySource][google.cloud.discoveryengine.v1.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.v1.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.v1.GcsSource] or [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource], and when [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] or [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] is `custom`. And only set this field when [auto_generate_ids][google.cloud.discoveryengine.v1.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;- Parameters:
value- The bytes for idField to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ImportDocumentsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
mergeUnknownFields
public final ImportDocumentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
-