NAME

Google::Cloud::Discoveryengine::V1::Feedback - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/feedback.proto

SYNOPSIS

use Google::Cloud::Discoveryengine::V1::Feedback;

my $msg = Google::Cloud::Discoveryengine::V1::Feedback::Feedback->new({
    feedback_type => $feedback_type,
    reasons => $reasons,
    comment => $comment,
    conversation_info => $conversation_info,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1::Feedback::Feedback->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/feedback.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::Feedback::Feedback

Information about the user feedback. This information will be used for logging and metrics purpose.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Discoveryengine::V1::Feedback::FeedbackType)

    Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1::Feedback::Reason)

    Optional. The reason if user gives a thumb down.

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

    Type: String

    Optional. The additional user comment of the feedback if user gives a thumb down.

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

    Type: Message (Google::Cloud::Discoveryengine::V1::Feedback::Feedback::ConversationInfo)

    The related conversation information when user gives feedback.

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

    Type: String

    The version of the LLM model that was used to generate the response.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1::Feedback::FeedbackSource)

    Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.

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

    Type: String

    Optional. The version of the component that this report is being sent from.

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

    Type: Bool

    Optional. Whether the customer accepted data use terms.

Enum: Feedback::FeedbackType

  • FEEDBACK_TYPE_UNSPECIFIED => 0

  • LIKE => 1

  • DISLIKE => 2

Enum: Feedback::Reason

  • REASON_UNSPECIFIED => 0

  • INACCURATE_RESPONSE => 1

  • NOT_RELEVANT => 2

  • INCOMPREHENSIVE => 3

  • OFFENSIVE_OR_UNSAFE => 4

  • FORMAT_AND_STYLES => 6

  • BAD_CITATION => 7

  • CANVAS_NOT_GENERATED => 8

  • CANVAS_QUALITY_BAD => 9

  • CANVAS_EXPORT_FAILED => 10

Enum: Feedback::FeedbackSource

  • FEEDBACK_SOURCE_UNSPECIFIED => 0

  • GOOGLE_CONSOLE => 1

  • GOOGLE_WIDGET => 2

  • GOOGLE_WEBAPP => 3

  • GOOGLE_AGENTSPACE_MOBILE => 4

  • GOOGLE_AGENTSPACE_DESKTOP => 5

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1::Feedback::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.