Class GrpcConversationsStub (4.3.1)

public class GrpcConversationsStub extends ConversationsStub

gRPC stub implementation for the Conversations service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ConversationsStub > GrpcConversationsStub

Constructors

GrpcConversationsStub(ConversationsStubSettings settings, ClientContext clientContext)

protected GrpcConversationsStub(ConversationsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConversationsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsConversationsStubSettings
clientContextClientContext

GrpcConversationsStub(ConversationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConversationsStub(ConversationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcConversationsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsConversationsStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchCreateMessagesCallable()

public UnaryCallable<BatchCreateMessagesRequest,BatchCreateMessagesResponse> batchCreateMessagesCallable()
Returns
TypeDescription
UnaryCallable<BatchCreateMessagesRequest,BatchCreateMessagesResponse>
Overrides

close()

public final void close()
Overrides

completeConversationCallable()

public UnaryCallable<CompleteConversationRequest,Conversation> completeConversationCallable()
Returns
TypeDescription
UnaryCallable<CompleteConversationRequest,Conversation>
Overrides

create(ClientContext clientContext)

public static final GrpcConversationsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcConversationsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcConversationsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcConversationsStub
Exceptions
TypeDescription
IOException

create(ConversationsStubSettings settings)

public static final GrpcConversationsStub create(ConversationsStubSettings settings)
Parameter
NameDescription
settingsConversationsStubSettings
Returns
TypeDescription
GrpcConversationsStub
Exceptions
TypeDescription
IOException

createConversationCallable()

public UnaryCallable<CreateConversationRequest,Conversation> createConversationCallable()
Returns
TypeDescription
UnaryCallable<CreateConversationRequest,Conversation>
Overrides

getConversationCallable()

public UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
Returns
TypeDescription
UnaryCallable<GetConversationRequest,Conversation>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConversationsCallable()

public UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
Returns
TypeDescription
UnaryCallable<ListConversationsRequest,ListConversationsResponse>
Overrides

listConversationsPagedCallable()

public UnaryCallable<ListConversationsRequest,ConversationsClient.ListConversationsPagedResponse> listConversationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConversationsRequest,ListConversationsPagedResponse>
Overrides

listMessagesCallable()

public UnaryCallable<ListMessagesRequest,ListMessagesResponse> listMessagesCallable()
Returns
TypeDescription
UnaryCallable<ListMessagesRequest,ListMessagesResponse>
Overrides

listMessagesPagedCallable()

public UnaryCallable<ListMessagesRequest,ConversationsClient.ListMessagesPagedResponse> listMessagesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMessagesRequest,ListMessagesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()