Service Client: Google::Ai::Generativelanguage::V1beta::PermissionService::PermissionServiceClient
Client stub representing the remote PermissionService 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::V1beta::PermissionService - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta/permission_service.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1beta::PermissionService;
my $msg = Google::Ai::Generativelanguage::V1beta::PermissionService::CreatePermissionRequest->new({
parent => $parent,
permission => $permission,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1beta::PermissionService::CreatePermissionRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta/permission_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::V1beta::PermissionService::CreatePermissionRequest
Request to create a `Permission`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`
$msg->permission()/$msg->permission($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Permission::Permission)Required. The permission to create.
Google::Ai::Generativelanguage::V1beta::PermissionService::GetPermissionRequest
Request for getting information about a specific `Permission`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the permission.
Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`
Google::Ai::Generativelanguage::V1beta::PermissionService::ListPermissionsRequest
Request for listing permissions.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions.
If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListPermissions` call.
Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page.
When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.
Google::Ai::Generativelanguage::V1beta::PermissionService::ListPermissionsResponse
Response from `ListPermissions` containing a paginated list of permissions.
Inherits from Protobuf::Message.
Accessors
$msg->permissions()/$msg->permissions($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Permission::Permission)Returned permissions.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no more pages.
Google::Ai::Generativelanguage::V1beta::PermissionService::UpdatePermissionRequest
Request to update the `Permission`.
Inherits from Protobuf::Message.
Accessors
$msg->permission()/$msg->permission($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Permission::Permission)Required. The permission to update.
The permission's `name` field is used to identify the permission to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)
Google::Ai::Generativelanguage::V1beta::PermissionService::DeletePermissionRequest
Request to delete the `Permission`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`
Google::Ai::Generativelanguage::V1beta::PermissionService::TransferOwnershipRequest
Request to transfer the ownership of the tuned model.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the tuned model to transfer ownership.
Format: `tunedModels/my-model-id`
$msg->email_address()/$msg->email_address($value)Type:
StringRequired. The email address of the user to whom the tuned model is being transferred to.
Google::Ai::Generativelanguage::V1beta::PermissionService::TransferOwnershipResponse
Response from `TransferOwnership`.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta::PermissionService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.