Service Client: Google::Cloud::Retail::V2::UserEventService::UserEventServiceClient
Client stub representing the remote UserEventService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to retail.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Retail::V2::UserEventService - Compiled Protocol Buffers messages for google/cloud/retail/v2/user_event_service.proto
SYNOPSIS
use Google::Cloud::Retail::V2::UserEventService;
my $msg = Google::Cloud::Retail::V2::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::Retail::V2::UserEventService::WriteUserEventRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/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::Retail::V2::UserEventService::WriteUserEventRequest
Request message for WriteUserEvent method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent catalog resource name, such as `projects/1234/locations/global/catalogs/default_catalog`.
$msg->user_event()/$msg->user_event($value)Type:
Message(Google::Cloud::Retail::V2::UserEvent::UserEvent)Required. User event to write.
$msg->write_async()/$msg->write_async($value)Type:
BoolIf set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.
Google::Cloud::Retail::V2::UserEventService::CollectUserEventRequest
Request message for CollectUserEvent method.
Inherits from Protobuf::Message.
Accessors
$msg->prebuilt_rule()/$msg->prebuilt_rule($value)Type:
StringThe prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.
$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 3rd 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.
$msg->raw_json()/$msg->raw_json($value)Type:
StringAn arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
Google::Cloud::Retail::V2::UserEventService::RejoinUserEventsRequest
Request message for RejoinUserEvents method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent catalog resource name, such as `projects/1234/locations/global/catalogs/default_catalog`.
$msg->user_event_rejoin_scope()/$msg->user_event_rejoin_scope($value)Type:
Enum(Google::Cloud::Retail::V2::RejoinUserEventsRequest::UserEventRejoinScope)The type of the user event rejoin to define the scope and range of the user events to be rejoined with the latest product catalog. Defaults to `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to an invalid integer value.
Enum: RejoinUserEventsRequest::UserEventRejoinScope
USER_EVENT_REJOIN_SCOPE_UNSPECIFIED=>0JOINED_EVENTS=>1UNJOINED_EVENTS=>2
Google::Cloud::Retail::V2::UserEventService::RejoinUserEventsResponse
Response message for `RejoinUserEvents` method.
Inherits from Protobuf::Message.
Accessors
$msg->rejoined_user_events_count()/$msg->rejoined_user_events_count($value)Type:
Int64Number of user events that were joined with latest product catalog.
Google::Cloud::Retail::V2::UserEventService::RejoinUserEventsMetadata
Metadata for `RejoinUserEvents` method.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2::UserEventService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.