Class EnvironmentsSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<EnvironmentsSettings>
-
- com.google.cloud.dialogflow.cx.v3.EnvironmentsSettings
-
@Generated("by gapic-generator-java") public class EnvironmentsSettings extends com.google.api.gax.rpc.ClientSettings<EnvironmentsSettings>
Settings class to configure an instance ofEnvironmentsClient
.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 getEnvironment 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 EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder(); environmentsSettingsBuilder .getEnvironmentSettings() .setRetrySettings( environmentsSettingsBuilder .getEnvironmentSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); EnvironmentsSettings environmentsSettings = environmentsSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnvironmentsSettings.Builder
Builder for EnvironmentsSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
EnvironmentsSettings(EnvironmentsSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvironmentsSettings
create(EnvironmentsStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateEnvironmentRequest,Environment,com.google.protobuf.Struct>
createEnvironmentOperationSettings()
Returns the object with the settings used for calls to createEnvironment.com.google.api.gax.rpc.UnaryCallSettings<CreateEnvironmentRequest,com.google.longrunning.Operation>
createEnvironmentSettings()
Returns the object with the settings used for calls to createEnvironment.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.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.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<DeleteEnvironmentRequest,com.google.protobuf.Empty>
deleteEnvironmentSettings()
Returns the object with the settings used for calls to deleteEnvironment.com.google.api.gax.rpc.OperationCallSettings<DeployFlowRequest,DeployFlowResponse,DeployFlowMetadata>
deployFlowOperationSettings()
Returns the object with the settings used for calls to deployFlow.com.google.api.gax.rpc.UnaryCallSettings<DeployFlowRequest,com.google.longrunning.Operation>
deployFlowSettings()
Returns the object with the settings used for calls to deployFlow.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetEnvironmentRequest,Environment>
getEnvironmentSettings()
Returns the object with the settings used for calls to getEnvironment.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<ListContinuousTestResultsRequest,ListContinuousTestResultsResponse,EnvironmentsClient.ListContinuousTestResultsPagedResponse>
listContinuousTestResultsSettings()
Returns the object with the settings used for calls to listContinuousTestResults.com.google.api.gax.rpc.PagedCallSettings<ListEnvironmentsRequest,ListEnvironmentsResponse,EnvironmentsClient.ListEnvironmentsPagedResponse>
listEnvironmentsSettings()
Returns the object with the settings used for calls to listEnvironments.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EnvironmentsClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings<LookupEnvironmentHistoryRequest,LookupEnvironmentHistoryResponse,EnvironmentsClient.LookupEnvironmentHistoryPagedResponse>
lookupEnvironmentHistorySettings()
Returns the object with the settings used for calls to lookupEnvironmentHistory.static EnvironmentsSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static EnvironmentsSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static EnvironmentsSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.OperationCallSettings<RunContinuousTestRequest,RunContinuousTestResponse,RunContinuousTestMetadata>
runContinuousTestOperationSettings()
Returns the object with the settings used for calls to runContinuousTest.com.google.api.gax.rpc.UnaryCallSettings<RunContinuousTestRequest,com.google.longrunning.Operation>
runContinuousTestSettings()
Returns the object with the settings used for calls to runContinuousTest.EnvironmentsSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateEnvironmentRequest,Environment,com.google.protobuf.Struct>
updateEnvironmentOperationSettings()
Returns the object with the settings used for calls to updateEnvironment.com.google.api.gax.rpc.UnaryCallSettings<UpdateEnvironmentRequest,com.google.longrunning.Operation>
updateEnvironmentSettings()
Returns the object with the settings used for calls to updateEnvironment.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
EnvironmentsSettings
protected EnvironmentsSettings(EnvironmentsSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listEnvironmentsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListEnvironmentsRequest,ListEnvironmentsResponse,EnvironmentsClient.ListEnvironmentsPagedResponse> listEnvironmentsSettings()
Returns the object with the settings used for calls to listEnvironments.
-
getEnvironmentSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetEnvironmentRequest,Environment> getEnvironmentSettings()
Returns the object with the settings used for calls to getEnvironment.
-
createEnvironmentSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateEnvironmentRequest,com.google.longrunning.Operation> createEnvironmentSettings()
Returns the object with the settings used for calls to createEnvironment.
-
createEnvironmentOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateEnvironmentRequest,Environment,com.google.protobuf.Struct> createEnvironmentOperationSettings()
Returns the object with the settings used for calls to createEnvironment.
-
updateEnvironmentSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateEnvironmentRequest,com.google.longrunning.Operation> updateEnvironmentSettings()
Returns the object with the settings used for calls to updateEnvironment.
-
updateEnvironmentOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateEnvironmentRequest,Environment,com.google.protobuf.Struct> updateEnvironmentOperationSettings()
Returns the object with the settings used for calls to updateEnvironment.
-
deleteEnvironmentSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteEnvironmentRequest,com.google.protobuf.Empty> deleteEnvironmentSettings()
Returns the object with the settings used for calls to deleteEnvironment.
-
lookupEnvironmentHistorySettings
public com.google.api.gax.rpc.PagedCallSettings<LookupEnvironmentHistoryRequest,LookupEnvironmentHistoryResponse,EnvironmentsClient.LookupEnvironmentHistoryPagedResponse> lookupEnvironmentHistorySettings()
Returns the object with the settings used for calls to lookupEnvironmentHistory.
-
runContinuousTestSettings
public com.google.api.gax.rpc.UnaryCallSettings<RunContinuousTestRequest,com.google.longrunning.Operation> runContinuousTestSettings()
Returns the object with the settings used for calls to runContinuousTest.
-
runContinuousTestOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<RunContinuousTestRequest,RunContinuousTestResponse,RunContinuousTestMetadata> runContinuousTestOperationSettings()
Returns the object with the settings used for calls to runContinuousTest.
-
listContinuousTestResultsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListContinuousTestResultsRequest,ListContinuousTestResultsResponse,EnvironmentsClient.ListContinuousTestResultsPagedResponse> listContinuousTestResultsSettings()
Returns the object with the settings used for calls to listContinuousTestResults.
-
deployFlowSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeployFlowRequest,com.google.longrunning.Operation> deployFlowSettings()
Returns the object with the settings used for calls to deployFlow.
-
deployFlowOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeployFlowRequest,DeployFlowResponse,DeployFlowMetadata> deployFlowOperationSettings()
Returns the object with the settings used for calls to deployFlow.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EnvironmentsClient.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.
-
create
public static final EnvironmentsSettings create(EnvironmentsStubSettings stub) 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.
-
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()
-
defaultApiClientHeaderProviderBuilder
@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 defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static EnvironmentsSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static EnvironmentsSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static EnvironmentsSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public EnvironmentsSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<EnvironmentsSettings>
-
-