Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
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 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
WorkstationsStubSettings . Builder workstationsSettingsBuilder =
WorkstationsStubSettings . newBuilder ();
workstationsSettingsBuilder
. getWorkstationClusterSettings ()
. setRetrySettings (
workstationsSettingsBuilder
. getWorkstationClusterSettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
WorkstationsStubSettings workstationsSettings = workstationsSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider ()
getDefaultEndpoint()
public static String getDefaultEndpoint ()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
newBuilder()
public static WorkstationsStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static WorkstationsStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
newHttpJsonBuilder()
public static WorkstationsStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
WorkstationsStubSettings(WorkstationsStubSettings.Builder settingsBuilder)
protected WorkstationsStubSettings ( WorkstationsStubSettings . Builder settingsBuilder )
Methods
createStub()
public WorkstationsStub createStub ()
createWorkstationClusterOperationSettings()
public OperationCallSettings<CreateWorkstationClusterRequest , WorkstationCluster , OperationMetadata > createWorkstationClusterOperationSettings ()
Returns the object with the settings used for calls to createWorkstationCluster.
createWorkstationClusterSettings()
public UnaryCallSettings<CreateWorkstationClusterRequest , Operation > createWorkstationClusterSettings ()
Returns the object with the settings used for calls to createWorkstationCluster.
createWorkstationConfigOperationSettings()
public OperationCallSettings<CreateWorkstationConfigRequest , WorkstationConfig , OperationMetadata > createWorkstationConfigOperationSettings ()
Returns the object with the settings used for calls to createWorkstationConfig.
createWorkstationConfigSettings()
public UnaryCallSettings<CreateWorkstationConfigRequest , Operation > createWorkstationConfigSettings ()
Returns the object with the settings used for calls to createWorkstationConfig.
createWorkstationOperationSettings()
public OperationCallSettings<CreateWorkstationRequest , Workstation , OperationMetadata > createWorkstationOperationSettings ()
Returns the object with the settings used for calls to createWorkstation.
createWorkstationSettings()
public UnaryCallSettings<CreateWorkstationRequest , Operation > createWorkstationSettings ()
Returns the object with the settings used for calls to createWorkstation.
deleteWorkstationClusterOperationSettings()
public OperationCallSettings<DeleteWorkstationClusterRequest , WorkstationCluster , OperationMetadata > deleteWorkstationClusterOperationSettings ()
Returns the object with the settings used for calls to deleteWorkstationCluster.
deleteWorkstationClusterSettings()
public UnaryCallSettings<DeleteWorkstationClusterRequest , Operation > deleteWorkstationClusterSettings ()
Returns the object with the settings used for calls to deleteWorkstationCluster.
deleteWorkstationConfigOperationSettings()
public OperationCallSettings<DeleteWorkstationConfigRequest , WorkstationConfig , OperationMetadata > deleteWorkstationConfigOperationSettings ()
Returns the object with the settings used for calls to deleteWorkstationConfig.
deleteWorkstationConfigSettings()
public UnaryCallSettings<DeleteWorkstationConfigRequest , Operation > deleteWorkstationConfigSettings ()
Returns the object with the settings used for calls to deleteWorkstationConfig.
deleteWorkstationOperationSettings()
public OperationCallSettings<DeleteWorkstationRequest , Workstation , OperationMetadata > deleteWorkstationOperationSettings ()
Returns the object with the settings used for calls to deleteWorkstation.
deleteWorkstationSettings()
public UnaryCallSettings<DeleteWorkstationRequest , Operation > deleteWorkstationSettings ()
Returns the object with the settings used for calls to deleteWorkstation.
generateAccessTokenSettings()
public UnaryCallSettings<GenerateAccessTokenRequest , GenerateAccessTokenResponse > generateAccessTokenSettings ()
Returns the object with the settings used for calls to generateAccessToken.
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 >
getWorkstationClusterSettings()
public UnaryCallSettings<GetWorkstationClusterRequest , WorkstationCluster > getWorkstationClusterSettings ()
Returns the object with the settings used for calls to getWorkstationCluster.
getWorkstationConfigSettings()
public UnaryCallSettings<GetWorkstationConfigRequest , WorkstationConfig > getWorkstationConfigSettings ()
Returns the object with the settings used for calls to getWorkstationConfig.
getWorkstationSettings()
public UnaryCallSettings<GetWorkstationRequest , Workstation > getWorkstationSettings ()
Returns the object with the settings used for calls to getWorkstation.
listUsableWorkstationConfigsSettings()
public PagedCallSettings<ListUsableWorkstationConfigsRequest , ListUsableWorkstationConfigsResponse , WorkstationsClient . ListUsableWorkstationConfigsPagedResponse > listUsableWorkstationConfigsSettings ()
Returns the object with the settings used for calls to listUsableWorkstationConfigs.
listUsableWorkstationsSettings()
public PagedCallSettings<ListUsableWorkstationsRequest , ListUsableWorkstationsResponse , WorkstationsClient . ListUsableWorkstationsPagedResponse > listUsableWorkstationsSettings ()
Returns the object with the settings used for calls to listUsableWorkstations.
public PagedCallSettings<ListWorkstationClustersRequest , ListWorkstationClustersResponse , WorkstationsClient . ListWorkstationClustersPagedResponse > listWorkstationClustersSettings ()
Returns the object with the settings used for calls to listWorkstationClusters.
listWorkstationConfigsSettings()
public PagedCallSettings<ListWorkstationConfigsRequest , ListWorkstationConfigsResponse , WorkstationsClient . ListWorkstationConfigsPagedResponse > listWorkstationConfigsSettings ()
Returns the object with the settings used for calls to listWorkstationConfigs.
listWorkstationsSettings()
public PagedCallSettings<ListWorkstationsRequest , ListWorkstationsResponse , WorkstationsClient . ListWorkstationsPagedResponse > listWorkstationsSettings ()
Returns the object with the settings used for calls to listWorkstations.
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.
startWorkstationSettings()
public UnaryCallSettings<StartWorkstationRequest , Operation > startWorkstationSettings ()
Returns the object with the settings used for calls to startWorkstation.
stopWorkstationOperationSettings()
public OperationCallSettings<StopWorkstationRequest , Workstation , OperationMetadata > stopWorkstationOperationSettings ()
Returns the object with the settings used for calls to stopWorkstation.
stopWorkstationSettings()
public UnaryCallSettings<StopWorkstationRequest , Operation > stopWorkstationSettings ()
Returns the object with the settings used for calls to stopWorkstation.
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.
Overrides
updateWorkstationClusterOperationSettings()
public OperationCallSettings<UpdateWorkstationClusterRequest , WorkstationCluster , OperationMetadata > updateWorkstationClusterOperationSettings ()
Returns the object with the settings used for calls to updateWorkstationCluster.
updateWorkstationClusterSettings()
public UnaryCallSettings<UpdateWorkstationClusterRequest , Operation > updateWorkstationClusterSettings ()
Returns the object with the settings used for calls to updateWorkstationCluster.
updateWorkstationConfigOperationSettings()
public OperationCallSettings<UpdateWorkstationConfigRequest , WorkstationConfig , OperationMetadata > updateWorkstationConfigOperationSettings ()
Returns the object with the settings used for calls to updateWorkstationConfig.
updateWorkstationConfigSettings()
public UnaryCallSettings<UpdateWorkstationConfigRequest , Operation > updateWorkstationConfigSettings ()
Returns the object with the settings used for calls to updateWorkstationConfig.
updateWorkstationOperationSettings()
public OperationCallSettings<UpdateWorkstationRequest , Workstation , OperationMetadata > updateWorkstationOperationSettings ()
Returns the object with the settings used for calls to updateWorkstation.
updateWorkstationSettings()
public UnaryCallSettings<UpdateWorkstationRequest , Operation > updateWorkstationSettings ()
Returns the object with the settings used for calls to updateWorkstation.