The input config source.
JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field source . Required. The source of the input. source can be only one of the following: |
||
catalogInlineSource |
The Inline source for the input content for Catalog items. |
|
gcsSource |
Google Cloud Storage location for the input content. |
|
userEventInlineSource |
The Inline source for the input content for UserEvents. |
|
bigQuerySource |
BigQuery input source. |
CatalogInlineSource
The inline source for the input config for catalogItems.import method.
JSON representation | |
---|---|
{
"catalogItems": [
{
object ( |
Fields | |
---|---|
catalogItems[] |
Optional. A list of catalog items to update/create. Recommended max of 10k items. |
GcsSource
Google Cloud Storage location for input content. format.
JSON representation | |
---|---|
{ "inputUris": [ string ], "jsonSchema": string } |
Fields | |
---|---|
inputUris[] |
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, |
jsonSchema |
Optional. The schema to use when parsing the data from the source. Supported values for catalog imports: 1: "catalog_recommendations_ai" using https://cloud.google.com/recommendations-ai/docs/upload-catalog#json (Default for catalogItems.import) 2: "catalog_merchant_center" using https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc Supported values for user events imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/recommendations-ai/docs/manage-user-events#import (Default for userEvents.import)
|
UserEventInlineSource
The inline source for the input config for userEvents.import method.
JSON representation | |
---|---|
{
"userEvents": [
{
object ( |
Fields | |
---|---|
userEvents[] |
Optional. A list of user events to import. Recommended max of 10k items. |
BigQuerySource
BigQuery source import data from.
JSON representation | |
---|---|
{ "projectId": string, "datasetId": string, "tableId": string, "gcsStagingDir": string, "dataSchema": string } |
Fields | |
---|---|
projectId |
Optional. The project id (can be project # or id) that the BigQuery source is in. If not specified, inherits the project id from the parent request. |
datasetId |
Required. The BigQuery data set to copy the data from. |
tableId |
Required. The BigQuery table to copy the data from. |
gcsStagingDir |
Optional. Intermediate Cloud Storage directory used for the import. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory. |
dataSchema |
Optional. The schema to use when parsing the data from the source. Supported values for catalog imports: 1: "catalog_recommendations_ai" using https://cloud.google.com/recommendations-ai/docs/upload-catalog#json (Default for catalogItems.import) 2: "catalog_merchant_center" using https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc Supported values for user event imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/recommendations-ai/docs/manage-user-events#import (Default for userEvents.import)
|