Class HttpJsonChatServiceStub (0.11.0)

publicclass HttpJsonChatServiceStubextendsChatServiceStub

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

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonChatServiceStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonChatServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonChatServiceStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonChatServiceStub
Exceptions
Type Description
IOException

create(ChatServiceStubSettings settings)

publicstaticfinalHttpJsonChatServiceStubcreate(ChatServiceStubSettingssettings)
Parameter
Name Description
settings ChatServiceStubSettings
Returns
Type Description
HttpJsonChatServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext)

protectedHttpJsonChatServiceStub(ChatServiceStubSettingssettings,ClientContextclientContext)

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
Name Description
settings ChatServiceStubSettings
clientContext ClientContext

HttpJsonChatServiceStub(ChatServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonChatServiceStub(ChatServiceStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

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
Name Description
settings ChatServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

completeImportSpaceCallable()

publicUnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse>completeImportSpaceCallable()
Returns
Type Description
UnaryCallable<CompleteImportSpaceRequest,CompleteImportSpaceResponse>
Overrides

createMembershipCallable()

publicUnaryCallable<CreateMembershipRequest,Membership>createMembershipCallable()
Returns
Type Description
UnaryCallable<CreateMembershipRequest,Membership>
Overrides

createMessageCallable()

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

createReactionCallable()

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

createSpaceCallable()

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

deleteMembershipCallable()

publicUnaryCallable<DeleteMembershipRequest,Membership>deleteMembershipCallable()
Returns
Type Description
UnaryCallable<DeleteMembershipRequest,Membership>
Overrides

deleteMessageCallable()

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

deleteReactionCallable()

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

deleteSpaceCallable()

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

findDirectMessageCallable()

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

getAttachmentCallable()

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

getMembershipCallable()

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

getMessageCallable()

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

getSpaceCallable()

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

getSpaceEventCallable()

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

getSpaceReadStateCallable()

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

getThreadReadStateCallable()

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

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listMembershipsCallable()

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

listMembershipsPagedCallable()

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

listMessagesCallable()

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

listMessagesPagedCallable()

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

listReactionsCallable()

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

listReactionsPagedCallable()

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

listSpaceEventsCallable()

publicUnaryCallable<ListSpaceEventsRequest,ListSpaceEventsResponse>listSpaceEventsCallable()
Returns
Type Description
UnaryCallable<ListSpaceEventsRequest,ListSpaceEventsResponse>
Overrides

listSpaceEventsPagedCallable()

publicUnaryCallable<ListSpaceEventsRequest,ChatServiceClient.ListSpaceEventsPagedResponse>listSpaceEventsPagedCallable()
Returns
Type Description
UnaryCallable<ListSpaceEventsRequest,ListSpaceEventsPagedResponse>
Overrides

listSpacesCallable()

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

listSpacesPagedCallable()

publicUnaryCallable<ListSpacesRequest,ChatServiceClient.ListSpacesPagedResponse>listSpacesPagedCallable()
Returns
Type Description
UnaryCallable<ListSpacesRequest,ListSpacesPagedResponse>
Overrides

setUpSpaceCallable()

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

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateMembershipCallable()

publicUnaryCallable<UpdateMembershipRequest,Membership>updateMembershipCallable()
Returns
Type Description
UnaryCallable<UpdateMembershipRequest,Membership>
Overrides

updateMessageCallable()

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

updateSpaceCallable()

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

updateSpaceReadStateCallable()

publicUnaryCallable<UpdateSpaceReadStateRequest,SpaceReadState>updateSpaceReadStateCallable()
Returns
Type Description
UnaryCallable<UpdateSpaceReadStateRequest,SpaceReadState>
Overrides

uploadAttachmentCallable()

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.