Class ChatServiceStubSettings (0.4.0)

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();
 

Inheritance

java.lang.Object > StubSettings > ChatServiceStubSettings

Static Methods

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

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

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

Returns
TypeDescription
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
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

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static ChatServiceStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
ChatServiceStubSettings.Builder

newBuilder(ClientContext clientContext)

public static ChatServiceStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
ChatServiceStubSettings.Builder

newHttpJsonBuilder()

public static ChatServiceStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
ChatServiceStubSettings.Builder

Constructors

ChatServiceStubSettings(ChatServiceStubSettings.Builder settingsBuilder)

protected ChatServiceStubSettings(ChatServiceStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderChatServiceStubSettings.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>

createStub()

public ChatServiceStub createStub()
Returns
TypeDescription
ChatServiceStub
Exceptions
TypeDescription
IOException

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>

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<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>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
TypeDescription
String
Overrides

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 ChatServiceStubSettings.Builder toBuilder()

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

Returns
TypeDescription
ChatServiceStubSettings.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>