Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Request message for Import methods.
Instance Attribute Summary collapse
-
#auto_generate_ids ⇒ Boolean
(also: #auto_generate_ids?)
Whether to automatically generate IDs for the documents if absent.
-
#bigquery_source ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource
BigQuery source import data from.
-
#error_config ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig
Configuration of destination for Import related errors.
-
#gcs_source ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource
Cloud Storage location for input content.
-
#id_field ⇒ String
The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents.
-
#inline_source ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource
The inline source for the input config for ImportDocuments method.
-
#reconciliation_mode ⇒ String
The mode of reconciliation between existing documents and the documents to be imported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1betaImportDocumentsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
Returns a new instance of GoogleCloudDiscoveryengineV1betaImportDocumentsRequest.
1269 1270 1271 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1269 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_generate_ids ⇒ Boolean Also known as: auto_generate_ids?
Whether to automatically generate IDs for the documents if absent. If set to
true, Document.ids are automatically generated based on the hash of the
payload, where IDs may not be consistent during multiple imports. In which
case ReconciliationMode.FULL is highly recommended to avoid duplicate contents.
If unset or set to false, Document.ids have to be specified using id_field,
otherwises, documents without IDs will fail to be imported. Only set this
field when using GcsSource or BigQuerySource, and when GcsSource.data_schema
or BigQuerySource.data_schema is custom. Otherwise, an INVALID_ARGUMENT
error is thrown.
Corresponds to the JSON property autoGenerateIds
1223 1224 1225 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1223 def auto_generate_ids @auto_generate_ids end |
#bigquery_source ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource
BigQuery source import data from.
Corresponds to the JSON property bigquerySource
1229 1230 1231 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1229 def bigquery_source @bigquery_source end |
#error_config ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig
Configuration of destination for Import related errors.
Corresponds to the JSON property errorConfig
1234 1235 1236 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1234 def error_config @error_config end |
#gcs_source ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource
Cloud Storage location for input content.
Corresponds to the JSON property gcsSource
1239 1240 1241 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1239 def gcs_source @gcs_source end |
#id_field ⇒ String
The field in the Cloud Storage and BigQuery sources that indicates the unique
IDs of the documents. For GcsSource it is the key of the JSON field. For
instance, my_id for JSON "my_id": "some_uuid". For BigQuerySource it is
the column name of the BigQuery table where the unique ids are stored. The
values of the JSON field or the BigQuery column will be used as the Document.
ids. The JSON field or the BigQuery column must be of string type, and the
values must be set as valid strings conform to RFC-1034 with 1-63 characters. Otherwise, documents without valid IDs
will fail to be imported. Only set this field when using GcsSource or
BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema
is custom. And only set this field when auto_generate_ids is unset or set as
false. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a
default value _id is used when importing from the allowed data sources.
Corresponds to the JSON property idField
1256 1257 1258 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1256 def id_field @id_field end |
#inline_source ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource
The inline source for the input config for ImportDocuments method.
Corresponds to the JSON property inlineSource
1261 1262 1263 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1261 def inline_source @inline_source end |
#reconciliation_mode ⇒ String
The mode of reconciliation between existing documents and the documents to be
imported. Defaults to ReconciliationMode.INCREMENTAL.
Corresponds to the JSON property reconciliationMode
1267 1268 1269 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1267 def reconciliation_mode @reconciliation_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1274 1275 1276 1277 1278 1279 1280 1281 1282 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1274 def update!(**args) @auto_generate_ids = args[:auto_generate_ids] if args.key?(:auto_generate_ids) @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source) @error_config = args[:error_config] if args.key?(:error_config) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @id_field = args[:id_field] if args.key?(:id_field) @inline_source = args[:inline_source] if args.key?(:inline_source) @reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode) end |