Class ConversationModelsSettings (4.6.0)

public class ConversationModelsSettings extends ClientSettings<ConversationModelsSettings>

Settings class to configure an instance of ConversationModelsClient.

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 getConversationModel to 30 seconds:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 ConversationModelsSettings.Builder conversationModelsSettingsBuilder =
     ConversationModelsSettings.newBuilder();
 conversationModelsSettingsBuilder
     .getConversationModelSettings()
     .setRetrySettings(
         conversationModelsSettingsBuilder
             .getConversationModelSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ConversationModelsSettings conversationModelsSettings =
     conversationModelsSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > ConversationModelsSettings

Static Methods

create(ConversationModelsStubSettings stub)

public static final ConversationModelsSettings create(ConversationModelsStubSettings stub)
Parameter
NameDescription
stubConversationModelsStubSettings
Returns
TypeDescription
ConversationModelsSettings
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 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 ConversationModelsSettings.Builder newBuilder()

Returns a new builder for this class.

Returns
TypeDescription
ConversationModelsSettings.Builder

newBuilder(ClientContext clientContext)

public static ConversationModelsSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
ConversationModelsSettings.Builder

Constructors

ConversationModelsSettings(ConversationModelsSettings.Builder settingsBuilder)

protected ConversationModelsSettings(ConversationModelsSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderConversationModelsSettings.Builder

Methods

createConversationModelEvaluationOperationSettings()

public OperationCallSettings<CreateConversationModelEvaluationRequest,ConversationModelEvaluation,CreateConversationModelEvaluationOperationMetadata> createConversationModelEvaluationOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateConversationModelEvaluationRequest,ConversationModelEvaluation,CreateConversationModelEvaluationOperationMetadata>

createConversationModelEvaluationSettings()

public UnaryCallSettings<CreateConversationModelEvaluationRequest,Operation> createConversationModelEvaluationSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateConversationModelEvaluationRequest,Operation>

createConversationModelOperationSettings()

public OperationCallSettings<CreateConversationModelRequest,ConversationModel,CreateConversationModelOperationMetadata> createConversationModelOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateConversationModelRequest,ConversationModel,CreateConversationModelOperationMetadata>

createConversationModelSettings()

public UnaryCallSettings<CreateConversationModelRequest,Operation> createConversationModelSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateConversationModelRequest,Operation>

deleteConversationModelOperationSettings()

public OperationCallSettings<DeleteConversationModelRequest,Empty,DeleteConversationModelOperationMetadata> deleteConversationModelOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteConversationModelRequest,Empty,DeleteConversationModelOperationMetadata>

deleteConversationModelSettings()

public UnaryCallSettings<DeleteConversationModelRequest,Operation> deleteConversationModelSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteConversationModelRequest,Operation>

deployConversationModelOperationSettings()

public OperationCallSettings<DeployConversationModelRequest,Empty,DeployConversationModelOperationMetadata> deployConversationModelOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeployConversationModelRequest,Empty,DeployConversationModelOperationMetadata>

deployConversationModelSettings()

public UnaryCallSettings<DeployConversationModelRequest,Operation> deployConversationModelSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeployConversationModelRequest,Operation>

getConversationModelEvaluationSettings()

public UnaryCallSettings<GetConversationModelEvaluationRequest,ConversationModelEvaluation> getConversationModelEvaluationSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetConversationModelEvaluationRequest,ConversationModelEvaluation>

getConversationModelSettings()

public UnaryCallSettings<GetConversationModelRequest,ConversationModel> getConversationModelSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetConversationModelRequest,ConversationModel>

listConversationModelEvaluationsSettings()

public PagedCallSettings<ListConversationModelEvaluationsRequest,ListConversationModelEvaluationsResponse,ConversationModelsClient.ListConversationModelEvaluationsPagedResponse> listConversationModelEvaluationsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListConversationModelEvaluationsRequest,ListConversationModelEvaluationsResponse,ListConversationModelEvaluationsPagedResponse>

listConversationModelsSettings()

public PagedCallSettings<ListConversationModelsRequest,ListConversationModelsResponse,ConversationModelsClient.ListConversationModelsPagedResponse> listConversationModelsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListConversationModelsRequest,ListConversationModelsResponse,ListConversationModelsPagedResponse>

toBuilder()

public ConversationModelsSettings.Builder toBuilder()

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

Returns
TypeDescription
ConversationModelsSettings.Builder
Overrides

undeployConversationModelOperationSettings()

public OperationCallSettings<UndeployConversationModelRequest,Empty,UndeployConversationModelOperationMetadata> undeployConversationModelOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UndeployConversationModelRequest,Empty,UndeployConversationModelOperationMetadata>

undeployConversationModelSettings()

public UnaryCallSettings<UndeployConversationModelRequest,Operation> undeployConversationModelSettings()

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

Returns
TypeDescription
UnaryCallSettings<UndeployConversationModelRequest,Operation>