@Generated(value="by gapic-generator-java") public class IAMSettings extends com.google.api.gax.rpc.ClientSettings<IAMSettings>
IAMClient.
The default instance has everything set to sensible defaults:
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](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of getServiceAccount:
// 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
IAMSettings.Builder iAMSettingsBuilder = IAMSettings.newBuilder();
iAMSettingsBuilder
.getServiceAccountSettings()
.setRetrySettings(
iAMSettingsBuilder
.getServiceAccountSettings()
.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());
IAMSettings iAMSettings = iAMSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
additional support in setting retries.| Modifier and Type | Class and Description |
|---|---|
static class |
IAMSettings.Builder
Builder for IAMSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IAMSettings(IAMSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
static IAMSettings |
create(IAMStubSettings stub) |
com.google.api.gax.rpc.UnaryCallSettings<CreateRoleRequest,Role> |
createRoleSettings()
Returns the object with the settings used for calls to createRole.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateServiceAccountKeyRequest,ServiceAccountKey> |
createServiceAccountKeySettings()
Returns the object with the settings used for calls to createServiceAccountKey.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateServiceAccountRequest,ServiceAccount> |
createServiceAccountSettings()
Returns the object with the settings used for calls to createServiceAccount.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.UnaryCallSettings<DeleteRoleRequest,Role> |
deleteRoleSettings()
Returns the object with the settings used for calls to deleteRole.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceAccountKeyRequest,com.google.protobuf.Empty> |
deleteServiceAccountKeySettings()
Returns the object with the settings used for calls to deleteServiceAccountKey.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceAccountRequest,com.google.protobuf.Empty> |
deleteServiceAccountSettings()
Returns the object with the settings used for calls to deleteServiceAccount.
|
com.google.api.gax.rpc.UnaryCallSettings<DisableServiceAccountKeyRequest,com.google.protobuf.Empty> |
disableServiceAccountKeySettings()
Returns the object with the settings used for calls to disableServiceAccountKey.
|
com.google.api.gax.rpc.UnaryCallSettings<DisableServiceAccountRequest,com.google.protobuf.Empty> |
disableServiceAccountSettings()
Returns the object with the settings used for calls to disableServiceAccount.
|
com.google.api.gax.rpc.UnaryCallSettings<EnableServiceAccountKeyRequest,com.google.protobuf.Empty> |
enableServiceAccountKeySettings()
Returns the object with the settings used for calls to enableServiceAccountKey.
|
com.google.api.gax.rpc.UnaryCallSettings<EnableServiceAccountRequest,com.google.protobuf.Empty> |
enableServiceAccountSettings()
Returns the object with the settings used for calls to enableServiceAccount.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRoleRequest,Role> |
getRoleSettings()
Returns the object with the settings used for calls to getRole.
|
com.google.api.gax.rpc.UnaryCallSettings<GetServiceAccountKeyRequest,ServiceAccountKey> |
getServiceAccountKeySettings()
Returns the object with the settings used for calls to getServiceAccountKey.
|
com.google.api.gax.rpc.UnaryCallSettings<GetServiceAccountRequest,ServiceAccount> |
getServiceAccountSettings()
Returns the object with the settings used for calls to getServiceAccount.
|
com.google.api.gax.rpc.UnaryCallSettings<LintPolicyRequest,LintPolicyResponse> |
lintPolicySettings()
Returns the object with the settings used for calls to lintPolicy.
|
com.google.api.gax.rpc.PagedCallSettings<ListRolesRequest,ListRolesResponse,IAMClient.ListRolesPagedResponse> |
listRolesSettings()
Returns the object with the settings used for calls to listRoles.
|
com.google.api.gax.rpc.UnaryCallSettings<ListServiceAccountKeysRequest,ListServiceAccountKeysResponse> |
listServiceAccountKeysSettings()
Returns the object with the settings used for calls to listServiceAccountKeys.
|
com.google.api.gax.rpc.PagedCallSettings<ListServiceAccountsRequest,ListServiceAccountsResponse,IAMClient.ListServiceAccountsPagedResponse> |
listServiceAccountsSettings()
Returns the object with the settings used for calls to listServiceAccounts.
|
static IAMSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static IAMSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<PatchServiceAccountRequest,ServiceAccount> |
patchServiceAccountSettings()
Returns the object with the settings used for calls to patchServiceAccount.
|
com.google.api.gax.rpc.UnaryCallSettings<QueryAuditableServicesRequest,QueryAuditableServicesResponse> |
queryAuditableServicesSettings()
Returns the object with the settings used for calls to queryAuditableServices.
|
com.google.api.gax.rpc.PagedCallSettings<QueryGrantableRolesRequest,QueryGrantableRolesResponse,IAMClient.QueryGrantableRolesPagedResponse> |
queryGrantableRolesSettings()
Returns the object with the settings used for calls to queryGrantableRoles.
|
com.google.api.gax.rpc.PagedCallSettings<QueryTestablePermissionsRequest,QueryTestablePermissionsResponse,IAMClient.QueryTestablePermissionsPagedResponse> |
queryTestablePermissionsSettings()
Returns the object with the settings used for calls to queryTestablePermissions.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<SignBlobRequest,SignBlobResponse> |
signBlobSettings()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
com.google.api.gax.rpc.UnaryCallSettings<SignJwtRequest,SignJwtResponse> |
signJwtSettings()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
IAMSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.UnaryCallSettings<UndeleteRoleRequest,Role> |
undeleteRoleSettings()
Returns the object with the settings used for calls to undeleteRole.
|
com.google.api.gax.rpc.UnaryCallSettings<UndeleteServiceAccountRequest,UndeleteServiceAccountResponse> |
undeleteServiceAccountSettings()
Returns the object with the settings used for calls to undeleteServiceAccount.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateRoleRequest,Role> |
updateRoleSettings()
Returns the object with the settings used for calls to updateRole.
|
com.google.api.gax.rpc.UnaryCallSettings<ServiceAccount,ServiceAccount> |
updateServiceAccountSettings()
Returns the object with the settings used for calls to updateServiceAccount.
|
com.google.api.gax.rpc.UnaryCallSettings<UploadServiceAccountKeyRequest,ServiceAccountKey> |
uploadServiceAccountKeySettings()
Returns the object with the settings used for calls to uploadServiceAccountKey.
|
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toStringprotected IAMSettings(IAMSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.PagedCallSettings<ListServiceAccountsRequest,ListServiceAccountsResponse,IAMClient.ListServiceAccountsPagedResponse> listServiceAccountsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetServiceAccountRequest,ServiceAccount> getServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateServiceAccountRequest,ServiceAccount> createServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ServiceAccount,ServiceAccount> updateServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<PatchServiceAccountRequest,ServiceAccount> patchServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceAccountRequest,com.google.protobuf.Empty> deleteServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteServiceAccountRequest,UndeleteServiceAccountResponse> undeleteServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<EnableServiceAccountRequest,com.google.protobuf.Empty> enableServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DisableServiceAccountRequest,com.google.protobuf.Empty> disableServiceAccountSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ListServiceAccountKeysRequest,ListServiceAccountKeysResponse> listServiceAccountKeysSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetServiceAccountKeyRequest,ServiceAccountKey> getServiceAccountKeySettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateServiceAccountKeyRequest,ServiceAccountKey> createServiceAccountKeySettings()
public com.google.api.gax.rpc.UnaryCallSettings<UploadServiceAccountKeyRequest,ServiceAccountKey> uploadServiceAccountKeySettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceAccountKeyRequest,com.google.protobuf.Empty> deleteServiceAccountKeySettings()
public com.google.api.gax.rpc.UnaryCallSettings<DisableServiceAccountKeyRequest,com.google.protobuf.Empty> disableServiceAccountKeySettings()
public com.google.api.gax.rpc.UnaryCallSettings<EnableServiceAccountKeyRequest,com.google.protobuf.Empty> enableServiceAccountKeySettings()
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<SignBlobRequest,SignBlobResponse> signBlobSettings()
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<SignJwtRequest,SignJwtResponse> signJwtSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public com.google.api.gax.rpc.PagedCallSettings<QueryGrantableRolesRequest,QueryGrantableRolesResponse,IAMClient.QueryGrantableRolesPagedResponse> queryGrantableRolesSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRolesRequest,ListRolesResponse,IAMClient.ListRolesPagedResponse> listRolesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRoleRequest,Role> getRoleSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateRoleRequest,Role> createRoleSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateRoleRequest,Role> updateRoleSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteRoleRequest,Role> deleteRoleSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteRoleRequest,Role> undeleteRoleSettings()
public com.google.api.gax.rpc.PagedCallSettings<QueryTestablePermissionsRequest,QueryTestablePermissionsResponse,IAMClient.QueryTestablePermissionsPagedResponse> queryTestablePermissionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<QueryAuditableServicesRequest,QueryAuditableServicesResponse> queryAuditableServicesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<LintPolicyRequest,LintPolicyResponse> lintPolicySettings()
public static final IAMSettings create(IAMStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static IAMSettings.Builder newBuilder()
public static IAMSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public IAMSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<IAMSettings>Copyright © 2025 Google LLC. All rights reserved.