Class WidgetServiceGrpc.WidgetServiceFutureStub (0.1.0)

public static final class WidgetServiceGrpc.WidgetServiceFutureStub extends AbstractFutureStub<WidgetServiceGrpc.WidgetServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service WidgetService.

Provides APIs for widgets to interact with CES APIs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > WidgetServiceGrpc.WidgetServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected WidgetServiceGrpc.WidgetServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
WidgetServiceGrpc.WidgetServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

generateChatToken(GenerateChatTokenRequest request)

public ListenableFuture<GenerateChatTokenResponse> generateChatToken(GenerateChatTokenRequest request)

Generates a session scoped token for chat widget to authenticate with Session APIs.

Parameter
Name Description
request GenerateChatTokenRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GenerateChatTokenResponse>