Service Client: Google::Cloud::Discoveryengine::V1alpha::SessionService::SessionServiceClient

Client stub representing the remote SessionService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to discoveryengine.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

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

SYNOPSIS

use Google::Cloud::Discoveryengine::V1alpha::SessionService;

my $msg = Google::Cloud::Discoveryengine::V1alpha::SessionService::ListFilesRequest->new({
    parent => $parent,
    filter => $filter,
    page_size => $page_size,
    page_token => $page_token,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/session_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::Discoveryengine::V1alpha::SessionService::ListFilesRequest

Request message for [SessionService.ListFiles][google.cloud.discoveryengine.v1alpha.SessionService.ListFiles] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the Session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` Name of the session resource to which the file belong.

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

    Type: String

    Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the files being filtered. Filter expression is case-sensitive. Currently supported field names are: * upload_time * last_add_time * last_use_time * file_name * mime_type

    Some examples of filters would be: * "file_name = 'file_1'" * "file_name = 'file_1' AND mime_type = 'text/plain'" * "last_use_time > '2025-06-14T12:00:00Z'"

    For a full description of the filter format, please see https://google.aip.dev/160.

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

    Type: Int32

    Optional. The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. If user specifies a value less than or equal to 0 - the request will be rejected with an INVALID_ARGUMENT error.

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

    Type: String

    Optional. A page token received from a previous `ListFiles` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListFiles` must match the call that provided the page token (except `page_size`, which may differ).

Google::Cloud::Discoveryengine::V1alpha::SessionService::ListFilesResponse

Response message for [SessionService.ListFiles][google.cloud.discoveryengine.v1alpha.SessionService.ListFiles] method.

Inherits from Protobuf::Message.

Accessors

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

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

    The [FileMetadata][google.cloud.discoveryengine.v1alpha.FileMetadata]s.

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

    Type: String

    A token to retrieve next page of results. Pass this value in the [ListFilesRequest.page_token][google.cloud.discoveryengine.v1main.ListFilesRequest.page_token] field in the subsequent call to `ListFiles` method to retrieve the next page of results.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.