Class GrpcConversationalSearchServiceStub (0.26.0)

public class GrpcConversationalSearchServiceStub extends ConversationalSearchServiceStub

gRPC stub implementation for the ConversationalSearchService service API.

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

Inheritance

java.lang.Object > ConversationalSearchServiceStub > GrpcConversationalSearchServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ConversationalSearchServiceStubSettings settings)

public static final GrpcConversationalSearchServiceStub create(ConversationalSearchServiceStubSettings settings)
Parameter
NameDescription
settingsConversationalSearchServiceStubSettings
Returns
TypeDescription
GrpcConversationalSearchServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext)

protected GrpcConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConversationalSearchServiceStub, 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
settingsConversationalSearchServiceStubSettings
clientContextClientContext

GrpcConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcConversationalSearchServiceStub, 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
settingsConversationalSearchServiceStubSettings
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

close()

public final void close()
Overrides

converseConversationCallable()

public UnaryCallable<ConverseConversationRequest,ConverseConversationResponse> converseConversationCallable()
Returns
TypeDescription
UnaryCallable<ConverseConversationRequest,ConverseConversationResponse>
Overrides

createConversationCallable()

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

deleteConversationCallable()

public UnaryCallable<DeleteConversationRequest,Empty> deleteConversationCallable()
Returns
TypeDescription
UnaryCallable<DeleteConversationRequest,Empty>
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,ConversationalSearchServiceClient.ListConversationsPagedResponse> listConversationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConversationsRequest,ListConversationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateConversationCallable()

public UnaryCallable<UpdateConversationRequest,Conversation> updateConversationCallable()
Returns
TypeDescription
UnaryCallable<UpdateConversationRequest,Conversation>
Overrides