public class ChatServiceStubSettings extends StubSettings<ChatServiceStubSettings>
Settings class to configure an instance of ChatServiceStub .
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
ChatServiceStubSettings.Builder chatServiceSettingsBuilder =
ChatServiceStubSettings.newBuilder();
chatServiceSettingsBuilder
.createMessageSettings()
.setRetrySettings(
chatServiceSettingsBuilder
.createMessageSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ChatServiceStubSettings chatServiceSettings = chatServiceSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
public static ChatServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static ChatServiceStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static ChatServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
ChatServiceStubSettings(ChatServiceStubSettings.Builder settingsBuilder)
protected ChatServiceStubSettings(ChatServiceStubSettings.Builder settingsBuilder)
Methods
completeImportSpaceSettings()
public UnaryCallSettings<CompleteImportSpaceRequest,CompleteImportSpaceResponse> completeImportSpaceSettings()
Returns the object with the settings used for calls to completeImportSpace.
createMembershipSettings()
public UnaryCallSettings<CreateMembershipRequest,Membership> createMembershipSettings()
Returns the object with the settings used for calls to createMembership.
createMessageSettings()
public UnaryCallSettings<CreateMessageRequest,Message> createMessageSettings()
Returns the object with the settings used for calls to createMessage.
createReactionSettings()
public UnaryCallSettings<CreateReactionRequest,Reaction> createReactionSettings()
Returns the object with the settings used for calls to createReaction.
createSpaceSettings()
public UnaryCallSettings<CreateSpaceRequest,Space> createSpaceSettings()
Returns the object with the settings used for calls to createSpace.
createStub()
public ChatServiceStub createStub()
deleteMembershipSettings()
public UnaryCallSettings<DeleteMembershipRequest,Membership> deleteMembershipSettings()
Returns the object with the settings used for calls to deleteMembership.
deleteMessageSettings()
public UnaryCallSettings<DeleteMessageRequest,Empty> deleteMessageSettings()
Returns the object with the settings used for calls to deleteMessage.
deleteReactionSettings()
public UnaryCallSettings<DeleteReactionRequest,Empty> deleteReactionSettings()
Returns the object with the settings used for calls to deleteReaction.
deleteSpaceSettings()
public UnaryCallSettings<DeleteSpaceRequest,Empty> deleteSpaceSettings()
Returns the object with the settings used for calls to deleteSpace.
findDirectMessageSettings()
public UnaryCallSettings<FindDirectMessageRequest,Space> findDirectMessageSettings()
Returns the object with the settings used for calls to findDirectMessage.
getAttachmentSettings()
public UnaryCallSettings<GetAttachmentRequest,Attachment> getAttachmentSettings()
Returns the object with the settings used for calls to getAttachment.
getEndpoint()
public String getEndpoint()
Returns the endpoint set by the user or the the service's default endpoint.
Overrides
getMembershipSettings()
public UnaryCallSettings<GetMembershipRequest,Membership> getMembershipSettings()
Returns the object with the settings used for calls to getMembership.
getMessageSettings()
public UnaryCallSettings<GetMessageRequest,Message> getMessageSettings()
Returns the object with the settings used for calls to getMessage.
getServiceName()
public String getServiceName()
Returns the default service name.
Overrides
getSpaceSettings()
public UnaryCallSettings<GetSpaceRequest,Space> getSpaceSettings()
Returns the object with the settings used for calls to getSpace.
listMembershipsSettings()
public PagedCallSettings<ListMembershipsRequest,ListMembershipsResponse,ChatServiceClient.ListMembershipsPagedResponse> listMembershipsSettings()
Returns the object with the settings used for calls to listMemberships.
listMessagesSettings()
public PagedCallSettings<ListMessagesRequest,ListMessagesResponse,ChatServiceClient.ListMessagesPagedResponse> listMessagesSettings()
Returns the object with the settings used for calls to listMessages.
listReactionsSettings()
public PagedCallSettings<ListReactionsRequest,ListReactionsResponse,ChatServiceClient.ListReactionsPagedResponse> listReactionsSettings()
Returns the object with the settings used for calls to listReactions.
listSpacesSettings()
public PagedCallSettings<ListSpacesRequest,ListSpacesResponse,ChatServiceClient.ListSpacesPagedResponse> listSpacesSettings()
Returns the object with the settings used for calls to listSpaces.
setUpSpaceSettings()
public UnaryCallSettings<SetUpSpaceRequest,Space> setUpSpaceSettings()
Returns the object with the settings used for calls to setUpSpace.
toBuilder()
public ChatServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateMessageSettings()
public UnaryCallSettings<UpdateMessageRequest,Message> updateMessageSettings()
Returns the object with the settings used for calls to updateMessage.
updateSpaceSettings()
public UnaryCallSettings<UpdateSpaceRequest,Space> updateSpaceSettings()
Returns the object with the settings used for calls to updateSpace.
uploadAttachmentSettings()
public UnaryCallSettings<UploadAttachmentRequest,UploadAttachmentResponse> uploadAttachmentSettings()
Returns the object with the settings used for calls to uploadAttachment.