Service Client: Google::Cloud::Ces::V1beta::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::V1beta::WidgetService - Compiled Protocol Buffers messages for google/cloud/ces/v1beta/widget_service.proto

SYNOPSIS

use Google::Cloud::Ces::V1beta::WidgetService;

my $msg = Google::Cloud::Ces::V1beta::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::V1beta::WidgetService::GenerateChatTokenRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/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::V1beta::WidgetService::GenerateChatTokenRequest

Request message for [WidgetService.GenerateChatToken][google.cloud.ces.v1beta.WidgetService.GenerateChatToken].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}

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

    Type: String

    Required. 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: String

    Optional. The reCAPTCHA token generated by the client-side chat widget.

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

    Type: Bool

    Optional. Indicates if live handoff is enabled for the session.

Google::Cloud::Ces::V1beta::WidgetService::GenerateChatTokenResponse

Response message for [WidgetService.GenerateChatToken][google.cloud.ces.v1beta.WidgetService.GenerateChatToken].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The 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::V1beta::WidgetService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.