Class WorkstationsSettings (0.9.0)

publicclass WorkstationsSettingsextendsClientSettings<WorkstationsSettings>

Settings class to configure an instance of WorkstationsClient.

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.BuilderworkstationsSettingsBuilder=WorkstationsSettings.newBuilder();
workstationsSettingsBuilder
.getWorkstationClusterSettings()
.setRetrySettings(
workstationsSettingsBuilder
.getWorkstationClusterSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
WorkstationsSettingsworkstationsSettings=workstationsSettingsBuilder.build();

Inheritance

java.lang.Object > ClientSettings > WorkstationsSettings

Static Methods

create(WorkstationsStubSettings stub)

publicstaticfinalWorkstationsSettingscreate(WorkstationsStubSettingsstub)
Parameter
Name Description
stub WorkstationsStubSettings
Returns
Type Description
WorkstationsSettings
Exceptions
Type Description
IOException

defaultApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()

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

Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()

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

Returns
Type Description
Builder

defaultTransportChannelProvider()

publicstaticTransportChannelProviderdefaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

publicstaticStringgetDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

publicstaticWorkstationsSettings.BuildernewBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
WorkstationsSettings.Builder

newBuilder(ClientContext clientContext)

publicstaticWorkstationsSettings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
WorkstationsSettings.Builder

newHttpJsonBuilder()

publicstaticWorkstationsSettings.BuildernewHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
WorkstationsSettings.Builder

Constructors

WorkstationsSettings(WorkstationsSettings.Builder settingsBuilder)

protectedWorkstationsSettings(WorkstationsSettings.BuildersettingsBuilder)
Parameter
Name Description
settingsBuilder WorkstationsSettings.Builder

Methods

createWorkstationClusterOperationSettings()

publicOperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>createWorkstationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

createWorkstationClusterSettings()

publicUnaryCallSettings<CreateWorkstationClusterRequest,Operation>createWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<CreateWorkstationClusterRequest,Operation>

createWorkstationConfigOperationSettings()

publicOperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>createWorkstationConfigOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

createWorkstationConfigSettings()

publicUnaryCallSettings<CreateWorkstationConfigRequest,Operation>createWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<CreateWorkstationConfigRequest,Operation>

createWorkstationOperationSettings()

publicOperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata>createWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata>

createWorkstationSettings()

publicUnaryCallSettings<CreateWorkstationRequest,Operation>createWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<CreateWorkstationRequest,Operation>

deleteWorkstationClusterOperationSettings()

publicOperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata>deleteWorkstationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

deleteWorkstationClusterSettings()

publicUnaryCallSettings<DeleteWorkstationClusterRequest,Operation>deleteWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteWorkstationClusterRequest,Operation>

deleteWorkstationConfigOperationSettings()

publicOperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata>deleteWorkstationConfigOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

deleteWorkstationConfigSettings()

publicUnaryCallSettings<DeleteWorkstationConfigRequest,Operation>deleteWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteWorkstationConfigRequest,Operation>

deleteWorkstationOperationSettings()

publicOperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata>deleteWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata>

deleteWorkstationSettings()

publicUnaryCallSettings<DeleteWorkstationRequest,Operation>deleteWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteWorkstationRequest,Operation>

generateAccessTokenSettings()

publicUnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>generateAccessTokenSettings()

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

Returns
Type Description
UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>

getIamPolicySettings()

publicUnaryCallSettings<GetIamPolicyRequest,Policy>getIamPolicySettings()

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

Returns
Type Description
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getWorkstationClusterSettings()

publicUnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster>getWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster>

getWorkstationConfigSettings()

publicUnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig>getWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig>

getWorkstationSettings()

publicUnaryCallSettings<GetWorkstationRequest,Workstation>getWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<GetWorkstationRequest,Workstation>

listUsableWorkstationConfigsSettings()

publicPagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,WorkstationsClient.ListUsableWorkstationConfigsPagedResponse>listUsableWorkstationConfigsSettings()

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

Returns
Type Description
PagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,ListUsableWorkstationConfigsPagedResponse>

listUsableWorkstationsSettings()

publicPagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,WorkstationsClient.ListUsableWorkstationsPagedResponse>listUsableWorkstationsSettings()

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

Returns
Type Description
PagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,ListUsableWorkstationsPagedResponse>

listWorkstationClustersSettings()

publicPagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,WorkstationsClient.ListWorkstationClustersPagedResponse>listWorkstationClustersSettings()

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

Returns
Type Description
PagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,ListWorkstationClustersPagedResponse>

listWorkstationConfigsSettings()

publicPagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,WorkstationsClient.ListWorkstationConfigsPagedResponse>listWorkstationConfigsSettings()

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

Returns
Type Description
PagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,ListWorkstationConfigsPagedResponse>

listWorkstationsSettings()

publicPagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,WorkstationsClient.ListWorkstationsPagedResponse>listWorkstationsSettings()

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

Returns
Type Description
PagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,ListWorkstationsPagedResponse>

setIamPolicySettings()

publicUnaryCallSettings<SetIamPolicyRequest,Policy>setIamPolicySettings()

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

Returns
Type Description
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

startWorkstationOperationSettings()

publicOperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata>startWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata>

startWorkstationSettings()

publicUnaryCallSettings<StartWorkstationRequest,Operation>startWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<StartWorkstationRequest,Operation>

stopWorkstationOperationSettings()

publicOperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata>stopWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata>

stopWorkstationSettings()

publicUnaryCallSettings<StopWorkstationRequest,Operation>stopWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<StopWorkstationRequest,Operation>

testIamPermissionsSettings()

publicUnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsSettings()

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

Returns
Type Description
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

toBuilder()

publicWorkstationsSettings.BuildertoBuilder()

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

Returns
Type Description
WorkstationsSettings.Builder
Overrides

updateWorkstationClusterOperationSettings()

publicOperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>updateWorkstationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

updateWorkstationClusterSettings()

publicUnaryCallSettings<UpdateWorkstationClusterRequest,Operation>updateWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateWorkstationClusterRequest,Operation>

updateWorkstationConfigOperationSettings()

publicOperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>updateWorkstationConfigOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

updateWorkstationConfigSettings()

publicUnaryCallSettings<UpdateWorkstationConfigRequest,Operation>updateWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateWorkstationConfigRequest,Operation>

updateWorkstationOperationSettings()

publicOperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata>updateWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata>

updateWorkstationSettings()

publicUnaryCallSettings<UpdateWorkstationRequest,Operation>updateWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateWorkstationRequest,Operation>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.