Service Client: Google::Cloud::Ces::V1beta::AssistantService::AssistantServiceClient
Client stub representing the remote AssistantService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ces.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Ces::V1beta::AssistantService - Compiled Protocol Buffers messages for google/cloud/ces/v1beta/assistant_service.proto
SYNOPSIS
use Google::Cloud::Ces::V1beta::AssistantService;
my $msg = Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsRequest->new({
parent => $parent,
page_size => $page_size,
page_token => $page_token,
filter => $filter,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/assistant_service.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::Ces::V1beta::AssistantService::ListAssistantSessionsRequest
Request message for [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The app to list assistant sessions from. Format: `projects/{project}/locations/{location}/apps/{app}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token] value returned from a previous list [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions] call.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filter to be applied when listing the assistant sessions. See https://google.aip.dev/160 for more details.
Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsResponse
Response message for [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
Inherits from Protobuf::Message.
Accessors
$msg->assistant_sessions()/$msg->assistant_sessions($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantSession)The list of assistant sessions.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOptional. A token that can be sent as [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token] to retrieve the next page. Absence of this field indicates there are no subsequent pages.
Google::Cloud::Ces::V1beta::AssistantService::GetAssistantSessionRequest
Request message for [AssistantService.GetAssistantSession][google.cloud.ces.v1beta.AssistantService.GetAssistantSession].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the assistant session to retrieve. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
Google::Cloud::Ces::V1beta::AssistantService::CreateAssistantSessionRequest
Request message for [AssistantService.CreateAssistantSession][google.cloud.ces.v1beta.AssistantService.CreateAssistantSession].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The app to create the assistant session in Format: `projects/{project}/locations/{location}/apps/{app}`
$msg->assistant_session_id()/$msg->assistant_session_id($value)Type:
StringOptional. The ID to use for the assistant session, which will become the final component of the assistant session's resource name. If not provided, a unique ID will be automatically assigned for the assistant session.
$msg->assistant_session_messages()/$msg->assistant_session_messages($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage)Optional. The messages to seed the assistant session with.
Google::Cloud::Ces::V1beta::AssistantService::DeleteAssistantSessionRequest
Request message for [AssistantService.DeleteAssistantSession][google.cloud.ces.v1beta.AssistantService.DeleteAssistantSession].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the assistant session to delete. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
Google::Cloud::Ces::V1beta::AssistantService::RunAssistantRequest
Request message for [AssistantService.RunAssistant][google.cloud.ces.v1beta.AssistantService.RunAssistant].
Inherits from Protobuf::Message.
Accessors
$msg->app()/$msg->app($value)Type:
StringRequired. The app to run assistant for. Format: `projects/{project}/locations/{location}/apps/{app}`
$msg->assistant_session()/$msg->assistant_session($value)Type:
StringRequired. The assistant session to be used to run the assistant. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
$msg->message()/$msg->message($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage)Required. The message to send to the assistant agent.
$msg->interaction_type()/$msg->interaction_type($value)Type:
Enum(Google::Cloud::Ces::V1beta::RunAssistantRequest::InteractionType)Optional. Different interaction types for the assistant message.
Enum: RunAssistantRequest::InteractionType
INTERACTION_TYPE_UNSPECIFIED=>0NEW_MESSAGE=>1POLL=>2DISMISS=>3
Google::Cloud::Ces::V1beta::AssistantService::RunAssistantResponse
Response message for [AssistantService.RunAssistant][google.cloud.ces.v1beta.AssistantService.RunAssistant].
Inherits from Protobuf::Message.
Accessors
$msg->output()/$msg->output($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantOutput)Required. The output from the assistant agent.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Ces::V1beta::AssistantSessionState)Output only. The status of the assistant session.
Google::Cloud::Ces::V1beta::AssistantService::AssistantSession
An assistant session represents a conversation between a user and the assistant agent.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Identifier. The unique identifier of the session. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
$msg->requestor()/$msg->requestor($value)Type:
StringOutput only. The user who initiated the session.
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage)Optional. History of messages in the session.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Ces::V1beta::AssistantSessionState)Output only. The status of the assistant session.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the assistant session was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the assistant session was last updated.
$msg->user_response_suggestions()/$msg->user_response_suggestions($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::UserResponseSuggestions)Output only. Suggested user responses from the assistant agent.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. The display name of the assistant session.
$msg->artifacts()/$msg->artifacts($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantSessionArtifact)Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.
$msg->session_checkpoint()/$msg->session_checkpoint($value)Type:
Message(Google::Cloud::Ces::V1beta::Common::SessionCheckpoint)Output only. Session checkpoint containing user intent and rolling history summary.
$msg->active_turn()/$msg->active_turn($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::ActiveTurnInfo)Output only. Attachment info for this session's currently running turn. Unset when no turn is running.
Google::Cloud::Ces::V1beta::AssistantService::ActiveTurnInfo
Live-attachment info for a session turn that is currently running, disconnected from its client, or parked for pickup by another server task.
Inherits from Protobuf::Message.
Accessors
$msg->turn_id()/$msg->turn_id($value)Type:
StringIdentifies the turn; echoed by resume snapshots on the streaming API.
$msg->status()/$msg->status($value)Type:
Enum(Google::Cloud::Ces::V1beta::ActiveTurnInfo::Status)Current attachment status.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the turn started.
$msg->last_progress_time()/$msg->last_progress_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the turn last persisted progress.
$msg->orphan_deadline_time()/$msg->orphan_deadline_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the turn will be wound down if no client attaches.
Enum: ActiveTurnInfo::Status
STATUS_UNSPECIFIED=>0RUNNING=>1DISCONNECTED=>2RESUMING=>3ABANDONED=>4
Google::Cloud::Ces::V1beta::AssistantService::AssistantSessionArtifact
A document artifact generated by the assistant within a session, stored as a file in the customer's Cloud Storage bucket.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringOutput only. The unique identifier of the artifact within the session.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
$msg->gcs_uri()/$msg->gcs_uri($value)Type:
StringOutput only. The Cloud Storage object holding the artifact content. Example: "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
$msg->mime_type()/$msg->mime_type($value)Type:
StringOutput only. The IANA media type of the artifact content, e.g. "text/markdown".
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the artifact was persisted.
$msg->turn_index()/$msg->turn_index($value)Type:
Int32Output only. Index of the message in [AssistantSession.messages] whose turn produced the artifact, for placing the artifact chip when history is restored.
Google::Cloud::Ces::V1beta::AssistantService::AssistantChunk
A chunk of data in an assistant message.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringOptional. Text data.
$msg->thought()/$msg->thought($value)Type:
StringOptional. Thought generated by the model.
$msg->payload()/$msg->payload($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
$msg->typed_payload()/$msg->typed_payload($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::TypedPayload)Optional. Typed payload which contains structured responses.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp when the chunk was created or emitted.
Google::Cloud::Ces::V1beta::AssistantService::AssistantOutput
The output from the assistant agent.
Inherits from Protobuf::Message.
Accessors
$msg->message()/$msg->message($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage)Required. The response from the assistant agent.
$msg->user_response_suggestions()/$msg->user_response_suggestions($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::UserResponseSuggestions)Output only. Suggested user responses from the assistant agent.
Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage
A message in an assistant session.
Inherits from Protobuf::Message.
Accessors
$msg->role()/$msg->role($value)Type:
StringRequired. Role within the conversation "user" or "model".
$msg->chunks()/$msg->chunks($value)Type:
Message(Google::Cloud::Ces::V1beta::AssistantService::AssistantChunk)Optional. Content of the message as chunks.
$msg->event_time()/$msg->event_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. Timestamp when the message was sent or received.
$msg->attached_gcs_uris()/$msg->attached_gcs_uris($value)Type:
StringOptional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
Google::Cloud::Ces::V1beta::AssistantService::TypedPayload
Payload with a type.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the payload.
$msg->type()/$msg->type($value)Type:
StringRequired. The type of the payload.
$msg->value()/$msg->value($value)Type:
Message(Google::Protobuf::Struct::Struct)Required. The value of the payload.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The metadata of the payload.
Google::Cloud::Ces::V1beta::AssistantService::UserResponseSuggestions
Suggested user responses from the assistant agent.
Inherits from Protobuf::Message.
Accessors
$msg->suggestions()/$msg->suggestions($value)Type:
StringRequired. The assistant suggested user responses. These are suggestions for the user on how to interact with the assistant.
Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantRequest
Request message for [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
Inherits from Protobuf::Message.
Accessors
$msg->app()/$msg->app($value)Type:
StringRequired. The app to run assistant for. Format: `projects/{project}/locations/{location}/apps/{app}`
$msg->assistant_session()/$msg->assistant_session($value)Type:
StringRequired. The assistant session to be used to run the assistant. Format: `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
$msg->message()/$msg->message($value)Type:
StringRequired. The message to send to the assistant agent.
$msg->attached_gcs_uris()/$msg->attached_gcs_uris($value)Type:
StringOptional. Cloud Storage URIs for files uploaded by the user during this turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
$msg->context_token()/$msg->context_token($value)Type:
StringOptional. Opaque onboarding context token returned by [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions]. When set and still fresh, the server reuses the onboarding snapshot computed for the zero state instead of recomputing it for the first conversation turn.
Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantResponse
Response message for [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
Inherits from Protobuf::Message.
Accessors
$msg->text_chunk()/$msg->text_chunk($value)Type:
StringText Token (for streaming Gemini responses word-by-word)
$msg->status_message()/$msg->status_message($value)Type:
StringSimple status update
$msg->session_checkpoint()/$msg->session_checkpoint($value)Type:
Message(Google::Cloud::Ces::V1beta::Common::SessionCheckpoint)Session checkpoint/compaction recap event containing user intent and rolling summary.
$msg->event_id()/$msg->event_id($value)Type:
StringUnique identifier for the event.
$msg->event_time()/$msg->event_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when the event occurred.
$msg->ui_event()/$msg->ui_event($value)Type:
Message(Google::Cloud::Ces::V1beta::Common::UiEvent)Optional. UI event payload.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1beta::AssistantService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.