Service Client: Google::Cloud::Retail::V2alpha::ControlService::ControlServiceClient
Client stub representing the remote ControlService 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::V2alpha::ControlService - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/control_service.proto
SYNOPSIS
use Google::Cloud::Retail::V2alpha::ControlService;
my $msg = Google::Cloud::Retail::V2alpha::ControlService::CreateControlRequest->new({
parent => $parent,
control => $control,
control_id => $control_id,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::ControlService::CreateControlRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/control_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::V2alpha::ControlService::CreateControlRequest
Request for CreateControl method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Full resource name of parent catalog. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
$msg->control()/$msg->control($value)Type:
Message(Google::Cloud::Retail::V2alpha::Control::Control)Required. The Control to create.
$msg->control_id()/$msg->control_id($value)Type:
StringRequired. The ID to use for the Control, which will become the final component of the Control's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-_/.
Google::Cloud::Retail::V2alpha::ControlService::UpdateControlRequest
Request for UpdateControl method.
Inherits from Protobuf::Message.
Accessors
$msg->control()/$msg->control($value)Type:
Message(Google::Cloud::Retail::V2alpha::Control::Control)Required. The Control to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Indicates which fields in the provided [Control][google.cloud.retail.v2alpha.Control] to update. The following are NOT supported:
* [Control.name][google.cloud.retail.v2alpha.Control.name]
If not set or empty, all supported fields are updated.
Google::Cloud::Retail::V2alpha::ControlService::DeleteControlRequest
Request for DeleteControl method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Control to delete. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
Google::Cloud::Retail::V2alpha::ControlService::GetControlRequest
Request for GetControl method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Control to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
Google::Cloud::Retail::V2alpha::ControlService::ListControlsRequest
Request for ListControls method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The catalog resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A filter to apply on the list results. Supported features:
* List all the products under the parent branch if [filter][google.cloud.retail.v2alpha.ListControlsRequest.filter] is unset. * List controls that are used in a single ServingConfig: 'serving_config = "boosted_home_page_cvr"'
Google::Cloud::Retail::V2alpha::ControlService::ListControlsResponse
Response for ListControls method.
Inherits from Protobuf::Message.
Accessors
$msg->controls()/$msg->controls($value)Type:
Message(Google::Cloud::Retail::V2alpha::Control::Control)All the Controls for a given catalog.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPagination token, if not returned indicates the last page.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::ControlService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.