NAME

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

SYNOPSIS

use Google::Cloud::Discoveryengine::V1alpha::Session;

my $msg = Google::Cloud::Discoveryengine::V1alpha::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::V1alpha::Session::Session->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/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::V1alpha::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::V1alpha::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::V1alpha::Session::Session::Turn)

    Turns.

  • $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.

Enum: Session::State

  • STATE_UNSPECIFIED => 0

  • IN_PROGRESS => 1

Google::Cloud::Discoveryengine::V1alpha::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.

Google::Cloud::Discoveryengine::V1alpha::Session::ImageCharacteristics

Standard characteristics of an image media view.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Output only. Image width in pixels.

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

    Type: Int32

    Output only. Image height in pixels.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1alpha::ImageCharacteristics::ColorSpace)

    Output only. Color space of the image (e.g., "RGB", "CMYK", "Grayscale").

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

    Type: Int32

    Output only. Bit depth of the image (e.g., 8-bit, 16-bit).

Enum: ImageCharacteristics::ColorSpace

  • COLOR_SPACE_UNSPECIFIED => 0

  • RGB => 1

  • CMYK => 2

  • GRAYSCALE => 3

  • YUV => 4

  • OTHER_COLOR_SPACE => 5

Google::Cloud::Discoveryengine::V1alpha::Session::VideoCharacteristics

Standard characteristics of a video media view.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Output only. Video width in pixels.

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

    Type: Int32

    Output only. Video height in pixels.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Output only. Video duration.

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

    Type: Double

    Output only. Frame rate (frames per second).

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

    Type: String

    Output only. Audio codecs used in the video.

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

    Type: String

    Output only. Video codecs used in the video.

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

    Type: Int32

    Output only. Bitrate of the video in kbps.

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

    Type: Int32

    Output only. Bitrate of the audio in kbps.

Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics

Caracteristics of other file types.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1alpha::Session::FileView

Represents a specific alternate version or "view" of a file object, such as a summary, a thumbnail, a translated version, etc.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata

Represents a file attached to a session (context file)

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The ID of the file.

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

    Type: String

    Output only. The name of the file uploaded.

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

    Type: String

    The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.

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

    Type: Int64

    Output only. The size of the context file in bytes.

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

    Type: String

    Optional. The original location of the file. It may be a local file path, or any other URI that allows accessing the file in an external system. There are two scenarios in which this url may be empty: 1. If the file was sent as inline data (e.g. pasted from the clipboard). 2. If the original location is not available.

    Note that there's no guarantee that the URI will be pointing to a valid or actually existing file. For example, a file might have been uploaded to the session, and then deleted from the original source.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1alpha::FileSource)

    Optional. The type of the original source of the file.

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

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

    Output only. The time the file was uploaded (If this is a file generated by an internal process and then made available to the session, this indicates the moment it happened).

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

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

    Output only. The time the file was added to the session. Note that if a file was added, then modified externally, then added again, the add time will be updated.

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::MetadataEntry)

    Optional. Represents metadata related to the file that can suit particular use cases. The prefix "google." is reserved for the key for use by Google, but other prefixes can be freely used.

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

    Type: String

    Output only. The [AssistantService.DownloadSessionFile][google.cloud.discoveryengine.v1alpha.AssistantService.DownloadSessionFile] URL to download the file. This URL will need the same credentials as [AssistantService.ListSessionFileMetadata][google.cloud.discoveryengine.v1alpha.AssistantService.ListSessionFileMetadata] method and will provide the resource.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1alpha::FileOriginType)

    Optional. The origin of the file.

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::ViewsEntry)

    Output only. Alternate views of this file object. Each file view is attached to a specific role. Possible example keys: - "thumbnail" - "mobile_thumbnail" - "clip" - "summary" - "translation"

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.