Class WorkstationsStubSettings (0.43.0)

public class WorkstationsStubSettings extends StubSettings<WorkstationsStubSettings>

Settings class to configure an instance of WorkstationsStub.

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 RetrySettings of getWorkstationCluster:


 // 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
 WorkstationsStubSettings.Builder workstationsSettingsBuilder =
     WorkstationsStubSettings.newBuilder();
 workstationsSettingsBuilder
     .getWorkstationClusterSettings()
     .setRetrySettings(
         workstationsSettingsBuilder
             .getWorkstationClusterSettings()
             .getRetrySettings()
             .toBuilder()
             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
             .setMaxAttempts(5)
             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
             .setRetryDelayMultiplier(1.3)
             .setRpcTimeoutMultiplier(1.5)
             .setTotalTimeoutDuration(Duration.ofSeconds(300))
             .build());
 WorkstationsStubSettings workstationsSettings = workstationsSettingsBuilder.build();
 

Please refer to the Client Side Retry Guide for additional support in setting retries.

To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for createWorkstationCluster:


 // 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
 WorkstationsStubSettings.Builder workstationsSettingsBuilder =
     WorkstationsStubSettings.newBuilder();
 TimedRetryAlgorithm timedRetryAlgorithm =
     OperationalTimedPollAlgorithm.create(
         RetrySettings.newBuilder()
             .setInitialRetryDelayDuration(Duration.ofMillis(500))
             .setRetryDelayMultiplier(1.5)
             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
             .setTotalTimeoutDuration(Duration.ofHours(24))
             .build());
 workstationsSettingsBuilder
     .createClusterOperationSettings()
     .setPollingAlgorithm(timedRetryAlgorithm)
     .build();
 

Inheritance

java.lang.Object > StubSettings > WorkstationsStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

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

Returns
Type Description
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

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

Returns
Type Description
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

public static WorkstationsStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
WorkstationsStubSettings.Builder

newBuilder(ClientContext clientContext)

public static WorkstationsStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
WorkstationsStubSettings.Builder

newHttpJsonBuilder()

public static WorkstationsStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
WorkstationsStubSettings.Builder

Constructors

WorkstationsStubSettings(WorkstationsStubSettings.Builder settingsBuilder)

protected WorkstationsStubSettings(WorkstationsStubSettings.Builder settingsBuilder)
Parameter
Name Description
settingsBuilder WorkstationsStubSettings.Builder

Methods

createStub()

public WorkstationsStub createStub()
Returns
Type Description
WorkstationsStub
Exceptions
Type Description
IOException

createWorkstationClusterOperationSettings()

public OperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata> createWorkstationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

createWorkstationClusterSettings()

public UnaryCallSettings<CreateWorkstationClusterRequest,Operation> createWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<CreateWorkstationClusterRequest,Operation>

createWorkstationConfigOperationSettings()

public OperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata> createWorkstationConfigOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

createWorkstationConfigSettings()

public UnaryCallSettings<CreateWorkstationConfigRequest,Operation> createWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<CreateWorkstationConfigRequest,Operation>

createWorkstationOperationSettings()

public OperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata> createWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata>

createWorkstationSettings()

public UnaryCallSettings<CreateWorkstationRequest,Operation> createWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<CreateWorkstationRequest,Operation>

deleteWorkstationClusterOperationSettings()

public OperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata> deleteWorkstationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

deleteWorkstationClusterSettings()

public UnaryCallSettings<DeleteWorkstationClusterRequest,Operation> deleteWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteWorkstationClusterRequest,Operation>

deleteWorkstationConfigOperationSettings()

public OperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata> deleteWorkstationConfigOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

deleteWorkstationConfigSettings()

public UnaryCallSettings<DeleteWorkstationConfigRequest,Operation> deleteWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteWorkstationConfigRequest,Operation>

deleteWorkstationOperationSettings()

public OperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata> deleteWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata>

deleteWorkstationSettings()

public UnaryCallSettings<DeleteWorkstationRequest,Operation> deleteWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteWorkstationRequest,Operation>

generateAccessTokenSettings()

public UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()

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

Returns
Type Description
UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>

getIamPolicySettings()

public UnaryCallSettings<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>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
Type Description
String
Overrides

getWorkstationClusterSettings()

public UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster> getWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster>

getWorkstationConfigSettings()

public UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig> getWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig>

getWorkstationSettings()

public UnaryCallSettings<GetWorkstationRequest,Workstation> getWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<GetWorkstationRequest,Workstation>

listUsableWorkstationConfigsSettings()

public PagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,WorkstationsClient.ListUsableWorkstationConfigsPagedResponse> listUsableWorkstationConfigsSettings()

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

Returns
Type Description
PagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,ListUsableWorkstationConfigsPagedResponse>

listUsableWorkstationsSettings()

public PagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,WorkstationsClient.ListUsableWorkstationsPagedResponse> listUsableWorkstationsSettings()

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

Returns
Type Description
PagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,ListUsableWorkstationsPagedResponse>

listWorkstationClustersSettings()

public PagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,WorkstationsClient.ListWorkstationClustersPagedResponse> listWorkstationClustersSettings()

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

Returns
Type Description
PagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,ListWorkstationClustersPagedResponse>

listWorkstationConfigsSettings()

public PagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,WorkstationsClient.ListWorkstationConfigsPagedResponse> listWorkstationConfigsSettings()

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

Returns
Type Description
PagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,ListWorkstationConfigsPagedResponse>

listWorkstationsSettings()

public PagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,WorkstationsClient.ListWorkstationsPagedResponse> listWorkstationsSettings()

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

Returns
Type Description
PagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,ListWorkstationsPagedResponse>

setIamPolicySettings()

public UnaryCallSettings<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()

public OperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata> startWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata>

startWorkstationSettings()

public UnaryCallSettings<StartWorkstationRequest,Operation> startWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<StartWorkstationRequest,Operation>

stopWorkstationOperationSettings()

public OperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata> stopWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata>

stopWorkstationSettings()

public UnaryCallSettings<StopWorkstationRequest,Operation> stopWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<StopWorkstationRequest,Operation>

testIamPermissionsSettings()

public UnaryCallSettings<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()

public WorkstationsStubSettings.Builder toBuilder()

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

Returns
Type Description
WorkstationsStubSettings.Builder
Overrides

updateWorkstationClusterOperationSettings()

public OperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata> updateWorkstationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

updateWorkstationClusterSettings()

public UnaryCallSettings<UpdateWorkstationClusterRequest,Operation> updateWorkstationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateWorkstationClusterRequest,Operation>

updateWorkstationConfigOperationSettings()

public OperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata> updateWorkstationConfigOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

updateWorkstationConfigSettings()

public UnaryCallSettings<UpdateWorkstationConfigRequest,Operation> updateWorkstationConfigSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateWorkstationConfigRequest,Operation>

updateWorkstationOperationSettings()

public OperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata> updateWorkstationOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata>

updateWorkstationSettings()

public UnaryCallSettings<UpdateWorkstationRequest,Operation> updateWorkstationSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateWorkstationRequest,Operation>