Service Client: Google::Cloud::Retail::V2alpha::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::V2alpha::UserEventService - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/user_event_service.proto

SYNOPSIS

use Google::Cloud::Retail::V2alpha::UserEventService;

my $msg = Google::Cloud::Retail::V2alpha::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::V2alpha::UserEventService::WriteUserEventRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/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::V2alpha::UserEventService::WriteUserEventRequest

Request message for WriteUserEvent method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. 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::V2alpha::UserEvent::UserEvent)

    Required. User event to write.

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

    Type: Bool

    If 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::V2alpha::UserEventService::CollectUserEventRequest

Request message for CollectUserEvent method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The 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: String

    Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.

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

    Type: String

    Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.

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

    Type: String

    The 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: Int64

    The 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: String

    An 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::V2alpha::UserEventService::RejoinUserEventsRequest

Request message for RejoinUserEvents method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. 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::V2alpha::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 => 0

  • JOINED_EVENTS => 1

  • UNJOINED_EVENTS => 2

Google::Cloud::Retail::V2alpha::UserEventService::RejoinUserEventsResponse

Response message for `RejoinUserEvents` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    Number of user events that were joined with latest product catalog.

Google::Cloud::Retail::V2alpha::UserEventService::RejoinUserEventsMetadata

Metadata for `RejoinUserEvents` method.

Inherits from Protobuf::Message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::UserEventService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.