Class GrpcChatServiceStub (0.9.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()
Returns
Type Description
UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse>
Overrides

createMembershipCallable()

public UnaryCallable<CreateMembershipRequest,Membership> createMembershipCallable()
Returns
Type Description
UnaryCallable<CreateMembershipRequest,Membership>
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()
Returns
Type Description
UnaryCallable<DeleteMembershipRequest,Membership>
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

getSpaceReadStateCallable()

public UnaryCallable<GetSpaceReadStateRequest,SpaceReadState> getSpaceReadStateCallable()
Returns
Type Description
UnaryCallable<GetSpaceReadStateRequest,SpaceReadState>
Overrides

getThreadReadStateCallable()

public UnaryCallable<GetThreadReadStateRequest,ThreadReadState> getThreadReadStateCallable()
Returns
Type Description
UnaryCallable<GetThreadReadStateRequest,ThreadReadState>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listMembershipsCallable()

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

listMembershipsPagedCallable()

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

listMessagesCallable()

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

listMessagesPagedCallable()

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

listReactionsCallable()

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

listReactionsPagedCallable()

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

listSpacesCallable()

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

listSpacesPagedCallable()

public UnaryCallable<ListSpacesRequest,ChatServiceClient.ListSpacesPagedResponse> listSpacesPagedCallable()
Returns
Type Description
UnaryCallable<ListSpacesRequest,ListSpacesPagedResponse>
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()
Returns
Type Description
UnaryCallable<UpdateMembershipRequest,Membership>
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()
Returns
Type Description
UnaryCallable<UpdateSpaceReadStateRequest,SpaceReadState>
Overrides

uploadAttachmentCallable()

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