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();
Static Methods
create(WorkstationsStubSettings stub)
publicstaticfinalWorkstationsSettingscreate(WorkstationsStubSettingsstub)
publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
defaultGrpcTransportProviderBuilder()
publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
defaultHttpJsonTransportProviderBuilder()
publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
publicstaticTransportChannelProviderdefaultTransportChannelProvider()
getDefaultEndpoint()
publicstaticStringgetDefaultEndpoint()
Returns the default service endpoint.
| Returns |
| Type |
Description |
String |
getDefaultServiceScopes()
publicstaticList<String>getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
publicstaticWorkstationsSettings.BuildernewBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
publicstaticWorkstationsSettings.BuildernewBuilder(ClientContextclientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
publicstaticWorkstationsSettings.BuildernewHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
WorkstationsSettings(WorkstationsSettings.Builder settingsBuilder)
protectedWorkstationsSettings(WorkstationsSettings.BuildersettingsBuilder)
Methods
createWorkstationClusterOperationSettings()
publicOperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>createWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to createWorkstationCluster.
createWorkstationClusterSettings()
publicUnaryCallSettings<CreateWorkstationClusterRequest,Operation>createWorkstationClusterSettings()
Returns the object with the settings used for calls to createWorkstationCluster.
createWorkstationConfigOperationSettings()
publicOperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>createWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to createWorkstationConfig.
createWorkstationConfigSettings()
publicUnaryCallSettings<CreateWorkstationConfigRequest,Operation>createWorkstationConfigSettings()
Returns the object with the settings used for calls to createWorkstationConfig.
createWorkstationOperationSettings()
publicOperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata>createWorkstationOperationSettings()
Returns the object with the settings used for calls to createWorkstation.
createWorkstationSettings()
publicUnaryCallSettings<CreateWorkstationRequest,Operation>createWorkstationSettings()
Returns the object with the settings used for calls to createWorkstation.
deleteWorkstationClusterOperationSettings()
publicOperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata>deleteWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to deleteWorkstationCluster.
deleteWorkstationClusterSettings()
publicUnaryCallSettings<DeleteWorkstationClusterRequest,Operation>deleteWorkstationClusterSettings()
Returns the object with the settings used for calls to deleteWorkstationCluster.
deleteWorkstationConfigOperationSettings()
publicOperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata>deleteWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to deleteWorkstationConfig.
deleteWorkstationConfigSettings()
publicUnaryCallSettings<DeleteWorkstationConfigRequest,Operation>deleteWorkstationConfigSettings()
Returns the object with the settings used for calls to deleteWorkstationConfig.
deleteWorkstationOperationSettings()
publicOperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata>deleteWorkstationOperationSettings()
Returns the object with the settings used for calls to deleteWorkstation.
deleteWorkstationSettings()
publicUnaryCallSettings<DeleteWorkstationRequest,Operation>deleteWorkstationSettings()
Returns the object with the settings used for calls to deleteWorkstation.
generateAccessTokenSettings()
publicUnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>generateAccessTokenSettings()
Returns the object with the settings used for calls to generateAccessToken.
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.
getWorkstationConfigSettings()
publicUnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig>getWorkstationConfigSettings()
Returns the object with the settings used for calls to getWorkstationConfig.
getWorkstationSettings()
publicUnaryCallSettings<GetWorkstationRequest,Workstation>getWorkstationSettings()
Returns the object with the settings used for calls to getWorkstation.
listUsableWorkstationConfigsSettings()
publicPagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,WorkstationsClient.ListUsableWorkstationConfigsPagedResponse>listUsableWorkstationConfigsSettings()
Returns the object with the settings used for calls to listUsableWorkstationConfigs.
listUsableWorkstationsSettings()
publicPagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,WorkstationsClient.ListUsableWorkstationsPagedResponse>listUsableWorkstationsSettings()
Returns the object with the settings used for calls to listUsableWorkstations.
publicPagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,WorkstationsClient.ListWorkstationClustersPagedResponse>listWorkstationClustersSettings()
Returns the object with the settings used for calls to listWorkstationClusters.
listWorkstationConfigsSettings()
publicPagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,WorkstationsClient.ListWorkstationConfigsPagedResponse>listWorkstationConfigsSettings()
Returns the object with the settings used for calls to listWorkstationConfigs.
listWorkstationsSettings()
publicPagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,WorkstationsClient.ListWorkstationsPagedResponse>listWorkstationsSettings()
Returns the object with the settings used for calls to listWorkstations.
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.
startWorkstationSettings()
publicUnaryCallSettings<StartWorkstationRequest,Operation>startWorkstationSettings()
Returns the object with the settings used for calls to startWorkstation.
stopWorkstationOperationSettings()
publicOperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata>stopWorkstationOperationSettings()
Returns the object with the settings used for calls to stopWorkstation.
stopWorkstationSettings()
publicUnaryCallSettings<StopWorkstationRequest,Operation>stopWorkstationSettings()
Returns the object with the settings used for calls to stopWorkstation.
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.
Overrides
updateWorkstationClusterOperationSettings()
publicOperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>updateWorkstationClusterOperationSettings()
Returns the object with the settings used for calls to updateWorkstationCluster.
updateWorkstationClusterSettings()
publicUnaryCallSettings<UpdateWorkstationClusterRequest,Operation>updateWorkstationClusterSettings()
Returns the object with the settings used for calls to updateWorkstationCluster.
updateWorkstationConfigOperationSettings()
publicOperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>updateWorkstationConfigOperationSettings()
Returns the object with the settings used for calls to updateWorkstationConfig.
updateWorkstationConfigSettings()
publicUnaryCallSettings<UpdateWorkstationConfigRequest,Operation>updateWorkstationConfigSettings()
Returns the object with the settings used for calls to updateWorkstationConfig.
updateWorkstationOperationSettings()
publicOperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata>updateWorkstationOperationSettings()
Returns the object with the settings used for calls to updateWorkstation.
updateWorkstationSettings()
publicUnaryCallSettings<UpdateWorkstationRequest,Operation>updateWorkstationSettings()
Returns the object with the settings used for calls to updateWorkstation.