lib/google/apis/retail_v2beta/service.rb in google-apis-retail_v2beta-0.70.0 vs lib/google/apis/retail_v2beta/service.rb in google-apis-retail_v2beta-0.71.0

- old
+ new

@@ -55,12 +55,10 @@ # available for users who have Retail Search enabled. Enable Retail Search on # Cloud Console before using this feature. # @param [String] catalog # Required. Catalog for which the completion is performed. Full resource name of # catalog, such as `projects/*/locations/global/catalogs/default_catalog`. - # @param [String] banner - # The banner context for completion suggestions. # @param [String] dataset # Determines which dataset to use for fetching completion. "user-data" will use # the imported dataset through CompletionService.ImportCompletionData. "cloud- # retail" will use the dataset generated by cloud retail based on user events. # If leave empty, it will use the "user-data". Current supported values: * user- @@ -71,10 +69,15 @@ # The device type context for completion suggestions. We recommend that you # leave this field empty. It can apply different suggestions on different device # types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across # all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * ` # MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`. + # @param [String] entity + # The entity for customers that may run multiple different entities, domains, + # sites or regions, for example, "Google US", "Google Ads", "Waymo", "google.com" + # , "youtube.com", etc. If this is set, it should be exactly matched with + # UserEvent.entity to get per-entity autocomplete results. # @param [Array<String>, String] language_codes # Note that this field applies for `user-data` dataset only. For requests with ` # cloud-retail` dataset, setting this field has no effect. The language filters # applied to the output suggestions. If set, it should contain the language of # the query. If not set, suggestions are returned without considering language @@ -110,17 +113,17 @@ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def complete_project_location_catalog_query(catalog, banner: nil, dataset: nil, device_type: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, entity: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+catalog}:completeQuery', options) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse command.params['catalog'] = catalog unless catalog.nil? - command.query['banner'] = banner unless banner.nil? command.query['dataset'] = dataset unless dataset.nil? command.query['deviceType'] = device_type unless device_type.nil? + command.query['entity'] = entity unless entity.nil? command.query['languageCodes'] = language_codes unless language_codes.nil? command.query['maxSuggestions'] = max_suggestions unless max_suggestions.nil? command.query['query'] = query unless query.nil? command.query['visitorId'] = visitor_id unless visitor_id.nil? command.query['fields'] = fields unless fields.nil?