public class AccessContextManagerStubSettings extends StubSettings<AccessContextManagerStubSettings>
Settings class to configure an instance of AccessContextManagerStub.
The default instance has everything set to sensible defaults:
- The default service address (accesscontextmanager.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 getAccessPolicy 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
AccessContextManagerStubSettings.Builder accessContextManagerSettingsBuilder =
AccessContextManagerStubSettings.newBuilder();
accessContextManagerSettingsBuilder
.getAccessPolicySettings()
.setRetrySettings(
accessContextManagerSettingsBuilder
.getAccessPolicySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
AccessContextManagerStubSettings accessContextManagerSettings =
accessContextManagerSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static AccessContextManagerStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static AccessContextManagerStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static AccessContextManagerStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
AccessContextManagerStubSettings(AccessContextManagerStubSettings.Builder settingsBuilder)
protected AccessContextManagerStubSettings(AccessContextManagerStubSettings.Builder settingsBuilder)
Parameter
Methods
commitServicePerimetersOperationSettings()
public OperationCallSettings<CommitServicePerimetersRequest,CommitServicePerimetersResponse,AccessContextManagerOperationMetadata> commitServicePerimetersOperationSettings()
Returns the object with the settings used for calls to commitServicePerimeters.
Returns
public UnaryCallSettings<CommitServicePerimetersRequest,Operation> commitServicePerimetersSettings()
Returns the object with the settings used for calls to commitServicePerimeters.
Returns
createAccessLevelOperationSettings()
public OperationCallSettings<CreateAccessLevelRequest,AccessLevel,AccessContextManagerOperationMetadata> createAccessLevelOperationSettings()
Returns the object with the settings used for calls to createAccessLevel.
Returns
createAccessLevelSettings()
public UnaryCallSettings<CreateAccessLevelRequest,Operation> createAccessLevelSettings()
Returns the object with the settings used for calls to createAccessLevel.
Returns
createAccessPolicyOperationSettings()
public OperationCallSettings<AccessPolicy,AccessPolicy,AccessContextManagerOperationMetadata> createAccessPolicyOperationSettings()
Returns the object with the settings used for calls to createAccessPolicy.
Returns
createAccessPolicySettings()
public UnaryCallSettings<AccessPolicy,Operation> createAccessPolicySettings()
Returns the object with the settings used for calls to createAccessPolicy.
Returns
createGcpUserAccessBindingOperationSettings()
public OperationCallSettings<CreateGcpUserAccessBindingRequest,GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> createGcpUserAccessBindingOperationSettings()
Returns the object with the settings used for calls to createGcpUserAccessBinding.
Returns
createGcpUserAccessBindingSettings()
public UnaryCallSettings<CreateGcpUserAccessBindingRequest,Operation> createGcpUserAccessBindingSettings()
Returns the object with the settings used for calls to createGcpUserAccessBinding.
Returns
createServicePerimeterOperationSettings()
public OperationCallSettings<CreateServicePerimeterRequest,ServicePerimeter,AccessContextManagerOperationMetadata> createServicePerimeterOperationSettings()
Returns the object with the settings used for calls to createServicePerimeter.
Returns
createServicePerimeterSettings()
public UnaryCallSettings<CreateServicePerimeterRequest,Operation> createServicePerimeterSettings()
Returns the object with the settings used for calls to createServicePerimeter.
Returns
createStub()
public AccessContextManagerStub createStub()
Returns
Exceptions
deleteAccessLevelOperationSettings()
public OperationCallSettings<DeleteAccessLevelRequest,Empty,AccessContextManagerOperationMetadata> deleteAccessLevelOperationSettings()
Returns the object with the settings used for calls to deleteAccessLevel.
Returns
deleteAccessLevelSettings()
public UnaryCallSettings<DeleteAccessLevelRequest,Operation> deleteAccessLevelSettings()
Returns the object with the settings used for calls to deleteAccessLevel.
Returns
deleteAccessPolicyOperationSettings()
public OperationCallSettings<DeleteAccessPolicyRequest,Empty,AccessContextManagerOperationMetadata> deleteAccessPolicyOperationSettings()
Returns the object with the settings used for calls to deleteAccessPolicy.
Returns
deleteAccessPolicySettings()
public UnaryCallSettings<DeleteAccessPolicyRequest,Operation> deleteAccessPolicySettings()
Returns the object with the settings used for calls to deleteAccessPolicy.
Returns
deleteGcpUserAccessBindingOperationSettings()
public OperationCallSettings<DeleteGcpUserAccessBindingRequest,Empty,GcpUserAccessBindingOperationMetadata> deleteGcpUserAccessBindingOperationSettings()
Returns the object with the settings used for calls to deleteGcpUserAccessBinding.
Returns
deleteGcpUserAccessBindingSettings()
public UnaryCallSettings<DeleteGcpUserAccessBindingRequest,Operation> deleteGcpUserAccessBindingSettings()
Returns the object with the settings used for calls to deleteGcpUserAccessBinding.
Returns
deleteServicePerimeterOperationSettings()
public OperationCallSettings<DeleteServicePerimeterRequest,Empty,AccessContextManagerOperationMetadata> deleteServicePerimeterOperationSettings()
Returns the object with the settings used for calls to deleteServicePerimeter.
Returns
deleteServicePerimeterSettings()
public UnaryCallSettings<DeleteServicePerimeterRequest,Operation> deleteServicePerimeterSettings()
Returns the object with the settings used for calls to deleteServicePerimeter.
Returns
getAccessLevelSettings()
public UnaryCallSettings<GetAccessLevelRequest,AccessLevel> getAccessLevelSettings()
Returns the object with the settings used for calls to getAccessLevel.
Returns
getAccessPolicySettings()
public UnaryCallSettings<GetAccessPolicyRequest,AccessPolicy> getAccessPolicySettings()
Returns the object with the settings used for calls to getAccessPolicy.
Returns
getGcpUserAccessBindingSettings()
public UnaryCallSettings<GetGcpUserAccessBindingRequest,GcpUserAccessBinding> getGcpUserAccessBindingSettings()
Returns the object with the settings used for calls to getGcpUserAccessBinding.
Returns
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> | |
getServicePerimeterSettings()
public UnaryCallSettings<GetServicePerimeterRequest,ServicePerimeter> getServicePerimeterSettings()
Returns the object with the settings used for calls to getServicePerimeter.
Returns
listAccessLevelsSettings()
public PagedCallSettings<ListAccessLevelsRequest,ListAccessLevelsResponse,AccessContextManagerClient.ListAccessLevelsPagedResponse> listAccessLevelsSettings()
Returns the object with the settings used for calls to listAccessLevels.
Returns
listAccessPoliciesSettings()
public PagedCallSettings<ListAccessPoliciesRequest,ListAccessPoliciesResponse,AccessContextManagerClient.ListAccessPoliciesPagedResponse> listAccessPoliciesSettings()
Returns the object with the settings used for calls to listAccessPolicies.
Returns
listGcpUserAccessBindingsSettings()
public PagedCallSettings<ListGcpUserAccessBindingsRequest,ListGcpUserAccessBindingsResponse,AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse> listGcpUserAccessBindingsSettings()
Returns the object with the settings used for calls to listGcpUserAccessBindings.
Returns
public PagedCallSettings<ListServicePerimetersRequest,ListServicePerimetersResponse,AccessContextManagerClient.ListServicePerimetersPagedResponse> listServicePerimetersSettings()
Returns the object with the settings used for calls to listServicePerimeters.
Returns
replaceAccessLevelsOperationSettings()
public OperationCallSettings<ReplaceAccessLevelsRequest,ReplaceAccessLevelsResponse,AccessContextManagerOperationMetadata> replaceAccessLevelsOperationSettings()
Returns the object with the settings used for calls to replaceAccessLevels.
Returns
replaceAccessLevelsSettings()
public UnaryCallSettings<ReplaceAccessLevelsRequest,Operation> replaceAccessLevelsSettings()
Returns the object with the settings used for calls to replaceAccessLevels.
Returns
replaceServicePerimetersOperationSettings()
public OperationCallSettings<ReplaceServicePerimetersRequest,ReplaceServicePerimetersResponse,AccessContextManagerOperationMetadata> replaceServicePerimetersOperationSettings()
Returns the object with the settings used for calls to replaceServicePerimeters.
Returns
public UnaryCallSettings<ReplaceServicePerimetersRequest,Operation> replaceServicePerimetersSettings()
Returns the object with the settings used for calls to replaceServicePerimeters.
Returns
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> | |
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 AccessContextManagerStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateAccessLevelOperationSettings()
public OperationCallSettings<UpdateAccessLevelRequest,AccessLevel,AccessContextManagerOperationMetadata> updateAccessLevelOperationSettings()
Returns the object with the settings used for calls to updateAccessLevel.
Returns
updateAccessLevelSettings()
public UnaryCallSettings<UpdateAccessLevelRequest,Operation> updateAccessLevelSettings()
Returns the object with the settings used for calls to updateAccessLevel.
Returns
updateAccessPolicyOperationSettings()
public OperationCallSettings<UpdateAccessPolicyRequest,AccessPolicy,AccessContextManagerOperationMetadata> updateAccessPolicyOperationSettings()
Returns the object with the settings used for calls to updateAccessPolicy.
Returns
updateAccessPolicySettings()
public UnaryCallSettings<UpdateAccessPolicyRequest,Operation> updateAccessPolicySettings()
Returns the object with the settings used for calls to updateAccessPolicy.
Returns
updateGcpUserAccessBindingOperationSettings()
public OperationCallSettings<UpdateGcpUserAccessBindingRequest,GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> updateGcpUserAccessBindingOperationSettings()
Returns the object with the settings used for calls to updateGcpUserAccessBinding.
Returns
updateGcpUserAccessBindingSettings()
public UnaryCallSettings<UpdateGcpUserAccessBindingRequest,Operation> updateGcpUserAccessBindingSettings()
Returns the object with the settings used for calls to updateGcpUserAccessBinding.
Returns
updateServicePerimeterOperationSettings()
public OperationCallSettings<UpdateServicePerimeterRequest,ServicePerimeter,AccessContextManagerOperationMetadata> updateServicePerimeterOperationSettings()
Returns the object with the settings used for calls to updateServicePerimeter.
Returns
updateServicePerimeterSettings()
public UnaryCallSettings<UpdateServicePerimeterRequest,Operation> updateServicePerimeterSettings()
Returns the object with the settings used for calls to updateServicePerimeter.
Returns