Class ChatServiceSettings (0.3.0)

public class ChatServiceSettings extends ClientSettings<ChatServiceSettings>

Settings class to configure an instance of ChatServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (chat.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of createMessage to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ChatServiceSettings.Builder chatServiceSettingsBuilder = ChatServiceSettings.newBuilder();
 chatServiceSettingsBuilder
     .createMessageSettings()
     .setRetrySettings(
         chatServiceSettingsBuilder
             .createMessageSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ChatServiceSettings chatServiceSettings = chatServiceSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > ChatServiceSettings

Static Methods

create(ChatServiceStubSettings stub)

public static final ChatServiceSettings create(ChatServiceStubSettings stub)
Parameter
NameDescription
stubChatServiceStubSettings
Returns
TypeDescription
ChatServiceSettings
Exceptions
TypeDescription
IOException

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static ChatServiceSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
ChatServiceSettings.Builder

newBuilder(ClientContext clientContext)

public static ChatServiceSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
ChatServiceSettings.Builder

newHttpJsonBuilder()

public static ChatServiceSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
ChatServiceSettings.Builder

Constructors

ChatServiceSettings(ChatServiceSettings.Builder settingsBuilder)

protected ChatServiceSettings(ChatServiceSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderChatServiceSettings.Builder

Methods

completeImportSpaceSettings()

public UnaryCallSettings<CompleteImportSpaceRequest,CompleteImportSpaceResponse> completeImportSpaceSettings()

Returns the object with the settings used for calls to completeImportSpace.

Returns
TypeDescription
UnaryCallSettings<CompleteImportSpaceRequest,CompleteImportSpaceResponse>

createMembershipSettings()

public UnaryCallSettings<CreateMembershipRequest,Membership> createMembershipSettings()

Returns the object with the settings used for calls to createMembership.

Returns
TypeDescription
UnaryCallSettings<CreateMembershipRequest,Membership>

createMessageSettings()

public UnaryCallSettings<CreateMessageRequest,Message> createMessageSettings()

Returns the object with the settings used for calls to createMessage.

Returns
TypeDescription
UnaryCallSettings<CreateMessageRequest,Message>

createReactionSettings()

public UnaryCallSettings<CreateReactionRequest,Reaction> createReactionSettings()

Returns the object with the settings used for calls to createReaction.

Returns
TypeDescription
UnaryCallSettings<CreateReactionRequest,Reaction>

createSpaceSettings()

public UnaryCallSettings<CreateSpaceRequest,Space> createSpaceSettings()

Returns the object with the settings used for calls to createSpace.

Returns
TypeDescription
UnaryCallSettings<CreateSpaceRequest,Space>

deleteMembershipSettings()

public UnaryCallSettings<DeleteMembershipRequest,Membership> deleteMembershipSettings()

Returns the object with the settings used for calls to deleteMembership.

Returns
TypeDescription
UnaryCallSettings<DeleteMembershipRequest,Membership>

deleteMessageSettings()

public UnaryCallSettings<DeleteMessageRequest,Empty> deleteMessageSettings()

Returns the object with the settings used for calls to deleteMessage.

Returns
TypeDescription
UnaryCallSettings<DeleteMessageRequest,Empty>

deleteReactionSettings()

public UnaryCallSettings<DeleteReactionRequest,Empty> deleteReactionSettings()

Returns the object with the settings used for calls to deleteReaction.

Returns
TypeDescription
UnaryCallSettings<DeleteReactionRequest,Empty>

deleteSpaceSettings()

public UnaryCallSettings<DeleteSpaceRequest,Empty> deleteSpaceSettings()

Returns the object with the settings used for calls to deleteSpace.

Returns
TypeDescription
UnaryCallSettings<DeleteSpaceRequest,Empty>

findDirectMessageSettings()

public UnaryCallSettings<FindDirectMessageRequest,Space> findDirectMessageSettings()

Returns the object with the settings used for calls to findDirectMessage.

Returns
TypeDescription
UnaryCallSettings<FindDirectMessageRequest,Space>

getAttachmentSettings()

public UnaryCallSettings<GetAttachmentRequest,Attachment> getAttachmentSettings()

Returns the object with the settings used for calls to getAttachment.

Returns
TypeDescription
UnaryCallSettings<GetAttachmentRequest,Attachment>

getMembershipSettings()

public UnaryCallSettings<GetMembershipRequest,Membership> getMembershipSettings()

Returns the object with the settings used for calls to getMembership.

Returns
TypeDescription
UnaryCallSettings<GetMembershipRequest,Membership>

getMessageSettings()

public UnaryCallSettings<GetMessageRequest,Message> getMessageSettings()

Returns the object with the settings used for calls to getMessage.

Returns
TypeDescription
UnaryCallSettings<GetMessageRequest,Message>

getSpaceSettings()

public UnaryCallSettings<GetSpaceRequest,Space> getSpaceSettings()

Returns the object with the settings used for calls to getSpace.

Returns
TypeDescription
UnaryCallSettings<GetSpaceRequest,Space>

listMembershipsSettings()

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

Returns the object with the settings used for calls to listMemberships.

Returns
TypeDescription
PagedCallSettings<ListMembershipsRequest,ListMembershipsResponse,ListMembershipsPagedResponse>

listMessagesSettings()

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

Returns the object with the settings used for calls to listMessages.

Returns
TypeDescription
PagedCallSettings<ListMessagesRequest,ListMessagesResponse,ListMessagesPagedResponse>

listReactionsSettings()

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

Returns the object with the settings used for calls to listReactions.

Returns
TypeDescription
PagedCallSettings<ListReactionsRequest,ListReactionsResponse,ListReactionsPagedResponse>

listSpacesSettings()

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

Returns the object with the settings used for calls to listSpaces.

Returns
TypeDescription
PagedCallSettings<ListSpacesRequest,ListSpacesResponse,ListSpacesPagedResponse>

setUpSpaceSettings()

public UnaryCallSettings<SetUpSpaceRequest,Space> setUpSpaceSettings()

Returns the object with the settings used for calls to setUpSpace.

Returns
TypeDescription
UnaryCallSettings<SetUpSpaceRequest,Space>

toBuilder()

public ChatServiceSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
TypeDescription
ChatServiceSettings.Builder
Overrides

updateMessageSettings()

public UnaryCallSettings<UpdateMessageRequest,Message> updateMessageSettings()

Returns the object with the settings used for calls to updateMessage.

Returns
TypeDescription
UnaryCallSettings<UpdateMessageRequest,Message>

updateSpaceSettings()

public UnaryCallSettings<UpdateSpaceRequest,Space> updateSpaceSettings()

Returns the object with the settings used for calls to updateSpace.

Returns
TypeDescription
UnaryCallSettings<UpdateSpaceRequest,Space>

uploadAttachmentSettings()

public UnaryCallSettings<UploadAttachmentRequest,UploadAttachmentResponse> uploadAttachmentSettings()

Returns the object with the settings used for calls to uploadAttachment.

Returns
TypeDescription
UnaryCallSettings<UploadAttachmentRequest,UploadAttachmentResponse>