Class GrpcChatServiceStub (0.4.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcChatServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcChatServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcChatServiceStub
Exceptions
TypeDescription
IOException

create(ChatServiceStubSettings settings)

public static final GrpcChatServiceStub create(ChatServiceStubSettings settings)
Parameter
NameDescription
settingsChatServiceStubSettings
Returns
TypeDescription
GrpcChatServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsChatServiceStubSettings
clientContextClientContext

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
NameDescription
settingsChatServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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