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

    Required. The app to list assistant sessions from. Format: `projects/{project}/locations/{location}/apps/{app}`

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

    Type: Int32

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

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

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

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

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

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

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

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

    Required. The app to run assistant for. Format: `projects/{project}/locations/{location}/apps/{app}`

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

    Type: String

    Required. 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 => 0

  • NEW_MESSAGE => 1

  • POLL => 2

  • DISMISS => 3

Google::Cloud::Ces::V1beta::AssistantService::RunAssistantResponse

Response message for [AssistantService.RunAssistant][google.cloud.ces.v1beta.AssistantService.RunAssistant].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Ces::V1beta::AssistantService::AssistantSession

An assistant session represents a conversation between a user and the assistant agent.

Inherits from Protobuf::Message.

Accessors

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

Enum: ActiveTurnInfo::Status

  • STATUS_UNSPECIFIED => 0

  • RUNNING => 1

  • DISCONNECTED => 2

  • RESUMING => 3

  • ABANDONED => 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: String

    Output only. The unique identifier of the artifact within the session.

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

    Type: String

    Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".

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

    Type: String

    Output 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: String

    Output 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: Int32

    Output 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: String

    Optional. Text data.

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

    Type: String

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

Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage

A message in an assistant session.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Required. The display name of the payload.

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

    Type: String

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

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

    Required. The app to run assistant for. Format: `projects/{project}/locations/{location}/apps/{app}`

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

    Type: String

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

    Required. The message to send to the assistant agent.

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

    Type: String

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

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

    Text Token (for streaming Gemini responses word-by-word)

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

    Type: String

    Simple 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: String

    Unique 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.