Resource: Catalog
The catalog configuration.
| JSON representation |
|---|
{
"name"
:
string
,
"displayName"
:
string
,
"productLevelConfig"
:
{
object (
|
| Fields | |
|---|---|
name
|
Required. Immutable. The fully qualified resource name of the catalog. |
displayName
|
Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. |
productLevelConfig
|
Required. The product level configuration. |
ProductLevelConfig
Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.
| JSON representation |
|---|
{ "ingestionProductType" : string , "merchantCenterProductIdField" : string } |
ingestionProductType
string
The type of Product
s allowed to be ingested into the catalog. Acceptable values are:
-
primary(default): You can ingestProducts of all types. When ingesting aProduct, its type will default toProduct.Type.PRIMARYif unset. -
variant(incompatible with Retail Search): You can only ingestProduct.Type.VARIANTProducts. This meansProduct.primary_product_idcannot be empty.
If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
If this field is variant
and merchantCenterProductIdField
is itemGroupId
, an INVALID_ARGUMENT error is returned.
See Product levels for more details.
merchantCenterProductIdField
string
Which field of Merchant Center Product
should be imported as Product.id
. Acceptable values are:
-
offerId(default): ImportofferIdas the product ID. -
itemGroupId: ImportitemGroupIdas the product ID. Notice that Retail API will choose one item from the ones with the sameitemGroupId, and use it to represent the item group.
If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
If this field is itemGroupId
and ingestionProductType
is variant
, an INVALID_ARGUMENT error is returned.
See Product levels for more details.
Methods |
|
|---|---|
|
Completes the specified prefix with keyword suggestions. |
|
Exports analytics metrics. |
|
Gets an AttributesConfig
. |
|
Gets a CompletionConfig
. |
|
Returns the conversational search customization config for a given catalog. |
|
Get which branch is currently default branch set by CatalogService.SetDefaultBranch
method under a specified parent catalog. |
|
Manages overal generative question feature state -- enables toggling feature on and off. |
|
Lists all the Catalog
s associated with the project. |
|
Updates the Catalog
s. |
|
Set a specified branch id as default branch. |
|
Updates the AttributesConfig
. |
|
Updates the CompletionConfig
s. |
|
Updates the conversational search customization config for a given catalog. |
|
Allows management of individual questions. |
|
Manages overal generative question feature state -- enables toggling feature on and off. |

