Service Client: Google::Cloud::Discoveryengine::V1beta::UserEventService::UserEventServiceClient
Client stub representing the remote UserEventService 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::V1beta::UserEventService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1beta/user_event_service.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1beta::UserEventService;
my $msg = Google::Cloud::Discoveryengine::V1beta::UserEventService::WriteUserEventRequest->new({
parent => $parent,
user_event => $user_event,
write_async => $write_async,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1beta::UserEventService::WriteUserEventRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1beta/user_event_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::V1beta::UserEventService::WriteUserEventRequest
Request message for WriteUserEvent method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. If the write user event action is applied in [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the format is: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. If the write user event action is applied in [Location][google.cloud.location.Location] level, for example, the event with [Document][google.cloud.discoveryengine.v1beta.Document] across multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: `projects/{project}/locations/{location}`.
$msg->user_event()/$msg->user_event($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::UserEvent::UserEvent)Required. User event to write.
$msg->write_async()/$msg->write_async($value)Type:
BoolIf set to true, the user event is written asynchronously after validation, and the API responds without waiting for the write.
Google::Cloud::Discoveryengine::V1beta::UserEventService::CollectUserEventRequest
Request message for CollectUserEvent method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. If the collect user event action is applied in [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the format is: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. If the collect user event action is applied in [Location][google.cloud.location.Location] level, for example, the event with [Document][google.cloud.discoveryengine.v1beta.Document] across multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: `projects/{project}/locations/{location}`.
$msg->user_event()/$msg->user_event($value)Type:
StringRequired. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
$msg->uri()/$msg->uri($value)Type:
StringThe URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests.
$msg->ets()/$msg->ets($value)Type:
Int64The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1beta::UserEventService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.