Class HttpJsonConversationsStub (4.7.5)

public class HttpJsonConversationsStub extends ConversationsStub

REST stub implementation for the Conversations service API.

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

Inheritance

java.lang.Object > ConversationsStub > HttpJsonConversationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ConversationsStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonConversationsStub(ConversationsStubSettings settings, ClientContext clientContext)

protected HttpJsonConversationsStub(ConversationsStubSettings settings, ClientContext clientContext)

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

HttpJsonConversationsStub(ConversationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonConversationsStub(ConversationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

completeConversationCallable()

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

createConversationCallable()

public UnaryCallable<CreateConversationRequest,Conversation> createConversationCallable()
Returns
TypeDescription
UnaryCallable<CreateConversationRequest,Conversation>
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,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()