NAME
Google::Cloud::Discoveryengine::V1::UserLicense - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/user_license.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1::UserLicense;
my $msg = Google::Cloud::Discoveryengine::V1::UserLicense::UserLicense->new({
user_principal => $user_principal,
user_profile => $user_profile,
license_assignment_state => $license_assignment_state,
license_config => $license_config,
});
# Read or update a field
my $val = $msg->user_principal();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1::UserLicense::UserLicense->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/user_license.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::V1::UserLicense::UserLicense
User License information assigned by the admin.
Inherits from Protobuf::Message.
Accessors
$msg->user_principal()/$msg->user_principal($value)Type:
StringRequired. Immutable. The user principal of the User, could be email address or other prinical identifier. This field is immutable. Admin assign licenses based on the user principal.
$msg->user_profile()/$msg->user_profile($value)Type:
StringOptional. The user profile. We user user full name(First name + Last name) as user profile.
$msg->license_assignment_state()/$msg->license_assignment_state($value)Type:
Enum(Google::Cloud::Discoveryengine::V1::UserLicense::LicenseAssignmentState)Output only. License assignment state of the user. If the user is assigned with a license config, the user login will be assigned with the license; If the user's license assignment state is unassigned or unspecified, no license config will be associated to the user;
$msg->license_config()/$msg->license_config($value)Type:
StringOptional. The full resource name of the Subscription(LicenseConfig) assigned to the user.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. User created timestamp.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. User update timestamp.
$msg->last_login_time()/$msg->last_login_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. User last logged in time. If the user has not logged in yet, this field will be empty.
Enum: UserLicense::LicenseAssignmentState
LICENSE_ASSIGNMENT_STATE_UNSPECIFIED=>0ASSIGNED=>1UNASSIGNED=>2NO_LICENSE=>3NO_LICENSE_ATTEMPTED_LOGIN=>4BLOCKED=>5
Google::Cloud::Discoveryengine::V1::UserLicense::LicenseConfigUsageStats
Stats about users' licenses.
Inherits from Protobuf::Message.
Accessors
$msg->license_config()/$msg->license_config($value)Type:
StringRequired. The LicenseConfig name.
$msg->used_license_count()/$msg->used_license_count($value)Type:
Int64Required. The number of licenses used.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1::UserLicense::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.