Replaces the specified
CatalogAttribute in the
AttributesConfig by updating
the catalog attribute with the same
CatalogAttribute.key.
If the CatalogAttribute to
replace does not exist, a NOT_FOUND error is returned.
Set a specified branch id as default branch. API methods such as
SearchService.Search,
ProductService.GetProduct,
ProductService.ListProducts
will treat requests using "default_branch" to the actual branch id set as
default.
For example, if projects/*/locations/*/catalogs/*/branches/1 is set as
default, setting
SearchRequest.branch to
projects/*/locations/*/catalogs/*/branches/default_branch is equivalent
to setting
SearchRequest.branch to
projects/*/locations/*/catalogs/*/branches/1.
Using multiple branches can be useful when developers would like
to have a staging branch to test and verify for future usage. When it
becomes ready, developers switch on the staging branch using this API while
keeping using projects/*/locations/*/catalogs/*/branches/default_branch
as SearchRequest.branch
to route the traffic to this staging branch.
CAUTION: If you have live predict/search traffic, switching the default
branch could potentially cause outages if the ID space of the new branch is
very different from the old one.
More specifically:
PredictionService will only return product IDs from branch {newBranch}.
SearchService will only return product IDs from branch {newBranch}
(if branch is not explicitly set).
UserEventService will only join events with products from branch
{newBranch}.
Updates the
AttributesConfig.
The catalog attributes in the request will be updated in the catalog, or
inserted if they do not exist. Existing catalog attributes not included in
the request will remain unchanged. Attributes that are assigned to
products, but do not exist at the catalog level, are always included in the
response. The product attribute is assigned default values for missing
catalog attribute fields, e.g., searchable and dynamic facetable options.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]