Class GrpcChatServiceStub (0.22.0)

public class GrpcChatServiceStub extends ChatServiceStub

gRPC stub implementation for the ChatService service API.

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

Inheritance

java.lang.Object > ChatServiceStub > GrpcChatServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcChatServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcChatServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcChatServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcChatServiceStub
Exceptions
Type Description
IOException

create(ChatServiceStubSettings settings)

public static final GrpcChatServiceStub create(ChatServiceStubSettings settings)
Parameter
Name Description
settings ChatServiceStubSettings
Returns
Type Description
GrpcChatServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext)

protected GrpcChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcChatServiceStub, 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
Name Description
settings ChatServiceStubSettings
clientContext ClientContext

GrpcChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcChatServiceStub, 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
Name Description
settings ChatServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

completeImportSpaceCallable()

public UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse> completeImportSpaceCallable()
Overrides

createMembershipCallable()

public UnaryCallable<CreateMembershipRequest,Membership> createMembershipCallable()
Overrides

createMessageCallable()

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

createReactionCallable()

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

createSpaceCallable()

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

deleteMembershipCallable()

public UnaryCallable<DeleteMembershipRequest,Membership> deleteMembershipCallable()
Overrides

deleteMessageCallable()

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

deleteReactionCallable()

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

deleteSpaceCallable()

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

findDirectMessageCallable()

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

getAttachmentCallable()

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

getMembershipCallable()

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

getMessageCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSpaceCallable()

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

getSpaceEventCallable()

public UnaryCallable<GetSpaceEventRequest,SpaceEvent> getSpaceEventCallable()
Returns
Type Description
UnaryCallable<GetSpaceEventRequest,SpaceEvent>
Overrides

getSpaceReadStateCallable()

public UnaryCallable<GetSpaceReadStateRequest,SpaceReadState> getSpaceReadStateCallable()
Overrides

getThreadReadStateCallable()

public UnaryCallable<GetThreadReadStateRequest,ThreadReadState> getThreadReadStateCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listMembershipsCallable()

public UnaryCallable<ListMembershipsRequest,ListMembershipsResponse> listMembershipsCallable()
Overrides

listMembershipsPagedCallable()

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

listMessagesCallable()

public UnaryCallable<ListMessagesRequest,ListMessagesResponse> listMessagesCallable()
Overrides

listMessagesPagedCallable()

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

listReactionsCallable()

public UnaryCallable<ListReactionsRequest,ListReactionsResponse> listReactionsCallable()
Overrides

listReactionsPagedCallable()

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

listSpaceEventsCallable()

public UnaryCallable<ListSpaceEventsRequest,ListSpaceEventsResponse> listSpaceEventsCallable()
Overrides

listSpaceEventsPagedCallable()

public UnaryCallable<ListSpaceEventsRequest,ChatServiceClient.ListSpaceEventsPagedResponse> listSpaceEventsPagedCallable()
Overrides

listSpacesCallable()

public UnaryCallable<ListSpacesRequest,ListSpacesResponse> listSpacesCallable()
Overrides

listSpacesPagedCallable()

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

searchSpacesCallable()

public UnaryCallable<SearchSpacesRequest,SearchSpacesResponse> searchSpacesCallable()
Overrides

searchSpacesPagedCallable()

public UnaryCallable<SearchSpacesRequest,ChatServiceClient.SearchSpacesPagedResponse> searchSpacesPagedCallable()
Overrides

setUpSpaceCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateMembershipCallable()

public UnaryCallable<UpdateMembershipRequest,Membership> updateMembershipCallable()
Overrides

updateMessageCallable()

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

updateSpaceCallable()

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

updateSpaceReadStateCallable()

public UnaryCallable<UpdateSpaceReadStateRequest,SpaceReadState> updateSpaceReadStateCallable()
Overrides

uploadAttachmentCallable()

public UnaryCallable<UploadAttachmentRequest,UploadAttachmentResponse> uploadAttachmentCallable()
Overrides