Class ChatServiceStubSettings.Builder (0.5.0)

public static class ChatServiceStubSettings.Builder extends StubSettings.Builder<ChatServiceStubSettings,ChatServiceStubSettings.Builder>

Builder for ChatServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ChatServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ChatServiceStubSettings settings)

protected Builder(ChatServiceStubSettings settings)
Parameter
NameDescription
settingsChatServiceStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public ChatServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
ChatServiceStubSettings.Builder

build()

public ChatServiceStubSettings build()
Returns
TypeDescription
ChatServiceStubSettings
Overrides
Exceptions
TypeDescription
IOException

completeImportSpaceSettings()

public UnaryCallSettings.Builder<CompleteImportSpaceRequest,CompleteImportSpaceResponse> completeImportSpaceSettings()

Returns the builder for the settings used for calls to completeImportSpace.

Returns
TypeDescription
Builder<CompleteImportSpaceRequest,CompleteImportSpaceResponse>

createMembershipSettings()

public UnaryCallSettings.Builder<CreateMembershipRequest,Membership> createMembershipSettings()

Returns the builder for the settings used for calls to createMembership.

Returns
TypeDescription
Builder<CreateMembershipRequest,Membership>

createMessageSettings()

public UnaryCallSettings.Builder<CreateMessageRequest,Message> createMessageSettings()

Returns the builder for the settings used for calls to createMessage.

Returns
TypeDescription
Builder<CreateMessageRequest,Message>

createReactionSettings()

public UnaryCallSettings.Builder<CreateReactionRequest,Reaction> createReactionSettings()

Returns the builder for the settings used for calls to createReaction.

Returns
TypeDescription
Builder<CreateReactionRequest,Reaction>

createSpaceSettings()

public UnaryCallSettings.Builder<CreateSpaceRequest,Space> createSpaceSettings()

Returns the builder for the settings used for calls to createSpace.

Returns
TypeDescription
Builder<CreateSpaceRequest,Space>

deleteMembershipSettings()

public UnaryCallSettings.Builder<DeleteMembershipRequest,Membership> deleteMembershipSettings()

Returns the builder for the settings used for calls to deleteMembership.

Returns
TypeDescription
Builder<DeleteMembershipRequest,Membership>

deleteMessageSettings()

public UnaryCallSettings.Builder<DeleteMessageRequest,Empty> deleteMessageSettings()

Returns the builder for the settings used for calls to deleteMessage.

Returns
TypeDescription
Builder<DeleteMessageRequest,Empty>

deleteReactionSettings()

public UnaryCallSettings.Builder<DeleteReactionRequest,Empty> deleteReactionSettings()

Returns the builder for the settings used for calls to deleteReaction.

Returns
TypeDescription
Builder<DeleteReactionRequest,Empty>

deleteSpaceSettings()

public UnaryCallSettings.Builder<DeleteSpaceRequest,Empty> deleteSpaceSettings()

Returns the builder for the settings used for calls to deleteSpace.

Returns
TypeDescription
Builder<DeleteSpaceRequest,Empty>

findDirectMessageSettings()

public UnaryCallSettings.Builder<FindDirectMessageRequest,Space> findDirectMessageSettings()

Returns the builder for the settings used for calls to findDirectMessage.

Returns
TypeDescription
Builder<FindDirectMessageRequest,Space>

getAttachmentSettings()

public UnaryCallSettings.Builder<GetAttachmentRequest,Attachment> getAttachmentSettings()

Returns the builder for the settings used for calls to getAttachment.

Returns
TypeDescription
Builder<GetAttachmentRequest,Attachment>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getMembershipSettings()

public UnaryCallSettings.Builder<GetMembershipRequest,Membership> getMembershipSettings()

Returns the builder for the settings used for calls to getMembership.

Returns
TypeDescription
Builder<GetMembershipRequest,Membership>

getMessageSettings()

public UnaryCallSettings.Builder<GetMessageRequest,Message> getMessageSettings()

Returns the builder for the settings used for calls to getMessage.

Returns
TypeDescription
Builder<GetMessageRequest,Message>

getSpaceSettings()

public UnaryCallSettings.Builder<GetSpaceRequest,Space> getSpaceSettings()

Returns the builder for the settings used for calls to getSpace.

Returns
TypeDescription
Builder<GetSpaceRequest,Space>

listMembershipsSettings()

public PagedCallSettings.Builder<ListMembershipsRequest,ListMembershipsResponse,ChatServiceClient.ListMembershipsPagedResponse> listMembershipsSettings()

Returns the builder for the settings used for calls to listMemberships.

Returns
TypeDescription
Builder<ListMembershipsRequest,ListMembershipsResponse,ListMembershipsPagedResponse>

listMessagesSettings()

public PagedCallSettings.Builder<ListMessagesRequest,ListMessagesResponse,ChatServiceClient.ListMessagesPagedResponse> listMessagesSettings()

Returns the builder for the settings used for calls to listMessages.

Returns
TypeDescription
Builder<ListMessagesRequest,ListMessagesResponse,ListMessagesPagedResponse>

listReactionsSettings()

public PagedCallSettings.Builder<ListReactionsRequest,ListReactionsResponse,ChatServiceClient.ListReactionsPagedResponse> listReactionsSettings()

Returns the builder for the settings used for calls to listReactions.

Returns
TypeDescription
Builder<ListReactionsRequest,ListReactionsResponse,ListReactionsPagedResponse>

listSpacesSettings()

public PagedCallSettings.Builder<ListSpacesRequest,ListSpacesResponse,ChatServiceClient.ListSpacesPagedResponse> listSpacesSettings()

Returns the builder for the settings used for calls to listSpaces.

Returns
TypeDescription
Builder<ListSpacesRequest,ListSpacesResponse,ListSpacesPagedResponse>

setUpSpaceSettings()

public UnaryCallSettings.Builder<SetUpSpaceRequest,Space> setUpSpaceSettings()

Returns the builder for the settings used for calls to setUpSpace.

Returns
TypeDescription
Builder<SetUpSpaceRequest,Space>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateMessageSettings()

public UnaryCallSettings.Builder<UpdateMessageRequest,Message> updateMessageSettings()

Returns the builder for the settings used for calls to updateMessage.

Returns
TypeDescription
Builder<UpdateMessageRequest,Message>

updateSpaceSettings()

public UnaryCallSettings.Builder<UpdateSpaceRequest,Space> updateSpaceSettings()

Returns the builder for the settings used for calls to updateSpace.

Returns
TypeDescription
Builder<UpdateSpaceRequest,Space>

uploadAttachmentSettings()

public UnaryCallSettings.Builder<UploadAttachmentRequest,UploadAttachmentResponse> uploadAttachmentSettings()

Returns the builder for the settings used for calls to uploadAttachment.

Returns
TypeDescription
Builder<UploadAttachmentRequest,UploadAttachmentResponse>