Class HttpJsonConversationalSearchServiceStub (0.19.0)

public class HttpJsonConversationalSearchServiceStub extends ConversationalSearchServiceStub

REST stub implementation for the ConversationalSearchService service API.

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

Inheritance

java.lang.Object > ConversationalSearchServiceStub > HttpJsonConversationalSearchServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonConversationalSearchServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonConversationalSearchServiceStub
Exceptions
TypeDescription
IOException

create(ConversationalSearchServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonConversationalSearchServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

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