Class IAMStubSettings


  • @Generated("by gapic-generator-java")
    public class IAMStubSettings
    extends com.google.api.gax.rpc.StubSettings<IAMStubSettings>
    Settings class to configure an instance of IAMStub.

    The default instance has everything set to sensible defaults:

    • The default service address (iam.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 getServiceAccount 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
     IAMStubSettings.Builder iAMSettingsBuilder = IAMStubSettings.newBuilder();
     iAMSettingsBuilder
         .getServiceAccountSettings()
         .setRetrySettings(
             iAMSettingsBuilder
                 .getServiceAccountSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     IAMStubSettings iAMSettings = iAMSettingsBuilder.build();
     
    • Method Detail

      • getServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetServiceAccountRequest,​ServiceAccount> getServiceAccountSettings()
        Returns the object with the settings used for calls to getServiceAccount.
      • createServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateServiceAccountRequest,​ServiceAccount> createServiceAccountSettings()
        Returns the object with the settings used for calls to createServiceAccount.
      • updateServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ServiceAccount,​ServiceAccount> updateServiceAccountSettings()
        Returns the object with the settings used for calls to updateServiceAccount.
      • patchServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<PatchServiceAccountRequest,​ServiceAccount> patchServiceAccountSettings()
        Returns the object with the settings used for calls to patchServiceAccount.
      • deleteServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceAccountRequest,​com.google.protobuf.Empty> deleteServiceAccountSettings()
        Returns the object with the settings used for calls to deleteServiceAccount.
      • enableServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<EnableServiceAccountRequest,​com.google.protobuf.Empty> enableServiceAccountSettings()
        Returns the object with the settings used for calls to enableServiceAccount.
      • disableServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DisableServiceAccountRequest,​com.google.protobuf.Empty> disableServiceAccountSettings()
        Returns the object with the settings used for calls to disableServiceAccount.
      • getServiceAccountKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetServiceAccountKeyRequest,​ServiceAccountKey> getServiceAccountKeySettings()
        Returns the object with the settings used for calls to getServiceAccountKey.
      • createServiceAccountKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateServiceAccountKeyRequest,​ServiceAccountKey> createServiceAccountKeySettings()
        Returns the object with the settings used for calls to createServiceAccountKey.
      • uploadServiceAccountKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<UploadServiceAccountKeyRequest,​ServiceAccountKey> uploadServiceAccountKeySettings()
        Returns the object with the settings used for calls to uploadServiceAccountKey.
      • deleteServiceAccountKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceAccountKeyRequest,​com.google.protobuf.Empty> deleteServiceAccountKeySettings()
        Returns the object with the settings used for calls to deleteServiceAccountKey.
      • disableServiceAccountKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<DisableServiceAccountKeyRequest,​com.google.protobuf.Empty> disableServiceAccountKeySettings()
        Returns the object with the settings used for calls to disableServiceAccountKey.
      • enableServiceAccountKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<EnableServiceAccountKeyRequest,​com.google.protobuf.Empty> enableServiceAccountKeySettings()
        Returns the object with the settings used for calls to enableServiceAccountKey.
      • signBlobSettings

        @Deprecated
        public com.google.api.gax.rpc.UnaryCallSettings<SignBlobRequest,​SignBlobResponse> signBlobSettings()
        Deprecated.
        This method is deprecated and will be removed in the next major version update.
        Returns the object with the settings used for calls to signBlob.
      • signJwtSettings

        @Deprecated
        public com.google.api.gax.rpc.UnaryCallSettings<SignJwtRequest,​SignJwtResponse> signJwtSettings()
        Deprecated.
        This method is deprecated and will be removed in the next major version update.
        Returns the object with the settings used for calls to signJwt.
      • getIamPolicySettings

        public 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.
      • setIamPolicySettings

        public 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.
      • testIamPermissionsSettings

        public 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.
      • getRoleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetRoleRequest,​Role> getRoleSettings()
        Returns the object with the settings used for calls to getRole.
      • createRoleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateRoleRequest,​Role> createRoleSettings()
        Returns the object with the settings used for calls to createRole.
      • updateRoleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateRoleRequest,​Role> updateRoleSettings()
        Returns the object with the settings used for calls to updateRole.
      • deleteRoleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteRoleRequest,​Role> deleteRoleSettings()
        Returns the object with the settings used for calls to deleteRole.
      • undeleteRoleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UndeleteRoleRequest,​Role> undeleteRoleSettings()
        Returns the object with the settings used for calls to undeleteRole.
      • lintPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<LintPolicyRequest,​LintPolicyResponse> lintPolicySettings()
        Returns the object with the settings used for calls to lintPolicy.
      • defaultExecutorProviderBuilder

        public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
        Returns a builder for the default ExecutorProvider for this service.
      • 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.
      • defaultCredentialsProviderBuilder

        public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
        Returns a builder for the default credentials for this service.
      • defaultGrpcTransportProviderBuilder

        public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
        Returns a builder for the default ChannelProvider for this service.
      • defaultTransportChannelProvider

        public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
      • defaultApiClientHeaderProviderBuilder

        @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
      • newBuilder

        public static IAMStubSettings.Builder newBuilder​(com.google.api.gax.rpc.ClientContext clientContext)
        Returns a new builder for this class.
      • toBuilder

        public IAMStubSettings.Builder toBuilder()
        Returns a builder containing all the values of this settings class.
        Specified by:
        toBuilder in class com.google.api.gax.rpc.StubSettings<IAMStubSettings>