Service Client: Google::Cloud::Discoveryengine::V1::UserLicenseService::UserLicenseServiceClient
Client stub representing the remote UserLicenseService 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::V1::UserLicenseService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/user_license_service.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1::UserLicenseService;
my $msg = Google::Cloud::Discoveryengine::V1::UserLicenseService::ListUserLicensesRequest->new({
parent => $parent,
page_size => $page_size,
page_token => $page_token,
filter => $filter,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1::UserLicenseService::ListUserLicensesRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/user_license_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::V1::UserLicenseService::ListUserLicensesRequest
Request message for [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore] resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. Server may return fewer items than requested. If unspecified, defaults to 100. The maximum value is 1000; values above 1000 will be coerced to 1000.
If this field is negative, an INVALID_ARGUMENT error is returned.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListUserLicenses` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListUserLicenses` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filter for the list request.
Supported fields:
* `license_assignment_state` * `user_principal` * Examples:
* `license_assignment_state = ASSIGNED` to list assigned user licenses. * `license_assignment_state = NO_LICENSE` to list not licensed users. * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users who attempted login but no license assigned. * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter out users who attempted login but no license assigned. * `user_principal = user1@example.com` to list user license for `user1@example.com`.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. The order in which the [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The value must be a comma-separated list of fields. Default sorting order is ascending. To specify descending order for a field, append a " desc" suffix. Redundant space characters in the syntax are insignificant.
Supported fields (only `user_principal` is supported for now):
* `user_principal`
If not set, the default ordering is by `user_principal`.
Examples:
* `user_principal` to order by `user_principal` in ascending order. * `user_principal desc` to order by `user_principal` in descending order.
Google::Cloud::Discoveryengine::V1::UserLicenseService::ListUserLicensesResponse
Response message for [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses].
Inherits from Protobuf::Message.
Accessors
$msg->user_licenses()/$msg->user_licenses($value)Type:
Message(Google::Cloud::Discoveryengine::V1::UserLicense::UserLicense)All the customer's [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s.
$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 subsequent pages.
Google::Cloud::Discoveryengine::V1::UserLicenseService::ListLicenseConfigsUsageStatsRequest
Request message for [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_id}`.
Google::Cloud::Discoveryengine::V1::UserLicenseService::ListLicenseConfigsUsageStatsResponse
Response message for [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats] method.
Inherits from Protobuf::Message.
Accessors
$msg->license_config_usage_stats()/$msg->license_config_usage_stats($value)Type:
Message(Google::Cloud::Discoveryengine::V1::UserLicense::LicenseConfigUsageStats)All the customer's [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
Google::Cloud::Discoveryengine::V1::UserLicenseService::BatchUpdateUserLicensesRequest
Request message for [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses] method.
Inherits from Protobuf::Message.
Accessors
$msg->inline_source()/$msg->inline_source($value)Type:
Message(Google::Cloud::Discoveryengine::V1::UserLicenseService::BatchUpdateUserLicensesRequest::InlineSource)The inline source for the input content for license assignment.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore] resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`.
$msg->delete_unassigned_user_licenses()/$msg->delete_unassigned_user_licenses($value)Type:
BoolOptional. If true, if user licenses removed associated license config, the user license will be deleted. By default which is false, the user license will be updated to unassigned state.
Google::Cloud::Discoveryengine::V1::UserLicenseService::BatchUpdateUserLicensesMetadata
Metadata related to the progress of the [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses] operation. This will be returned by the google.longrunning.Operation.metadata field.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Operation create time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Operation last update time. If the operation is done, this is also the finish time.
$msg->success_count()/$msg->success_count($value)Type:
Int64Count of user licenses successfully updated.
$msg->failure_count()/$msg->failure_count($value)Type:
Int64Count of user licenses that failed to be updated.
Google::Cloud::Discoveryengine::V1::UserLicenseService::BatchUpdateUserLicensesResponse
Response message for [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses] method.
Inherits from Protobuf::Message.
Accessors
$msg->user_licenses()/$msg->user_licenses($value)Type:
Message(Google::Cloud::Discoveryengine::V1::UserLicense::UserLicense)UserLicenses successfully updated.
$msg->error_samples()/$msg->error_samples($value)Type:
Message(Google::Rpc::Status::Status)A sample of errors encountered while processing the request.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1::UserLicenseService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.