You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Bulk import of processed completion dataset. Request processing may be synchronous. Partial updating is not supported. This feature is only available for users who have Retail Search enabled. Contact Retail Support ([email protected]) if you are interested in using Retail Search.</p>
<pre>Bulk import of processed completion dataset. Request processing may be synchronous. Partial updating is not supported. This feature is only available for users who have Retail Search enabled. Contact Retail Support ([email protected]) if you are interested in using Retail Search.
92
+
93
+
Args:
94
+
parent: string, Required. The catalog which the suggestions dataset belongs to. Format: `projects/1234/locations/global/catalogs/default_catalog`. (required)
95
+
body: object, The request body.
96
+
The object takes the form of:
97
+
98
+
{ # Request message for ImportCompletionData methods.
99
+
"inputConfig": { # The input config source for completion data. # Required. The desired input location of the data.
100
+
"bigQuerySource": { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission “BigQuery Data Viewer” for [email protected] before using this feature otherwise an error is thrown.
101
+
"dataSchema": "A String", # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
102
+
"datasetId": "A String", # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
103
+
"gcsStagingDir": "A String", # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
104
+
"partitionDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported when ImportProductsRequest.reconciliation_mode is set to `FULL`.
105
+
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
106
+
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
107
+
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
108
+
},
109
+
"projectId": "A String", # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
110
+
"tableId": "A String", # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
111
+
},
112
+
},
113
+
"notificationPubsubTopic": "A String", # Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
114
+
}
115
+
116
+
x__xgafv: string, V1 error format.
117
+
Allowed values
118
+
1 - v1 error format
119
+
2 - v2 error format
120
+
121
+
Returns:
122
+
An object of the form:
123
+
124
+
{ # This resource represents a long-running operation that is the result of a network API call.
125
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
126
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
127
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
128
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
129
+
{
130
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
131
+
},
132
+
],
133
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
134
+
},
135
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
136
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
137
+
},
138
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
139
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
140
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
0 commit comments