NAME
Google::Cloud::Retail::V2alpha::GenerativeQuestion - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/generative_question.proto
SYNOPSIS
use Google::Cloud::Retail::V2alpha::GenerativeQuestion;
my $msg = Google::Cloud::Retail::V2alpha::GenerativeQuestion::GenerativeQuestionsFeatureConfig->new({
catalog => $catalog,
feature_enabled => $feature_enabled,
minimum_products => $minimum_products,
});
# Read or update a field
my $val = $msg->catalog();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::GenerativeQuestion::GenerativeQuestionsFeatureConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/generative_question.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::GenerativeQuestion::GenerativeQuestionsFeatureConfig
Configuration for overall generative question feature state.
Inherits from Protobuf::Message.
Accessors
$msg->catalog()/$msg->catalog($value)Type:
StringRequired. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
$msg->feature_enabled()/$msg->feature_enabled($value)Type:
BoolOptional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.
$msg->minimum_products()/$msg->minimum_products($value)Type:
Int32Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.
Google::Cloud::Retail::V2alpha::GenerativeQuestion::GenerativeQuestionConfig
Configuration for a single generated question.
Inherits from Protobuf::Message.
Accessors
$msg->catalog()/$msg->catalog($value)Type:
StringRequired. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
$msg->facet()/$msg->facet($value)Type:
StringRequired. The facet to which the question is associated.
$msg->generated_question()/$msg->generated_question($value)Type:
StringOutput only. The LLM generated question.
$msg->final_question()/$msg->final_question($value)Type:
StringOptional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.
$msg->example_values()/$msg->example_values($value)Type:
StringOutput only. Values that can be used to answer the question.
$msg->frequency()/$msg->frequency($value)Type:
FloatOutput only. The ratio of how often a question was asked.
$msg->allowed_in_conversation()/$msg->allowed_in_conversation($value)Type:
BoolOptional. Whether the question is asked at serving time.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::GenerativeQuestion::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.