NAME
Google::Cloud::Discoveryengine::V1beta::AssistAnswer - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1beta/assist_answer.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1beta::AssistAnswer;
my $msg = Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer->new({
name => $name,
state => $state,
replies => $replies,
assist_skipped_reasons => $assist_skipped_reasons,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1beta/assist_answer.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::V1beta::AssistAnswer::AssistAnswer
AssistAnswer resource, main part of [AssistResponse][google.cloud.discoveryengine.v1beta.AssistResponse].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. Identifier. Resource name of the `AssistAnswer`. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
This field must be a UTF-8 encoded string with a length limit of 1024 characters.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::State)State of the answer generation.
$msg->replies()/$msg->replies($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::Reply)Replies of the assistant.
$msg->assist_skipped_reasons()/$msg->assist_skipped_reasons($value)Type:
Enum(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistSkippedReason)Reasons for not answering the assist call.
$msg->customer_policy_enforcement_result()/$msg->customer_policy_enforcement_result($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult)Optional. The field contains information about the various policy checks' results like the banned phrases or the Model Armor checks. This field is populated only if the assist call was skipped due to a policy violation.
Enum: AssistAnswer::State
STATE_UNSPECIFIED=>0IN_PROGRESS=>1FAILED=>2SUCCEEDED=>3SKIPPED=>4CANCELLED=>5
Enum: AssistAnswer::AssistSkippedReason
ASSIST_SKIPPED_REASON_UNSPECIFIED=>0NON_ASSIST_SEEKING_QUERY_IGNORED=>1CUSTOMER_POLICY_VIOLATION=>2
Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent
Multi-modal content.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringInline text.
$msg->inline_data()/$msg->inline_data($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::Blob)Inline binary data.
$msg->file()/$msg->file($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::File)A file, e.g., an audio summary.
$msg->executable_code()/$msg->executable_code($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::ExecutableCode)Code generated by the model that is meant to be executed.
$msg->code_execution_result()/$msg->code_execution_result($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::CodeExecutionResult)Result of executing an ExecutableCode.
$msg->role()/$msg->role($value)Type:
StringThe producer of the content. Can be "model" or "user".
$msg->thought()/$msg->thought($value)Type:
BoolOptional. Indicates if the part is thought from the model.
Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent
A piece of content and possibly its grounding information.
Not all content needs grounding. Phrases like "Of course, I will gladly search it for you." do not need grounding.
Inherits from Protobuf::Message.
Accessors
$msg->text_grounding_metadata()/$msg->text_grounding_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata)Metadata for grounding based on text sources.
$msg->content()/$msg->content($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent)The content.
$msg->citation_metadata()/$msg->citation_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::GroundedGenerationService::CitationMetadata)Source attribution of the generated content. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1beta::AssistAnswer::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.