Service Client: Google::Cloud::Retail::V2beta::CatalogService::CatalogServiceClient

Client stub representing the remote CatalogService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to retail.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Retail::V2beta::CatalogService - Compiled Protocol Buffers messages for google/cloud/retail/v2beta/catalog_service.proto

SYNOPSIS

use Google::Cloud::Retail::V2beta::CatalogService;

my $msg = Google::Cloud::Retail::V2beta::CatalogService::ListCatalogsRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2beta::CatalogService::ListCatalogsRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2beta/catalog_service.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::V2beta::CatalogService::ListCatalogsRequest

Request for [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The account resource name with an associated location.

    If the caller does not have permission to list [Catalog][google.cloud.retail.v2beta.Catalog]s under this location, regardless of whether or not this location exists, a PERMISSION_DENIED error is returned.

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

    Type: Int32

    Maximum number of [Catalog][google.cloud.retail.v2beta.Catalog]s to return. If unspecified, defaults to 50. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000.

    If this field is negative, an INVALID_ARGUMENT is returned.

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

    Type: String

    A page token [ListCatalogsResponse.next_page_token][google.cloud.retail.v2beta.ListCatalogsResponse.next_page_token], received from a previous [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.

Google::Cloud::Retail::V2beta::CatalogService::ListCatalogsResponse

Response for [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2beta::Catalog::Catalog)

    All the customer's [Catalog][google.cloud.retail.v2beta.Catalog]s.

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

    Type: String

    A token that can be sent as [ListCatalogsRequest.page_token][google.cloud.retail.v2beta.ListCatalogsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Retail::V2beta::CatalogService::UpdateCatalogRequest

Request for [CatalogService.UpdateCatalog][google.cloud.retail.v2beta.CatalogService.UpdateCatalog] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2beta::Catalog::Catalog)

    Required. The [Catalog][google.cloud.retail.v2beta.Catalog] to update.

    If the caller does not have permission to update the [Catalog][google.cloud.retail.v2beta.Catalog], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the [Catalog][google.cloud.retail.v2beta.Catalog] to update does not exist, a NOT_FOUND error is returned.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [Catalog][google.cloud.retail.v2beta.Catalog] to update.

    If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

Google::Cloud::Retail::V2beta::CatalogService::SetDefaultBranchRequest

Request message to set a specified branch as new default_branch.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.

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

    Type: String

    The final component of the resource name of a branch.

    This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned.

    If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2beta.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.

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

    Type: String

    Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch] before next valid default branch set occurs.

    This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.

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

    Type: Bool

    If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2beta.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.

Google::Cloud::Retail::V2beta::CatalogService::GetDefaultBranchRequest

Request message to show which branch is currently the default branch.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The parent catalog resource name, such as `projects/*/locations/global/catalogs/default_catalog`.

Google::Cloud::Retail::V2beta::CatalogService::GetDefaultBranchResponse

Response message of [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Full resource name of the branch id currently set as default branch.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time when this branch is set to default.

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

    Type: String

    This corresponds to [SetDefaultBranchRequest.note][google.cloud.retail.v2beta.SetDefaultBranchRequest.note] field, when this branch was set as default.

Google::Cloud::Retail::V2beta::CatalogService::GetCompletionConfigRequest

Request for [CatalogService.GetCompletionConfig][google.cloud.retail.v2beta.CatalogService.GetCompletionConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full CompletionConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig`

Google::Cloud::Retail::V2beta::CatalogService::UpdateCompletionConfigRequest

Request for [CatalogService.UpdateCompletionConfig][google.cloud.retail.v2beta.CatalogService.UpdateCompletionConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2beta::Catalog::CompletionConfig)

    Required. The [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig] to update.

    If the caller does not have permission to update the [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig], then a PERMISSION_DENIED error is returned.

    If the [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig] to update does not exist, a NOT_FOUND error is returned.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig] to update. The following are the only supported fields:

    * [CompletionConfig.matching_order][google.cloud.retail.v2beta.CompletionConfig.matching_order] * [CompletionConfig.max_suggestions][google.cloud.retail.v2beta.CompletionConfig.max_suggestions] * [CompletionConfig.min_prefix_length][google.cloud.retail.v2beta.CompletionConfig.min_prefix_length] * [CompletionConfig.auto_learning][google.cloud.retail.v2beta.CompletionConfig.auto_learning]

    If not set, all supported fields are updated.

Google::Cloud::Retail::V2beta::CatalogService::GetAttributesConfigRequest

Request for [CatalogService.GetAttributesConfig][google.cloud.retail.v2beta.CatalogService.GetAttributesConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`

Google::Cloud::Retail::V2beta::CatalogService::UpdateAttributesConfigRequest

Request for [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2beta.CatalogService.UpdateAttributesConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2beta::Catalog::AttributesConfig)

    Required. The [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] to update.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] to update. The following is the only supported field:

    * [AttributesConfig.catalog_attributes][google.cloud.retail.v2beta.AttributesConfig.catalog_attributes]

    If not set, all supported fields are updated.

Google::Cloud::Retail::V2beta::CatalogService::AddCatalogAttributeRequest

Request for [CatalogService.AddCatalogAttribute][google.cloud.retail.v2beta.CatalogService.AddCatalogAttribute] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`

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

    Type: Message (Google::Cloud::Retail::V2beta::Catalog::CatalogAttribute)

    Required. The [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to add.

Google::Cloud::Retail::V2beta::CatalogService::RemoveCatalogAttributeRequest

Request for [CatalogService.RemoveCatalogAttribute][google.cloud.retail.v2beta.CatalogService.RemoveCatalogAttribute] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`

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

    Type: String

    Required. The attribute name key of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to remove.

Google::Cloud::Retail::V2beta::CatalogService::BatchRemoveCatalogAttributesRequest

Request for [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The attributes config resource shared by all catalog attributes being deleted. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`

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

    Type: String

    Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.

Google::Cloud::Retail::V2beta::CatalogService::BatchRemoveCatalogAttributesResponse

Response of the [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Catalog attributes that were deleted. Only pre-loaded [catalog attributes][google.cloud.retail.v2beta.CatalogAttribute] that are neither [in use][google.cloud.retail.v2beta.CatalogAttribute.in_use] by products nor predefined can be deleted.

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

    Type: String

    Catalog attributes that were reset. [Catalog attributes][google.cloud.retail.v2beta.CatalogAttribute] that are either [in use][google.cloud.retail.v2beta.CatalogAttribute.in_use] by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

Google::Cloud::Retail::V2beta::CatalogService::ReplaceCatalogAttributeRequest

Request for [CatalogService.ReplaceCatalogAttribute][google.cloud.retail.v2beta.CatalogService.ReplaceCatalogAttribute] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`

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

    Type: Message (Google::Cloud::Retail::V2beta::Catalog::CatalogAttribute)

    Required. The updated [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute].

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to update. The following are NOT supported:

    * [CatalogAttribute.key][google.cloud.retail.v2beta.CatalogAttribute.key]

    If not set, all supported fields are updated.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2beta::CatalogService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.