publicclass NetworkSecuritySettingsextendsClientSettings<NetworkSecuritySettings>
Settings class to configure an instance of NetworkSecurityClient.
The default instance has everything set to sensible defaults:
- The default service address (networksecurity.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 getAuthorizationPolicy 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
NetworkSecuritySettings.BuildernetworkSecuritySettingsBuilder=
NetworkSecuritySettings.newBuilder();
networkSecuritySettingsBuilder
.getAuthorizationPolicySettings()
.setRetrySettings(
networkSecuritySettingsBuilder
.getAuthorizationPolicySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
NetworkSecuritySettingsnetworkSecuritySettings=networkSecuritySettingsBuilder.build();
Static Methods
create(NetworkSecurityStubSettings stub)
publicstaticfinalNetworkSecuritySettingscreate(NetworkSecurityStubSettingsstub)
publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
defaultGrpcTransportProviderBuilder()
publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
defaultTransportChannelProvider()
publicstaticTransportChannelProviderdefaultTransportChannelProvider()
getDefaultEndpoint()
publicstaticStringgetDefaultEndpoint()
Returns the default service endpoint.
| Returns |
| Type |
Description |
String |
getDefaultServiceScopes()
publicstaticList<String>getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
publicstaticNetworkSecuritySettings.BuildernewBuilder()
Returns a new builder for this class.
newBuilder(ClientContext clientContext)
publicstaticNetworkSecuritySettings.BuildernewBuilder(ClientContextclientContext)
Returns a new builder for this class.
Constructors
NetworkSecuritySettings(NetworkSecuritySettings.Builder settingsBuilder)
protectedNetworkSecuritySettings(NetworkSecuritySettings.BuildersettingsBuilder)
Methods
createAuthorizationPolicyOperationSettings()
publicOperationCallSettings<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>createAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to createAuthorizationPolicy.
createAuthorizationPolicySettings()
publicUnaryCallSettings<CreateAuthorizationPolicyRequest,Operation>createAuthorizationPolicySettings()
Returns the object with the settings used for calls to createAuthorizationPolicy.
createClientTlsPolicyOperationSettings()
publicOperationCallSettings<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>createClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to createClientTlsPolicy.
createClientTlsPolicySettings()
publicUnaryCallSettings<CreateClientTlsPolicyRequest,Operation>createClientTlsPolicySettings()
Returns the object with the settings used for calls to createClientTlsPolicy.
createServerTlsPolicyOperationSettings()
publicOperationCallSettings<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>createServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to createServerTlsPolicy.
createServerTlsPolicySettings()
publicUnaryCallSettings<CreateServerTlsPolicyRequest,Operation>createServerTlsPolicySettings()
Returns the object with the settings used for calls to createServerTlsPolicy.
deleteAuthorizationPolicyOperationSettings()
publicOperationCallSettings<DeleteAuthorizationPolicyRequest,Empty,OperationMetadata>deleteAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to deleteAuthorizationPolicy.
deleteAuthorizationPolicySettings()
publicUnaryCallSettings<DeleteAuthorizationPolicyRequest,Operation>deleteAuthorizationPolicySettings()
Returns the object with the settings used for calls to deleteAuthorizationPolicy.
deleteClientTlsPolicyOperationSettings()
publicOperationCallSettings<DeleteClientTlsPolicyRequest,Empty,OperationMetadata>deleteClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to deleteClientTlsPolicy.
deleteClientTlsPolicySettings()
publicUnaryCallSettings<DeleteClientTlsPolicyRequest,Operation>deleteClientTlsPolicySettings()
Returns the object with the settings used for calls to deleteClientTlsPolicy.
deleteServerTlsPolicyOperationSettings()
publicOperationCallSettings<DeleteServerTlsPolicyRequest,Empty,OperationMetadata>deleteServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to deleteServerTlsPolicy.
deleteServerTlsPolicySettings()
publicUnaryCallSettings<DeleteServerTlsPolicyRequest,Operation>deleteServerTlsPolicySettings()
Returns the object with the settings used for calls to deleteServerTlsPolicy.
getAuthorizationPolicySettings()
publicUnaryCallSettings<GetAuthorizationPolicyRequest,AuthorizationPolicy>getAuthorizationPolicySettings()
Returns the object with the settings used for calls to getAuthorizationPolicy.
getClientTlsPolicySettings()
publicUnaryCallSettings<GetClientTlsPolicyRequest,ClientTlsPolicy>getClientTlsPolicySettings()
Returns the object with the settings used for calls to getClientTlsPolicy.
getIamPolicySettings()
publicUnaryCallSettings<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> |
getLocationSettings()
publicUnaryCallSettings<GetLocationRequest,Location>getLocationSettings()
Returns the object with the settings used for calls to getLocation.
| Returns |
| Type |
Description |
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getServerTlsPolicySettings()
publicUnaryCallSettings<GetServerTlsPolicyRequest,ServerTlsPolicy>getServerTlsPolicySettings()
Returns the object with the settings used for calls to getServerTlsPolicy.
listAuthorizationPoliciesSettings()
publicPagedCallSettings<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse,NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse>listAuthorizationPoliciesSettings()
Returns the object with the settings used for calls to listAuthorizationPolicies.
listClientTlsPoliciesSettings()
publicPagedCallSettings<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse,NetworkSecurityClient.ListClientTlsPoliciesPagedResponse>listClientTlsPoliciesSettings()
Returns the object with the settings used for calls to listClientTlsPolicies.
listLocationsSettings()
publicPagedCallSettings<ListLocationsRequest,ListLocationsResponse,NetworkSecurityClient.ListLocationsPagedResponse>listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
listServerTlsPoliciesSettings()
publicPagedCallSettings<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse,NetworkSecurityClient.ListServerTlsPoliciesPagedResponse>listServerTlsPoliciesSettings()
Returns the object with the settings used for calls to listServerTlsPolicies.
setIamPolicySettings()
publicUnaryCallSettings<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()
publicUnaryCallSettings<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()
publicNetworkSecuritySettings.BuildertoBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateAuthorizationPolicyOperationSettings()
publicOperationCallSettings<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>updateAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to updateAuthorizationPolicy.
updateAuthorizationPolicySettings()
publicUnaryCallSettings<UpdateAuthorizationPolicyRequest,Operation>updateAuthorizationPolicySettings()
Returns the object with the settings used for calls to updateAuthorizationPolicy.
updateClientTlsPolicyOperationSettings()
publicOperationCallSettings<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>updateClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to updateClientTlsPolicy.
updateClientTlsPolicySettings()
publicUnaryCallSettings<UpdateClientTlsPolicyRequest,Operation>updateClientTlsPolicySettings()
Returns the object with the settings used for calls to updateClientTlsPolicy.
updateServerTlsPolicyOperationSettings()
publicOperationCallSettings<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>updateServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to updateServerTlsPolicy.
updateServerTlsPolicySettings()
publicUnaryCallSettings<UpdateServerTlsPolicyRequest,Operation>updateServerTlsPolicySettings()
Returns the object with the settings used for calls to updateServerTlsPolicy.