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.
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()
completeImportSpaceCallable()
public UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse> completeImportSpaceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse> |
createMembershipCallable()
public UnaryCallable<CreateMembershipRequest,Membership> createMembershipCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateMembershipRequest,Membership> |
createMessageCallable()
public UnaryCallable<CreateMessageRequest,Message> createMessageCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateMessageRequest,Message> |
createReactionCallable()
public UnaryCallable<CreateReactionRequest,Reaction> createReactionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateReactionRequest,Reaction> |
createSpaceCallable()
public UnaryCallable<CreateSpaceRequest,Space> createSpaceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSpaceRequest,Space> |
deleteMembershipCallable()
public UnaryCallable<DeleteMembershipRequest,Membership> deleteMembershipCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteMembershipRequest,Membership> |
deleteMessageCallable()
public UnaryCallable<DeleteMessageRequest,Empty> deleteMessageCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteMessageRequest,Empty> |
deleteReactionCallable()
public UnaryCallable<DeleteReactionRequest,Empty> deleteReactionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteReactionRequest,Empty> |
deleteSpaceCallable()
public UnaryCallable<DeleteSpaceRequest,Empty> deleteSpaceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSpaceRequest,Empty> |
findDirectMessageCallable()
public UnaryCallable<FindDirectMessageRequest,Space> findDirectMessageCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<FindDirectMessageRequest,Space> |
getAttachmentCallable()
public UnaryCallable<GetAttachmentRequest,Attachment> getAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetAttachmentRequest,Attachment> |
getMembershipCallable()
public UnaryCallable<GetMembershipRequest,Membership> getMembershipCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetMembershipRequest,Membership> |
getMessageCallable()
public UnaryCallable<GetMessageRequest,Message> getMessageCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetMessageRequest,Message> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
getSpaceCallable()
public UnaryCallable<GetSpaceRequest,Space> getSpaceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSpaceRequest,Space> |
getSpaceEventCallable()
public UnaryCallable<GetSpaceEventRequest,SpaceEvent> getSpaceEventCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSpaceEventRequest,SpaceEvent> |
getSpaceReadStateCallable()
public UnaryCallable<GetSpaceReadStateRequest,SpaceReadState> getSpaceReadStateCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSpaceReadStateRequest,SpaceReadState> |
getThreadReadStateCallable()
public UnaryCallable<GetThreadReadStateRequest,ThreadReadState> getThreadReadStateCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetThreadReadStateRequest,ThreadReadState> |
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> |
listMembershipsPagedCallable()
public UnaryCallable<ListMembershipsRequest,ChatServiceClient.ListMembershipsPagedResponse> listMembershipsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListMembershipsRequest,ListMembershipsPagedResponse> |
listMessagesCallable()
public UnaryCallable<ListMessagesRequest,ListMessagesResponse> listMessagesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListMessagesRequest,ListMessagesResponse> |
listMessagesPagedCallable()
public UnaryCallable<ListMessagesRequest,ChatServiceClient.ListMessagesPagedResponse> listMessagesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListMessagesRequest,ListMessagesPagedResponse> |
listReactionsCallable()
public UnaryCallable<ListReactionsRequest,ListReactionsResponse> listReactionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReactionsRequest,ListReactionsResponse> |
listReactionsPagedCallable()
public UnaryCallable<ListReactionsRequest,ChatServiceClient.ListReactionsPagedResponse> listReactionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReactionsRequest,ListReactionsPagedResponse> |
listSpaceEventsCallable()
public UnaryCallable<ListSpaceEventsRequest,ListSpaceEventsResponse> listSpaceEventsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSpaceEventsRequest,ListSpaceEventsResponse> |
listSpaceEventsPagedCallable()
public UnaryCallable<ListSpaceEventsRequest,ChatServiceClient.ListSpaceEventsPagedResponse> listSpaceEventsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSpaceEventsRequest,ListSpaceEventsPagedResponse> |
listSpacesCallable()
public UnaryCallable<ListSpacesRequest,ListSpacesResponse> listSpacesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSpacesRequest,ListSpacesResponse> |
listSpacesPagedCallable()
public UnaryCallable<ListSpacesRequest,ChatServiceClient.ListSpacesPagedResponse> listSpacesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSpacesRequest,ListSpacesPagedResponse> |
searchSpacesCallable()
public UnaryCallable<SearchSpacesRequest,SearchSpacesResponse> searchSpacesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SearchSpacesRequest,SearchSpacesResponse> |
searchSpacesPagedCallable()
public UnaryCallable<SearchSpacesRequest,ChatServiceClient.SearchSpacesPagedResponse> searchSpacesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SearchSpacesRequest,SearchSpacesPagedResponse> |
setUpSpaceCallable()
public UnaryCallable<SetUpSpaceRequest,Space> setUpSpaceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SetUpSpaceRequest,Space> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateMembershipCallable()
public UnaryCallable<UpdateMembershipRequest,Membership> updateMembershipCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateMembershipRequest,Membership> |
updateMessageCallable()
public UnaryCallable<UpdateMessageRequest,Message> updateMessageCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateMessageRequest,Message> |
updateSpaceCallable()
public UnaryCallable<UpdateSpaceRequest,Space> updateSpaceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSpaceRequest,Space> |
updateSpaceReadStateCallable()
public UnaryCallable<UpdateSpaceReadStateRequest,SpaceReadState> updateSpaceReadStateCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSpaceReadStateRequest,SpaceReadState> |
uploadAttachmentCallable()
public UnaryCallable<UploadAttachmentRequest,UploadAttachmentResponse> uploadAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UploadAttachmentRequest,UploadAttachmentResponse> |