NAME

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

SYNOPSIS

use Google::Cloud::Discoveryengine::V1::Session;

my $msg = Google::Cloud::Discoveryengine::V1::Session::Session->new({
    name => $name,
    display_name => $display_name,
    state => $state,
    user_pseudo_id => $user_pseudo_id,
});

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

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

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

DESCRIPTION

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

External session proto definition.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*`

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

    Type: String

    Optional. The display name of the session.

    This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1::Session::State)

    The state of the session.

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

    Type: String

    A unique identifier for tracking users.

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

    Type: Message (Google::Cloud::Discoveryengine::V1::Session::Session::Turn)

    Turns.

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

    Type: String

    Optional. The labels for the session. Can be set as filter in ListSessionsRequest.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the session started.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the session finished.

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

    Type: Bool

    Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list.

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

    Type: String

    Output only. Full resource name of an in-progress AsyncAssist operation for this session, e.g. `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`. Set when the operation starts and cleared when it finishes.

Enum: Session::State

  • STATE_UNSPECIFIED => 0

  • IN_PROGRESS => 1

Google::Cloud::Discoveryengine::V1::Session::Query

Defines a user inputed query.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Plain text.

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

    Type: String

    Output only. Unique Id for the query.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.