Service Client: Google::Cloud::Ces::V1::WidgetService::WidgetServiceClient
Client stub representing the remote WidgetService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ces.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Ces::V1::WidgetService - Compiled Protocol Buffers messages for google/cloud/ces/v1/widget_service.proto
SYNOPSIS
use Google::Cloud::Ces::V1::WidgetService;
my $msg = Google::Cloud::Ces::V1::WidgetService::GenerateChatTokenRequest->new({
name => $name,
deployment => $deployment,
recaptcha_token => $recaptcha_token,
live_handoff_enabled => $live_handoff_enabled,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::WidgetService::GenerateChatTokenRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/widget_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::Ces::V1::WidgetService::GenerateChatTokenRequest
Request message for [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
$msg->deployment()/$msg->deployment($value)Type:
StringRequired. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
$msg->recaptcha_token()/$msg->recaptcha_token($value)Type:
StringOptional. The reCAPTCHA token generated by the client-side chat widget.
$msg->live_handoff_enabled()/$msg->live_handoff_enabled($value)Type:
BoolOptional. Indicates if live handoff is enabled for the session.
Google::Cloud::Ces::V1::WidgetService::GenerateChatTokenResponse
Response message for [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken].
Inherits from Protobuf::Message.
Accessors
$msg->chat_token()/$msg->chat_token($value)Type:
StringThe session scoped token for chat widget to authenticate with Session APIs.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the chat token expires.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::WidgetService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.