Service Client: Google::Ai::Generativelanguage::V1alpha::FileService::FileServiceClient
Client stub representing the remote FileService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Ai::Generativelanguage::V1alpha::FileService - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1alpha/file_service.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1alpha::FileService;
my $msg = Google::Ai::Generativelanguage::V1alpha::FileService::CreateFileRequest->new({
file => $file,
});
# Read or update a field
my $val = $msg->file();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1alpha::FileService::CreateFileRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1alpha/file_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::Ai::Generativelanguage::V1alpha::FileService::CreateFileRequest
Request for `CreateFile`.
Inherits from Protobuf::Message.
Accessors
$msg->file()/$msg->file($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::File::File)Optional. Metadata for the file to create.
Google::Ai::Generativelanguage::V1alpha::FileService::CreateFileResponse
Response for `CreateFile`.
Inherits from Protobuf::Message.
Accessors
$msg->file()/$msg->file($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::File::File)Metadata for the created file.
Google::Ai::Generativelanguage::V1alpha::FileService::ListFilesRequest
Request for `ListFiles`.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token from a previous `ListFiles` call.
Google::Ai::Generativelanguage::V1alpha::FileService::ListFilesResponse
Response for `ListFiles`.
Inherits from Protobuf::Message.
Accessors
$msg->files()/$msg->files($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::File::File)The list of `File`s.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as a `page_token` into a subsequent `ListFiles` call.
Google::Ai::Generativelanguage::V1alpha::FileService::GetFileRequest
Request for `GetFile`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the `File` to get. Example: `files/abc-123`
Google::Ai::Generativelanguage::V1alpha::FileService::DeleteFileRequest
Request for `DeleteFile`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the `File` to delete. Example: `files/abc-123`
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1alpha::FileService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.