Service Client: Google::Cloud::Retail::V2::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::V2::CatalogService - Compiled Protocol Buffers messages for google/cloud/retail/v2/catalog_service.proto
SYNOPSIS
use Google::Cloud::Retail::V2::CatalogService;
my $msg = Google::Cloud::Retail::V2::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::V2::CatalogService::ListCatalogsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/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::V2::CatalogService::ListCatalogsRequest
Request for [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The account resource name with an associated location.
If the caller does not have permission to list [Catalog][google.cloud.retail.v2.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:
Int32Maximum number of [Catalog][google.cloud.retail.v2.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:
StringA page token [ListCatalogsResponse.next_page_token][google.cloud.retail.v2.ListCatalogsResponse.next_page_token], received from a previous [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs] call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs] must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
Google::Cloud::Retail::V2::CatalogService::ListCatalogsResponse
Response for [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs] method.
Inherits from Protobuf::Message.
Accessors
$msg->catalogs()/$msg->catalogs($value)Type:
Message(Google::Cloud::Retail::V2::Catalog::Catalog)All the customer's [Catalog][google.cloud.retail.v2.Catalog]s.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as [ListCatalogsRequest.page_token][google.cloud.retail.v2.ListCatalogsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Retail::V2::CatalogService::UpdateCatalogRequest
Request for [CatalogService.UpdateCatalog][google.cloud.retail.v2.CatalogService.UpdateCatalog] method.
Inherits from Protobuf::Message.
Accessors
$msg->catalog()/$msg->catalog($value)Type:
Message(Google::Cloud::Retail::V2::Catalog::Catalog)Required. The [Catalog][google.cloud.retail.v2.Catalog] to update.
If the caller does not have permission to update the [Catalog][google.cloud.retail.v2.Catalog], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the [Catalog][google.cloud.retail.v2.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.v2.Catalog] to update.
If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.
Google::Cloud::Retail::V2::CatalogService::SetDefaultBranchRequest
Request message to set a specified branch as new default_branch.
Inherits from Protobuf::Message.
Accessors
$msg->catalog()/$msg->catalog($value)Type:
StringFull resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
$msg->branch_id()/$msg->branch_id($value)Type:
StringThe 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.v2.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
$msg->note()/$msg->note($value)Type:
StringSome note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2.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:
BoolIf set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.
Google::Cloud::Retail::V2::CatalogService::GetDefaultBranchRequest
Request message to show which branch is currently the default branch.
Inherits from Protobuf::Message.
Accessors
$msg->catalog()/$msg->catalog($value)Type:
StringThe parent catalog resource name, such as `projects/*/locations/global/catalogs/default_catalog`.
Google::Cloud::Retail::V2::CatalogService::GetDefaultBranchResponse
Response message of [CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch].
Inherits from Protobuf::Message.
Accessors
$msg->branch()/$msg->branch($value)Type:
StringFull 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:
StringThis corresponds to [SetDefaultBranchRequest.note][google.cloud.retail.v2.SetDefaultBranchRequest.note] field, when this branch was set as default.
Google::Cloud::Retail::V2::CatalogService::GetCompletionConfigRequest
Request for [CatalogService.GetCompletionConfig][google.cloud.retail.v2.CatalogService.GetCompletionConfig] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Full CompletionConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig`
Google::Cloud::Retail::V2::CatalogService::UpdateCompletionConfigRequest
Request for [CatalogService.UpdateCompletionConfig][google.cloud.retail.v2.CatalogService.UpdateCompletionConfig] method.
Inherits from Protobuf::Message.
Accessors
$msg->completion_config()/$msg->completion_config($value)Type:
Message(Google::Cloud::Retail::V2::Catalog::CompletionConfig)Required. The [CompletionConfig][google.cloud.retail.v2.CompletionConfig] to update.
If the caller does not have permission to update the [CompletionConfig][google.cloud.retail.v2.CompletionConfig], then a PERMISSION_DENIED error is returned.
If the [CompletionConfig][google.cloud.retail.v2.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.v2.CompletionConfig] to update. The following are the only supported fields:
* [CompletionConfig.matching_order][google.cloud.retail.v2.CompletionConfig.matching_order] * [CompletionConfig.max_suggestions][google.cloud.retail.v2.CompletionConfig.max_suggestions] * [CompletionConfig.min_prefix_length][google.cloud.retail.v2.CompletionConfig.min_prefix_length] * [CompletionConfig.auto_learning][google.cloud.retail.v2.CompletionConfig.auto_learning]
If not set, all supported fields are updated.
Google::Cloud::Retail::V2::CatalogService::GetAttributesConfigRequest
Request for [CatalogService.GetAttributesConfig][google.cloud.retail.v2.CatalogService.GetAttributesConfig] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
Google::Cloud::Retail::V2::CatalogService::UpdateAttributesConfigRequest
Request for [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2.CatalogService.UpdateAttributesConfig] method.
Inherits from Protobuf::Message.
Accessors
$msg->attributes_config()/$msg->attributes_config($value)Type:
Message(Google::Cloud::Retail::V2::Catalog::AttributesConfig)Required. The [AttributesConfig][google.cloud.retail.v2.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.v2.AttributesConfig] to update. The following is the only supported field:
* [AttributesConfig.catalog_attributes][google.cloud.retail.v2.AttributesConfig.catalog_attributes]
If not set, all supported fields are updated.
Google::Cloud::Retail::V2::CatalogService::AddCatalogAttributeRequest
Request for [CatalogService.AddCatalogAttribute][google.cloud.retail.v2.CatalogService.AddCatalogAttribute] method.
Inherits from Protobuf::Message.
Accessors
$msg->attributes_config()/$msg->attributes_config($value)Type:
StringRequired. 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::V2::Catalog::CatalogAttribute)Required. The [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to add.
Google::Cloud::Retail::V2::CatalogService::RemoveCatalogAttributeRequest
Request for [CatalogService.RemoveCatalogAttribute][google.cloud.retail.v2.CatalogService.RemoveCatalogAttribute] method.
Inherits from Protobuf::Message.
Accessors
$msg->attributes_config()/$msg->attributes_config($value)Type:
StringRequired. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
$msg->key()/$msg->key($value)Type:
StringRequired. The attribute name key of the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to remove.
Google::Cloud::Retail::V2::CatalogService::ReplaceCatalogAttributeRequest
Request for [CatalogService.ReplaceCatalogAttribute][google.cloud.retail.v2.CatalogService.ReplaceCatalogAttribute] method.
Inherits from Protobuf::Message.
Accessors
$msg->attributes_config()/$msg->attributes_config($value)Type:
StringRequired. 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::V2::Catalog::CatalogAttribute)Required. The updated [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute].
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Indicates which fields in the provided [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to update. The following are NOT supported:
* [CatalogAttribute.key][google.cloud.retail.v2.CatalogAttribute.key]
If not set, all supported fields are updated.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2::CatalogService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.