Class WorkstationsSettings (0.2.0)

public class WorkstationsSettings extends ClientSettings<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.Builder workstationsSettingsBuilder = WorkstationsSettings.newBuilder();
 workstationsSettingsBuilder
     .getWorkstationClusterSettings()
     .setRetrySettings(
         workstationsSettingsBuilder
             .getWorkstationClusterSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 WorkstationsSettings workstationsSettings = workstationsSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > WorkstationsSettings

Static Methods

create(WorkstationsStubSettings stub)

public static final WorkstationsSettings create(WorkstationsStubSettings stub)
Parameter
NameDescription
stubWorkstationsStubSettings
Returns
TypeDescription
WorkstationsSettings
Exceptions
TypeDescription
IOException

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

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

Returns
TypeDescription
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

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

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static WorkstationsSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
WorkstationsSettings.Builder

newBuilder(ClientContext clientContext)

public static WorkstationsSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
WorkstationsSettings.Builder

newHttpJsonBuilder()

public static WorkstationsSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
WorkstationsSettings.Builder

Constructors

WorkstationsSettings(WorkstationsSettings.Builder settingsBuilder)

protected WorkstationsSettings(WorkstationsSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderWorkstationsSettings.Builder

Methods

createWorkstationClusterOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<CreateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

createWorkstationClusterSettings()

public UnaryCallSettings<CreateWorkstationClusterRequest,Operation> createWorkstationClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateWorkstationClusterRequest,Operation>

createWorkstationConfigOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<CreateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

createWorkstationConfigSettings()

public UnaryCallSettings<CreateWorkstationConfigRequest,Operation> createWorkstationConfigSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateWorkstationConfigRequest,Operation>

createWorkstationOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<CreateWorkstationRequest,Workstation,OperationMetadata>

createWorkstationSettings()

public UnaryCallSettings<CreateWorkstationRequest,Operation> createWorkstationSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateWorkstationRequest,Operation>

deleteWorkstationClusterOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<DeleteWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

deleteWorkstationClusterSettings()

public UnaryCallSettings<DeleteWorkstationClusterRequest,Operation> deleteWorkstationClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteWorkstationClusterRequest,Operation>

deleteWorkstationConfigOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<DeleteWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

deleteWorkstationConfigSettings()

public UnaryCallSettings<DeleteWorkstationConfigRequest,Operation> deleteWorkstationConfigSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteWorkstationConfigRequest,Operation>

deleteWorkstationOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<DeleteWorkstationRequest,Workstation,OperationMetadata>

deleteWorkstationSettings()

public UnaryCallSettings<DeleteWorkstationRequest,Operation> deleteWorkstationSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteWorkstationRequest,Operation>

generateAccessTokenSettings()

public UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()

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

Returns
TypeDescription
UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>

getIamPolicySettings()

public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()

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

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

getWorkstationClusterSettings()

public UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster> getWorkstationClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetWorkstationClusterRequest,WorkstationCluster>

getWorkstationConfigSettings()

public UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig> getWorkstationConfigSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetWorkstationConfigRequest,WorkstationConfig>

getWorkstationSettings()

public UnaryCallSettings<GetWorkstationRequest,Workstation> getWorkstationSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetWorkstationRequest,Workstation>

listUsableWorkstationConfigsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListUsableWorkstationConfigsRequest,ListUsableWorkstationConfigsResponse,ListUsableWorkstationConfigsPagedResponse>

listUsableWorkstationsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListUsableWorkstationsRequest,ListUsableWorkstationsResponse,ListUsableWorkstationsPagedResponse>

listWorkstationClustersSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListWorkstationClustersRequest,ListWorkstationClustersResponse,ListWorkstationClustersPagedResponse>

listWorkstationConfigsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListWorkstationConfigsRequest,ListWorkstationConfigsResponse,ListWorkstationConfigsPagedResponse>

listWorkstationsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListWorkstationsRequest,ListWorkstationsResponse,ListWorkstationsPagedResponse>

setIamPolicySettings()

public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()

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

Returns
TypeDescription
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
TypeDescription
OperationCallSettings<StartWorkstationRequest,Workstation,OperationMetadata>

startWorkstationSettings()

public UnaryCallSettings<StartWorkstationRequest,Operation> startWorkstationSettings()

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

Returns
TypeDescription
UnaryCallSettings<StartWorkstationRequest,Operation>

stopWorkstationOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<StopWorkstationRequest,Workstation,OperationMetadata>

stopWorkstationSettings()

public UnaryCallSettings<StopWorkstationRequest,Operation> stopWorkstationSettings()

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

Returns
TypeDescription
UnaryCallSettings<StopWorkstationRequest,Operation>

testIamPermissionsSettings()

public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

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

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

toBuilder()

public WorkstationsSettings.Builder toBuilder()

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

Returns
TypeDescription
WorkstationsSettings.Builder
Overrides

updateWorkstationClusterOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<UpdateWorkstationClusterRequest,WorkstationCluster,OperationMetadata>

updateWorkstationClusterSettings()

public UnaryCallSettings<UpdateWorkstationClusterRequest,Operation> updateWorkstationClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateWorkstationClusterRequest,Operation>

updateWorkstationConfigOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<UpdateWorkstationConfigRequest,WorkstationConfig,OperationMetadata>

updateWorkstationConfigSettings()

public UnaryCallSettings<UpdateWorkstationConfigRequest,Operation> updateWorkstationConfigSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateWorkstationConfigRequest,Operation>

updateWorkstationOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<UpdateWorkstationRequest,Workstation,OperationMetadata>

updateWorkstationSettings()

public UnaryCallSettings<UpdateWorkstationRequest,Operation> updateWorkstationSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateWorkstationRequest,Operation>