NAME

Google::Ai::Generativelanguage::V1beta3::Permission - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta3/permission.proto

SYNOPSIS

use Google::Ai::Generativelanguage::V1beta3::Permission;

my $msg = Google::Ai::Generativelanguage::V1beta3::Permission::Permission->new({
    name => $name,
    grantee_type => $grantee_type,
    email_address => $email_address,
    role => $role,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1beta3::Permission::Permission->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta3/permission.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::V1beta3::Permission::Permission

Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, file).

A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains.

There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The permission name. A unique name will be generated on create. Example: tunedModels/{tuned_model}permssions/{permission} Output only.

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

    Type: Enum (Google::Ai::Generativelanguage::V1beta3::Permission::GranteeType)

    Required. Immutable. The type of the grantee.

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

    Type: String

    Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.

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

    Type: Enum (Google::Ai::Generativelanguage::V1beta3::Permission::Role)

    Required. The role granted by this permission.

Enum: Permission::GranteeType

  • GRANTEE_TYPE_UNSPECIFIED => 0

  • USER => 1

  • GROUP => 2

  • EVERYONE => 3

Enum: Permission::Role

  • ROLE_UNSPECIFIED => 0

  • OWNER => 1

  • WRITER => 2

  • READER => 3

SEE ALSO

Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta3::Permission::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.