NAME

Google::Cloud::Retail::V2::GenerativeQuestion - Compiled Protocol Buffers messages for google/cloud/retail/v2/generative_question.proto

SYNOPSIS

use Google::Cloud::Retail::V2::GenerativeQuestion;

my $msg = Google::Cloud::Retail::V2::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::V2::GenerativeQuestion::GenerativeQuestionsFeatureConfig->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/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::V2::GenerativeQuestion::GenerativeQuestionsFeatureConfig

Configuration for overall generative question feature state.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

    Type: Bool

    Optional. 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: Int32

    Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.

Google::Cloud::Retail::V2::GenerativeQuestion::GenerativeQuestionConfig

Configuration for a single generated question.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

    Type: String

    Required. The facet to which the question is associated.

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

    Type: String

    Output only. The LLM generated question.

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

    Type: String

    Optional. 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: String

    Output only. Values that can be used to answer the question.

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

    Type: Float

    Output only. The ratio of how often a question was asked.

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

    Type: Bool

    Optional. Whether the question is asked at serving time.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2::GenerativeQuestion::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.