Class GrpcConversationsStub (4.47.0)

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

Static Methods

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

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

createConversationCallable()

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

generateStatelessSummaryCallable()

public UnaryCallable<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse> generateStatelessSummaryCallable()
Returns
TypeDescription
UnaryCallable<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse>
Overrides

getConversationCallable()

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

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
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

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ConversationsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
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

searchKnowledgeCallable()

public UnaryCallable<SearchKnowledgeRequest,SearchKnowledgeResponse> searchKnowledgeCallable()
Returns
TypeDescription
UnaryCallable<SearchKnowledgeRequest,SearchKnowledgeResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

suggestConversationSummaryCallable()

public UnaryCallable<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse> suggestConversationSummaryCallable()
Returns
TypeDescription
UnaryCallable<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse>
Overrides