* $retailService = new Google\Service\CloudRetail(...); * $completionData = $retailService->completionData; * */ class ProjectsLocationsCatalogsCompletionData extends \Google\Service\Resource { /** * Bulk import of processed completion dataset. Request processing is * asynchronous. Partial updating is not supported. The operation is * successfully finished only after the imported suggestions are indexed * successfully and ready for serving. The process takes hours. This feature is * only available for users who have Retail Search enabled. Please enable Retail * Search on Cloud Console before using this feature. (completionData.import) * * @param string $parent Required. The catalog which the suggestions dataset * belongs to. Format: * `projects/1234/locations/global/catalogs/default_catalog`. * @param GoogleCloudRetailV2ImportCompletionDataRequest $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation */ public function import($parent, GoogleCloudRetailV2ImportCompletionDataRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('import', [$params], GoogleLongrunningOperation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsCatalogsCompletionData::class, 'Google_Service_CloudRetail_Resource_ProjectsLocationsCatalogsCompletionData');