NAME

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

SYNOPSIS

use Google::Cloud::Retail::V2beta::Control;

my $msg = Google::Cloud::Retail::V2beta::Control::Control->new({
    facet_spec => $facet_spec,
    rule => $rule,
    name => $name,
    display_name => $display_name,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2beta/control.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::Control::Control

Configures dynamic metadata that can be linked to a [ServingConfig][google.cloud.retail.v2beta.ServingConfig] and affect search or recommendation results at serving time.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2beta::SearchService::SearchRequest::FacetSpec)

    A facet specification to perform faceted search.

    Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.

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

    Type: Message (Google::Cloud::Retail::V2beta::Common::Rule)

    A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".

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

    Type: String

    Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`

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

    Type: String

    Required. The human readable control display name. Used in Retail UI.

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

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

    Type: String

    Output only. List of [serving config][google.cloud.retail.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog].

    Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.ServingConfig], this is an output only denormalized view.

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

    Type: Enum (Google::Cloud::Retail::V2beta::SolutionType)

    Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time.

    Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].

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

    Type: Enum (Google::Cloud::Retail::V2beta::SearchSolutionUseCase)

    Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.