Class protos.google.cloud.ces.v1.WidgetService (0.4.1)

Represents a WidgetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.ces.v1.WidgetService

Package

@google-cloud/ces

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new WidgetService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): WidgetService;

Creates new WidgetService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
WidgetService

RPC service. Useful where requests and/or responses are streamed.

generateChatToken(request, callback)

public generateChatToken(request: google.cloud.ces.v1.IGenerateChatTokenRequest, callback: google.cloud.ces.v1.WidgetService.GenerateChatTokenCallback): void;

Calls GenerateChatToken.

Parameters
Name Description
request IGenerateChatTokenRequest

GenerateChatTokenRequest message or plain object

callback GenerateChatTokenCallback

Node-style callback called with the error, if any, and GenerateChatTokenResponse

Returns
Type Description
void

generateChatToken(request)

public generateChatToken(request: google.cloud.ces.v1.IGenerateChatTokenRequest): Promise<google.cloud.ces.v1.GenerateChatTokenResponse>;

Calls GenerateChatToken.

Parameter
Name Description
request IGenerateChatTokenRequest

GenerateChatTokenRequest message or plain object

Returns
Type Description
Promise<google.cloud.ces.v1.GenerateChatTokenResponse>

Promise