NAME

Google::Cloud::Retail::V2::Catalog - Compiled Protocol Buffers messages for google/cloud/retail/v2/catalog.proto

SYNOPSIS

use Google::Cloud::Retail::V2::Catalog;

my $msg = Google::Cloud::Retail::V2::Catalog::ProductLevelConfig->new({
    ingestion_product_type => $ingestion_product_type,
    merchant_center_product_id_field => $merchant_center_product_id_field,
});

# Read or update a field
my $val = $msg->ingestion_product_type();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2::Catalog::ProductLevelConfig->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/catalog.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Retail::V2::Catalog::ProductLevelConfig

Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.

Inherits from Protobuf::Message.

Accessors

  • $msg->ingestion_product_type() / $msg->ingestion_product_type($value)

    Type: String

    The type of [Product][google.cloud.retail.v2.Product]s allowed to be ingested into the catalog. Acceptable values are:

    * `primary` (default): You can ingest [Product][google.cloud.retail.v2.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. * `variant` (incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id] cannot 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 [merchant_center_product_id_field][google.cloud.retail.v2.ProductLevelConfig.merchant_center_product_id_field] is `itemGroupId`, an INVALID_ARGUMENT error is returned.

    See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.

  • $msg->merchant_center_product_id_field() / $msg->merchant_center_product_id_field($value)

    Type: String

    Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable values are:

    * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, 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 [ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] is `variant`, an INVALID_ARGUMENT error is returned.

    See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.

Google::Cloud::Retail::V2::Catalog::CatalogAttribute

Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed.

    If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes.

  • $msg->in_use() / $msg->in_use($value)

    Type: Bool

    Output only. Indicates whether this attribute has been used by any products. `True` if at least one [Product][google.cloud.retail.v2.Product] is using this attribute in [Product.attributes][google.cloud.retail.v2.Product.attributes]. Otherwise, this field is `False`.

    [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] can be pre-loaded by using [CatalogService.AddCatalogAttribute][google.cloud.retail.v2.CatalogService.AddCatalogAttribute] or [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2.CatalogService.UpdateAttributesConfig] APIs. This field is `False` for pre-loaded [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute]s.

    Only pre-loaded [catalog attributes][google.cloud.retail.v2.CatalogAttribute] that are neither in use by products nor predefined can be deleted. [Catalog attributes][google.cloud.retail.v2.CatalogAttribute] that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

    After catalog changes, it takes about 10 minutes for this field to update.

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Retail::V2::CatalogAttribute::AttributeType)

    Output only. The type of this attribute. This is derived from the attribute in [Product.attributes][google.cloud.retail.v2.Product.attributes].

  • $msg->indexable_option() / $msg->indexable_option($value)

    Type: Enum (Google::Cloud::Retail::V2::CatalogAttribute::IndexableOption)

    When [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in [SearchService.Search][google.cloud.retail.v2.SearchService.Search].

    Must be specified when [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.

  • $msg->dynamic_facetable_option() / $msg->dynamic_facetable_option($value)

    Type: Enum (Google::Cloud::Retail::V2::CatalogAttribute::DynamicFacetableOption)

    If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if [CatalogAttribute.indexable_option][google.cloud.retail.v2.CatalogAttribute.indexable_option] is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned.

    Must be specified, otherwise throws INVALID_FORMAT error.

  • $msg->searchable_option() / $msg->searchable_option($value)

    Type: Enum (Google::Cloud::Retail::V2::CatalogAttribute::SearchableOption)

    When [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values are searchable by text queries in [SearchService.Search][google.cloud.retail.v2.SearchService.Search].

    If SEARCHABLE_ENABLED but attribute type is numerical, attribute values will not be searchable by text queries in [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as there are no text values associated to numerical attributes.

    Must be specified, when [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.

  • $msg->exact_searchable_option() / $msg->exact_searchable_option($value)

    Type: Enum (Google::Cloud::Retail::V2::CatalogAttribute::ExactSearchableOption)

    If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to [EXACT_SEARCHABLE_DISABLED][google.cloud.retail.v2.CatalogAttribute.ExactSearchableOption.EXACT_SEARCHABLE_DISABLED].

  • $msg->retrievable_option() / $msg->retrievable_option($value)

    Type: Enum (Google::Cloud::Retail::V2::CatalogAttribute::RetrievableOption)

    If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to [RETRIEVABLE_DISABLED][google.cloud.retail.v2.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED].

  • $msg->facet_config() / $msg->facet_config($value)

    Type: Message (Google::Cloud::Retail::V2::Catalog::CatalogAttribute::FacetConfig)

    Contains facet options.

Enum: CatalogAttribute::AttributeType

  • UNKNOWN => 0

  • TEXTUAL => 1

  • NUMERICAL => 2

Enum: CatalogAttribute::IndexableOption

  • INDEXABLE_OPTION_UNSPECIFIED => 0

  • INDEXABLE_ENABLED => 1

  • INDEXABLE_DISABLED => 2

Enum: CatalogAttribute::DynamicFacetableOption

  • DYNAMIC_FACETABLE_OPTION_UNSPECIFIED => 0

  • DYNAMIC_FACETABLE_ENABLED => 1

  • DYNAMIC_FACETABLE_DISABLED => 2

Enum: CatalogAttribute::SearchableOption

  • SEARCHABLE_OPTION_UNSPECIFIED => 0

  • SEARCHABLE_ENABLED => 1

  • SEARCHABLE_DISABLED => 2

Enum: CatalogAttribute::ExactSearchableOption

  • EXACT_SEARCHABLE_OPTION_UNSPECIFIED => 0

  • EXACT_SEARCHABLE_ENABLED => 1

  • EXACT_SEARCHABLE_DISABLED => 2

Enum: CatalogAttribute::RetrievableOption

  • RETRIEVABLE_OPTION_UNSPECIFIED => 0

  • RETRIEVABLE_ENABLED => 1

  • RETRIEVABLE_DISABLED => 2

Google::Cloud::Retail::V2::Catalog::AttributesConfig

Catalog level attribute config.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`

  • $msg->catalog_attributes() / $msg->catalog_attributes($value)

    Type: Message (Google::Cloud::Retail::V2::Catalog::AttributesConfig::CatalogAttributesEntry)

    Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute.

    The key is catalog attribute's name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`.

    The maximum number of catalog attributes allowed in a request is 1000.

  • $msg->attribute_config_level() / $msg->attribute_config_level($value)

    Type: Enum (Google::Cloud::Retail::V2::AttributeConfigLevel)

    Output only. The [AttributeConfigLevel][google.cloud.retail.v2.AttributeConfigLevel] used for this catalog.

Google::Cloud::Retail::V2::Catalog::CompletionConfig

Catalog level autocomplete config for customers to customize autocomplete feature's settings.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`

  • $msg->matching_order() / $msg->matching_order($value)

    Type: String

    Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes". Currently supported values:

    * 'out-of-order' * 'exact-prefix'

    Default value: 'exact-prefix'.

  • $msg->max_suggestions() / $msg->max_suggestions($value)

    Type: Int32

    The maximum number of autocomplete suggestions returned per term. Default value is 20. If left unset or set to 0, then will fallback to default value.

    Value range is 1 to 20.

  • $msg->min_prefix_length() / $msg->min_prefix_length($value)

    Type: Int32

    The minimum number of characters needed to be typed in order to get suggestions. Default value is 2. If left unset or set to 0, then will fallback to default value.

    Value range is 1 to 20.

  • $msg->auto_learning() / $msg->auto_learning($value)

    Type: Bool

    If set to true, the auto learning function is enabled. Auto learning uses user data to generate suggestions using ML techniques. Default value is false. Only after enabling auto learning can users use `cloud-retail` data in [CompleteQueryRequest][google.cloud.retail.v2.CompleteQueryRequest].

  • $msg->suggestions_input_config() / $msg->suggestions_input_config($value)

    Type: Message (Google::Cloud::Retail::V2::ImportConfig::CompletionDataInputConfig)

    Output only. The source data for the latest import of the autocomplete suggestion phrases.

  • $msg->last_suggestions_import_operation() / $msg->last_suggestions_import_operation($value)

    Type: String

    Output only. Name of the LRO corresponding to the latest suggestion terms list import.

    Can use [GetOperation][google.longrunning.Operations.GetOperation] API method to retrieve the latest state of the Long Running Operation.

  • $msg->denylist_input_config() / $msg->denylist_input_config($value)

    Type: Message (Google::Cloud::Retail::V2::ImportConfig::CompletionDataInputConfig)

    Output only. The source data for the latest import of the autocomplete denylist phrases.

  • $msg->last_denylist_import_operation() / $msg->last_denylist_import_operation($value)

    Type: String

    Output only. Name of the LRO corresponding to the latest denylist import.

    Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.

  • $msg->allowlist_input_config() / $msg->allowlist_input_config($value)

    Type: Message (Google::Cloud::Retail::V2::ImportConfig::CompletionDataInputConfig)

    Output only. The source data for the latest import of the autocomplete allowlist phrases.

  • $msg->last_allowlist_import_operation() / $msg->last_allowlist_import_operation($value)

    Type: String

    Output only. Name of the LRO corresponding to the latest allowlist import.

    Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.

Google::Cloud::Retail::V2::Catalog::Catalog

The catalog configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Immutable. The fully qualified resource name of the catalog.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    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.

  • $msg->product_level_config() / $msg->product_level_config($value)

    Type: Message (Google::Cloud::Retail::V2::Catalog::ProductLevelConfig)

    Required. The product level configuration.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2::Catalog::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.