NAME
Google::Cloud::Discoveryengine::V1::Control - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/control.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1::Control;
my $msg = Google::Cloud::Discoveryengine::V1::Control::Condition->new({
query_terms => $query_terms,
active_time_range => $active_time_range,
query_regex => $query_regex,
});
# Read or update a field
my $val = $msg->query_terms();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1::Control::Condition->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/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::Discoveryengine::V1::Control::Condition
Defines circumstances to be checked before allowing a behavior
Inherits from Protobuf::Message.
Accessors
$msg->query_terms()/$msg->query_terms($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Condition::QueryTerm)Search only A list of terms to match the query on. Cannot be set when [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex] is set.
Maximum of 10 query terms.
$msg->active_time_range()/$msg->active_time_range($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Condition::TimeRange)Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
$msg->query_regex()/$msg->query_regex($value)Type:
StringOptional. Query regex to match the whole search query. Cannot be set when [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] is set. Only supported for Basic Site Search promotion serving controls.
Google::Cloud::Discoveryengine::V1::Control::Control
Defines a conditioned behavior to employ during serving. Must be attached to a [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig] to be considered at serving time. Permitted actions dependent on `SolutionType`.
Inherits from Protobuf::Message.
Accessors
$msg->boost_action()/$msg->boost_action($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Control::BoostAction)Defines a boost-type control
$msg->filter_action()/$msg->filter_action($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Control::FilterAction)Defines a filter-type control Currently not supported by Recommendation
$msg->redirect_action()/$msg->redirect_action($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Control::RedirectAction)Defines a redirect-type control.
$msg->synonyms_action()/$msg->synonyms_action($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Control::SynonymsAction)Treats a group of terms as synonyms of one another.
$msg->promote_action()/$msg->promote_action($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Control::PromoteAction)Promote certain links based on predefined trigger queries.
$msg->name()/$msg->name($value)Type:
StringImmutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Human readable name. The identifier used in UI views.
Must be UTF-8 encoded string. Length limit is 128 characters. Otherwise an INVALID ARGUMENT error is thrown.
$msg->associated_serving_config_ids()/$msg->associated_serving_config_ids($value)Type:
StringOutput only. List of all [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig] IDs this control is attached to. May take up to 10 minutes to update after changes.
$msg->solution_type()/$msg->solution_type($value)Type:
Enum(Google::Cloud::Discoveryengine::V1::SolutionType)Required. Immutable. What solution the control belongs to.
Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown.
$msg->use_cases()/$msg->use_cases($value)Type:
Enum(Google::Cloud::Discoveryengine::V1::SearchUseCase)Specifies the use case for the control. Affects what condition fields can be set. Only applies to [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. Currently only allow one use case per control. Must be set when solution_type is [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
$msg->conditions()/$msg->conditions($value)Type:
Message(Google::Cloud::Discoveryengine::V1::Control::Condition)Determines when the associated action will trigger.
Omit to always apply the action. Currently only a single condition may be specified. Otherwise an INVALID ARGUMENT error is thrown.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1::Control::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.