Package com.google.cloud.workstations.v1
Class WorkstationsSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<WorkstationsSettings>
-
- com.google.cloud.workstations.v1.WorkstationsSettings
-
@Generated("by gapic-generator-java") public class WorkstationsSettings extends com.google.api.gax.rpc.ClientSettings<WorkstationsSettings>
Settings class to configure an instance ofWorkstationsClient
.The default instance has everything set to sensible defaults:
- The default service address (workstations.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 getWorkstationCluster 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 WorkstationsSettings.Builder workstationsSettingsBuilder = WorkstationsSettings.newBuilder(); workstationsSettingsBuilder .getWorkstationClusterSettings() .setRetrySettings( workstationsSettingsBuilder .getWorkstationClusterSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); WorkstationsSettings workstationsSettings = workstationsSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkstationsSettings.Builder
Builder for WorkstationsSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WorkstationsSettings(WorkstationsSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkstationsSettings
create(WorkstationsStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>
createWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to createWorkstationCluster.com.google.api.gax.rpc.UnaryCallSettings<CreateWorkstationClusterRequest,com.google.longrunning.Operation>
createWorkstationClusterSettings()
Returns the object with the settings used for calls to createWorkstationCluster.com.google.api.gax.rpc.OperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>
createWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to createWorkstationConfig.com.google.api.gax.rpc.UnaryCallSettings<CreateWorkstationConfigRequest,com.google.longrunning.Operation>
createWorkstationConfigSettings()
Returns the object with the settings used for calls to createWorkstationConfig.com.google.api.gax.rpc.OperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata>
createWorkstationOperationSettings()
Returns the object with the settings used for calls to createWorkstation.com.google.api.gax.rpc.UnaryCallSettings<CreateWorkstationRequest,com.google.longrunning.Operation>
createWorkstationSettings()
Returns the object with the settings used for calls to createWorkstation.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.OperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata>
deleteWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to deleteWorkstationCluster.com.google.api.gax.rpc.UnaryCallSettings<DeleteWorkstationClusterRequest,com.google.longrunning.Operation>
deleteWorkstationClusterSettings()
Returns the object with the settings used for calls to deleteWorkstationCluster.com.google.api.gax.rpc.OperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata>
deleteWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to deleteWorkstationConfig.com.google.api.gax.rpc.UnaryCallSettings<DeleteWorkstationConfigRequest,com.google.longrunning.Operation>
deleteWorkstationConfigSettings()
Returns the object with the settings used for calls to deleteWorkstationConfig.com.google.api.gax.rpc.OperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata>
deleteWorkstationOperationSettings()
Returns the object with the settings used for calls to deleteWorkstation.com.google.api.gax.rpc.UnaryCallSettings<DeleteWorkstationRequest,com.google.longrunning.Operation>
deleteWorkstationSettings()
Returns the object with the settings used for calls to deleteWorkstation.com.google.api.gax.rpc.UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>
generateAccessTokenSettings()
Returns the object with the settings used for calls to generateAccessToken.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster>
getWorkstationClusterSettings()
Returns the object with the settings used for calls to getWorkstationCluster.com.google.api.gax.rpc.UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig>
getWorkstationConfigSettings()
Returns the object with the settings used for calls to getWorkstationConfig.com.google.api.gax.rpc.UnaryCallSettings<GetWorkstationRequest,Workstation>
getWorkstationSettings()
Returns the object with the settings used for calls to getWorkstation.com.google.api.gax.rpc.PagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,WorkstationsClient.ListUsableWorkstationConfigsPagedResponse>
listUsableWorkstationConfigsSettings()
Returns the object with the settings used for calls to listUsableWorkstationConfigs.com.google.api.gax.rpc.PagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,WorkstationsClient.ListUsableWorkstationsPagedResponse>
listUsableWorkstationsSettings()
Returns the object with the settings used for calls to listUsableWorkstations.com.google.api.gax.rpc.PagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,WorkstationsClient.ListWorkstationClustersPagedResponse>
listWorkstationClustersSettings()
Returns the object with the settings used for calls to listWorkstationClusters.com.google.api.gax.rpc.PagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,WorkstationsClient.ListWorkstationConfigsPagedResponse>
listWorkstationConfigsSettings()
Returns the object with the settings used for calls to listWorkstationConfigs.com.google.api.gax.rpc.PagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,WorkstationsClient.ListWorkstationsPagedResponse>
listWorkstationsSettings()
Returns the object with the settings used for calls to listWorkstations.static WorkstationsSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static WorkstationsSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static WorkstationsSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.com.google.api.gax.rpc.OperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata>
startWorkstationOperationSettings()
Returns the object with the settings used for calls to startWorkstation.com.google.api.gax.rpc.UnaryCallSettings<StartWorkstationRequest,com.google.longrunning.Operation>
startWorkstationSettings()
Returns the object with the settings used for calls to startWorkstation.com.google.api.gax.rpc.OperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata>
stopWorkstationOperationSettings()
Returns the object with the settings used for calls to stopWorkstation.com.google.api.gax.rpc.UnaryCallSettings<StopWorkstationRequest,com.google.longrunning.Operation>
stopWorkstationSettings()
Returns the object with the settings used for calls to stopWorkstation.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.WorkstationsSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>
updateWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to updateWorkstationCluster.com.google.api.gax.rpc.UnaryCallSettings<UpdateWorkstationClusterRequest,com.google.longrunning.Operation>
updateWorkstationClusterSettings()
Returns the object with the settings used for calls to updateWorkstationCluster.com.google.api.gax.rpc.OperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>
updateWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to updateWorkstationConfig.com.google.api.gax.rpc.UnaryCallSettings<UpdateWorkstationConfigRequest,com.google.longrunning.Operation>
updateWorkstationConfigSettings()
Returns the object with the settings used for calls to updateWorkstationConfig.com.google.api.gax.rpc.OperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata>
updateWorkstationOperationSettings()
Returns the object with the settings used for calls to updateWorkstation.com.google.api.gax.rpc.UnaryCallSettings<UpdateWorkstationRequest,com.google.longrunning.Operation>
updateWorkstationSettings()
Returns the object with the settings used for calls to updateWorkstation.-
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
-
WorkstationsSettings
protected WorkstationsSettings(WorkstationsSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getWorkstationClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster> getWorkstationClusterSettings()
Returns the object with the settings used for calls to getWorkstationCluster.
-
listWorkstationClustersSettings
public com.google.api.gax.rpc.PagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,WorkstationsClient.ListWorkstationClustersPagedResponse> listWorkstationClustersSettings()
Returns the object with the settings used for calls to listWorkstationClusters.
-
createWorkstationClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateWorkstationClusterRequest,com.google.longrunning.Operation> createWorkstationClusterSettings()
Returns the object with the settings used for calls to createWorkstationCluster.
-
createWorkstationClusterOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata> createWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to createWorkstationCluster.
-
updateWorkstationClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateWorkstationClusterRequest,com.google.longrunning.Operation> updateWorkstationClusterSettings()
Returns the object with the settings used for calls to updateWorkstationCluster.
-
updateWorkstationClusterOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata> updateWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to updateWorkstationCluster.
-
deleteWorkstationClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteWorkstationClusterRequest,com.google.longrunning.Operation> deleteWorkstationClusterSettings()
Returns the object with the settings used for calls to deleteWorkstationCluster.
-
deleteWorkstationClusterOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata> deleteWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to deleteWorkstationCluster.
-
getWorkstationConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig> getWorkstationConfigSettings()
Returns the object with the settings used for calls to getWorkstationConfig.
-
listWorkstationConfigsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,WorkstationsClient.ListWorkstationConfigsPagedResponse> listWorkstationConfigsSettings()
Returns the object with the settings used for calls to listWorkstationConfigs.
-
listUsableWorkstationConfigsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,WorkstationsClient.ListUsableWorkstationConfigsPagedResponse> listUsableWorkstationConfigsSettings()
Returns the object with the settings used for calls to listUsableWorkstationConfigs.
-
createWorkstationConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateWorkstationConfigRequest,com.google.longrunning.Operation> createWorkstationConfigSettings()
Returns the object with the settings used for calls to createWorkstationConfig.
-
createWorkstationConfigOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata> createWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to createWorkstationConfig.
-
updateWorkstationConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateWorkstationConfigRequest,com.google.longrunning.Operation> updateWorkstationConfigSettings()
Returns the object with the settings used for calls to updateWorkstationConfig.
-
updateWorkstationConfigOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata> updateWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to updateWorkstationConfig.
-
deleteWorkstationConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteWorkstationConfigRequest,com.google.longrunning.Operation> deleteWorkstationConfigSettings()
Returns the object with the settings used for calls to deleteWorkstationConfig.
-
deleteWorkstationConfigOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata> deleteWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to deleteWorkstationConfig.
-
getWorkstationSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetWorkstationRequest,Workstation> getWorkstationSettings()
Returns the object with the settings used for calls to getWorkstation.
-
listWorkstationsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,WorkstationsClient.ListWorkstationsPagedResponse> listWorkstationsSettings()
Returns the object with the settings used for calls to listWorkstations.
-
listUsableWorkstationsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,WorkstationsClient.ListUsableWorkstationsPagedResponse> listUsableWorkstationsSettings()
Returns the object with the settings used for calls to listUsableWorkstations.
-
createWorkstationSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateWorkstationRequest,com.google.longrunning.Operation> createWorkstationSettings()
Returns the object with the settings used for calls to createWorkstation.
-
createWorkstationOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata> createWorkstationOperationSettings()
Returns the object with the settings used for calls to createWorkstation.
-
updateWorkstationSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateWorkstationRequest,com.google.longrunning.Operation> updateWorkstationSettings()
Returns the object with the settings used for calls to updateWorkstation.
-
updateWorkstationOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata> updateWorkstationOperationSettings()
Returns the object with the settings used for calls to updateWorkstation.
-
deleteWorkstationSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteWorkstationRequest,com.google.longrunning.Operation> deleteWorkstationSettings()
Returns the object with the settings used for calls to deleteWorkstation.
-
deleteWorkstationOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata> deleteWorkstationOperationSettings()
Returns the object with the settings used for calls to deleteWorkstation.
-
startWorkstationSettings
public com.google.api.gax.rpc.UnaryCallSettings<StartWorkstationRequest,com.google.longrunning.Operation> startWorkstationSettings()
Returns the object with the settings used for calls to startWorkstation.
-
startWorkstationOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata> startWorkstationOperationSettings()
Returns the object with the settings used for calls to startWorkstation.
-
stopWorkstationSettings
public com.google.api.gax.rpc.UnaryCallSettings<StopWorkstationRequest,com.google.longrunning.Operation> stopWorkstationSettings()
Returns the object with the settings used for calls to stopWorkstation.
-
stopWorkstationOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata> stopWorkstationOperationSettings()
Returns the object with the settings used for calls to stopWorkstation.
-
generateAccessTokenSettings
public com.google.api.gax.rpc.UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()
Returns the object with the settings used for calls to generateAccessToken.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
-
create
public static final WorkstationsSettings create(WorkstationsStubSettings 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 WorkstationsSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static WorkstationsSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static WorkstationsSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public WorkstationsSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<WorkstationsSettings>
-
-