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.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(ImportDocumentsRequest other)
ImportDocumentsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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 value)
BigQuery input source.ImportDocumentsRequest.Builder
setBigquerySource(BigQuerySource.Builder builderForValue)
BigQuery input source.ImportDocumentsRequest.Builder
setErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the Import.ImportDocumentsRequest.Builder
setErrorConfig(ImportErrorConfig.Builder builderForValue)
The desired location of errors incurred during the Import.ImportDocumentsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ImportDocumentsRequest.Builder
setGcsSource(GcsSource value)
Cloud Storage location for the input content.ImportDocumentsRequest.Builder
setGcsSource(GcsSource.Builder builderForValue)
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 value)
The Inline source for the input content for documents.ImportDocumentsRequest.Builder
setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
clear
public ImportDocumentsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
getDefaultInstanceForType
public ImportDocumentsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ImportDocumentsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ImportDocumentsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ImportDocumentsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
setField
public ImportDocumentsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
clearField
public ImportDocumentsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
clearOneof
public ImportDocumentsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
setRepeatedField
public ImportDocumentsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
addRepeatedField
public ImportDocumentsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
mergeFrom
public ImportDocumentsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.Builder>
-
mergeFrom
public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ImportDocumentsRequest.Builder>
- Throws:
IOException
-
getSourceCase
public ImportDocumentsRequest.SourceCase getSourceCase()
- Specified by:
getSourceCase
in 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:
hasInlineSource
in 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:
getInlineSource
in 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:
getInlineSourceOrBuilder
in interfaceImportDocumentsRequestOrBuilder
-
hasGcsSource
public boolean hasGcsSource()
Cloud Storage location for the input content.
.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3;
- Specified by:
hasGcsSource
in 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:
getGcsSource
in 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:
getGcsSourceOrBuilder
in interfaceImportDocumentsRequestOrBuilder
-
hasBigquerySource
public boolean hasBigquerySource()
BigQuery input source.
.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4;
- Specified by:
hasBigquerySource
in 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:
getBigquerySource
in 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:
getBigquerySourceOrBuilder
in 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:
getParent
in 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:
getParentBytes
in 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:
hasErrorConfig
in 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:
getErrorConfig
in 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:
getErrorConfigOrBuilder
in 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:
getReconciliationModeValue
in 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:
getReconciliationMode
in 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:
getAutoGenerateIds
in 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:
getIdField
in 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:
getIdFieldBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
mergeUnknownFields
public final ImportDocumentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
-
-