Class ConversationsStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<ConversationsStubSettings>
-
- com.google.cloud.dialogflow.v2beta1.stub.ConversationsStubSettings
-
@BetaApi @Generated("by gapic-generator-java") public class ConversationsStubSettings extends com.google.api.gax.rpc.StubSettings<ConversationsStubSettings>
Settings class to configure an instance ofConversationsStub
.The default instance has everything set to sensible defaults:
- The default service address (dialogflow.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 createConversation 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 ConversationsStubSettings.Builder conversationsSettingsBuilder = ConversationsStubSettings.newBuilder(); conversationsSettingsBuilder .createConversationSettings() .setRetrySettings( conversationsSettingsBuilder .createConversationSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ConversationsStubSettings conversationsSettings = conversationsSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConversationsStubSettings.Builder
Builder for ConversationsStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConversationsStubSettings(ConversationsStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<BatchCreateMessagesRequest,BatchCreateMessagesResponse>
batchCreateMessagesSettings()
Returns the object with the settings used for calls to batchCreateMessages.com.google.api.gax.rpc.UnaryCallSettings<CompleteConversationRequest,Conversation>
completeConversationSettings()
Returns the object with the settings used for calls to completeConversation.com.google.api.gax.rpc.UnaryCallSettings<CreateConversationRequest,Conversation>
createConversationSettings()
Returns the object with the settings used for calls to createConversation.ConversationsStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultGrpcApiClientHeaderProviderBuilder()
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultHttpJsonApiClientHeaderProviderBuilder()
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse>
generateStatelessSummarySettings()
Returns the object with the settings used for calls to generateStatelessSummary.com.google.api.gax.rpc.UnaryCallSettings<GetConversationRequest,Conversation>
getConversationSettings()
Returns the object with the settings used for calls to getConversation.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the object with the settings used for calls to getLocation.com.google.api.gax.rpc.PagedCallSettings<ListConversationsRequest,ListConversationsResponse,ConversationsClient.ListConversationsPagedResponse>
listConversationsSettings()
Returns the object with the settings used for calls to listConversations.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ConversationsClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings<ListMessagesRequest,ListMessagesResponse,ConversationsClient.ListMessagesPagedResponse>
listMessagesSettings()
Returns the object with the settings used for calls to listMessages.static ConversationsStubSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static ConversationsStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static ConversationsStubSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<SearchKnowledgeRequest,SearchKnowledgeResponse>
searchKnowledgeSettings()
Returns the object with the settings used for calls to searchKnowledge.com.google.api.gax.rpc.UnaryCallSettings<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse>
suggestConversationSummarySettings()
Returns the object with the settings used for calls to suggestConversationSummary.ConversationsStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
ConversationsStubSettings
protected ConversationsStubSettings(ConversationsStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createConversationSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateConversationRequest,Conversation> createConversationSettings()
Returns the object with the settings used for calls to createConversation.
-
listConversationsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListConversationsRequest,ListConversationsResponse,ConversationsClient.ListConversationsPagedResponse> listConversationsSettings()
Returns the object with the settings used for calls to listConversations.
-
getConversationSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetConversationRequest,Conversation> getConversationSettings()
Returns the object with the settings used for calls to getConversation.
-
completeConversationSettings
public com.google.api.gax.rpc.UnaryCallSettings<CompleteConversationRequest,Conversation> completeConversationSettings()
Returns the object with the settings used for calls to completeConversation.
-
batchCreateMessagesSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchCreateMessagesRequest,BatchCreateMessagesResponse> batchCreateMessagesSettings()
Returns the object with the settings used for calls to batchCreateMessages.
-
listMessagesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListMessagesRequest,ListMessagesResponse,ConversationsClient.ListMessagesPagedResponse> listMessagesSettings()
Returns the object with the settings used for calls to listMessages.
-
suggestConversationSummarySettings
public com.google.api.gax.rpc.UnaryCallSettings<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse> suggestConversationSummarySettings()
Returns the object with the settings used for calls to suggestConversationSummary.
-
generateStatelessSummarySettings
public com.google.api.gax.rpc.UnaryCallSettings<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse> generateStatelessSummarySettings()
Returns the object with the settings used for calls to generateStatelessSummary.
-
searchKnowledgeSettings
public com.google.api.gax.rpc.UnaryCallSettings<SearchKnowledgeRequest,SearchKnowledgeResponse> searchKnowledgeSettings()
Returns the object with the settings used for calls to searchKnowledge.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ConversationsClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
-
createStub
public ConversationsStub createStub() throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
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.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultGrpcApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
-
defaultHttpJsonApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
-
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static ConversationsStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
public static ConversationsStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static ConversationsStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public ConversationsStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<ConversationsStubSettings>
-
-