Class HttpJsonChatServiceStub (0.5.0)

public class HttpJsonChatServiceStub extends ChatServiceStub

REST stub implementation for the ChatService service API.

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

Inheritance

java.lang.Object > ChatServiceStub > HttpJsonChatServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ChatServiceStubSettings settings)

public static final HttpJsonChatServiceStub create(ChatServiceStubSettings settings)
Parameter
NameDescription
settingsChatServiceStubSettings
Returns
TypeDescription
HttpJsonChatServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonChatServiceStub, 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
settingsChatServiceStubSettings
clientContextClientContext

HttpJsonChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

completeImportSpaceCallable()

public UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse> completeImportSpaceCallable()
Returns
TypeDescription
UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse>
Overrides

createMembershipCallable()

public UnaryCallable<CreateMembershipRequest,Membership> createMembershipCallable()
Returns
TypeDescription
UnaryCallable<CreateMembershipRequest,Membership>
Overrides

createMessageCallable()

public UnaryCallable<CreateMessageRequest,Message> createMessageCallable()
Returns
TypeDescription
UnaryCallable<CreateMessageRequest,Message>
Overrides

createReactionCallable()

public UnaryCallable<CreateReactionRequest,Reaction> createReactionCallable()
Returns
TypeDescription
UnaryCallable<CreateReactionRequest,Reaction>
Overrides

createSpaceCallable()

public UnaryCallable<CreateSpaceRequest,Space> createSpaceCallable()
Returns
TypeDescription
UnaryCallable<CreateSpaceRequest,Space>
Overrides

deleteMembershipCallable()

public UnaryCallable<DeleteMembershipRequest,Membership> deleteMembershipCallable()
Returns
TypeDescription
UnaryCallable<DeleteMembershipRequest,Membership>
Overrides

deleteMessageCallable()

public UnaryCallable<DeleteMessageRequest,Empty> deleteMessageCallable()
Returns
TypeDescription
UnaryCallable<DeleteMessageRequest,Empty>
Overrides

deleteReactionCallable()

public UnaryCallable<DeleteReactionRequest,Empty> deleteReactionCallable()
Returns
TypeDescription
UnaryCallable<DeleteReactionRequest,Empty>
Overrides

deleteSpaceCallable()

public UnaryCallable<DeleteSpaceRequest,Empty> deleteSpaceCallable()
Returns
TypeDescription
UnaryCallable<DeleteSpaceRequest,Empty>
Overrides

findDirectMessageCallable()

public UnaryCallable<FindDirectMessageRequest,Space> findDirectMessageCallable()
Returns
TypeDescription
UnaryCallable<FindDirectMessageRequest,Space>
Overrides

getAttachmentCallable()

public UnaryCallable<GetAttachmentRequest,Attachment> getAttachmentCallable()
Returns
TypeDescription
UnaryCallable<GetAttachmentRequest,Attachment>
Overrides

getMembershipCallable()

public UnaryCallable<GetMembershipRequest,Membership> getMembershipCallable()
Returns
TypeDescription
UnaryCallable<GetMembershipRequest,Membership>
Overrides

getMessageCallable()

public UnaryCallable<GetMessageRequest,Message> getMessageCallable()
Returns
TypeDescription
UnaryCallable<GetMessageRequest,Message>
Overrides

getSpaceCallable()

public UnaryCallable<GetSpaceRequest,Space> getSpaceCallable()
Returns
TypeDescription
UnaryCallable<GetSpaceRequest,Space>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listMembershipsCallable()

public UnaryCallable<ListMembershipsRequest,ListMembershipsResponse> listMembershipsCallable()
Returns
TypeDescription
UnaryCallable<ListMembershipsRequest,ListMembershipsResponse>
Overrides

listMembershipsPagedCallable()

public UnaryCallable<ListMembershipsRequest,ChatServiceClient.ListMembershipsPagedResponse> listMembershipsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMembershipsRequest,ListMembershipsPagedResponse>
Overrides

listMessagesCallable()

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

listMessagesPagedCallable()

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

listReactionsCallable()

public UnaryCallable<ListReactionsRequest,ListReactionsResponse> listReactionsCallable()
Returns
TypeDescription
UnaryCallable<ListReactionsRequest,ListReactionsResponse>
Overrides

listReactionsPagedCallable()

public UnaryCallable<ListReactionsRequest,ChatServiceClient.ListReactionsPagedResponse> listReactionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReactionsRequest,ListReactionsPagedResponse>
Overrides

listSpacesCallable()

public UnaryCallable<ListSpacesRequest,ListSpacesResponse> listSpacesCallable()
Returns
TypeDescription
UnaryCallable<ListSpacesRequest,ListSpacesResponse>
Overrides

listSpacesPagedCallable()

public UnaryCallable<ListSpacesRequest,ChatServiceClient.ListSpacesPagedResponse> listSpacesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSpacesRequest,ListSpacesPagedResponse>
Overrides

setUpSpaceCallable()

public UnaryCallable<SetUpSpaceRequest,Space> setUpSpaceCallable()
Returns
TypeDescription
UnaryCallable<SetUpSpaceRequest,Space>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateMessageCallable()

public UnaryCallable<UpdateMessageRequest,Message> updateMessageCallable()
Returns
TypeDescription
UnaryCallable<UpdateMessageRequest,Message>
Overrides

updateSpaceCallable()

public UnaryCallable<UpdateSpaceRequest,Space> updateSpaceCallable()
Returns
TypeDescription
UnaryCallable<UpdateSpaceRequest,Space>
Overrides

uploadAttachmentCallable()

public UnaryCallable<UploadAttachmentRequest,UploadAttachmentResponse> uploadAttachmentCallable()
Returns
TypeDescription
UnaryCallable<UploadAttachmentRequest,UploadAttachmentResponse>
Overrides