Class NetworkSecuritySettings (0.19.0)

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();

Inheritance

java.lang.Object > ClientSettings > NetworkSecuritySettings

Static Methods

create(NetworkSecurityStubSettings stub)

publicstaticfinalNetworkSecuritySettingscreate(NetworkSecurityStubSettingsstub)
Parameter
Name Description
stub NetworkSecurityStubSettings
Returns
Type Description
NetworkSecuritySettings
Exceptions
Type Description
IOException

defaultApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
Type Description
Builder

defaultTransportChannelProvider()

publicstaticTransportChannelProviderdefaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

publicstaticStringgetDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

publicstaticNetworkSecuritySettings.BuildernewBuilder()

Returns a new builder for this class.

Returns
Type Description
NetworkSecuritySettings.Builder

newBuilder(ClientContext clientContext)

publicstaticNetworkSecuritySettings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
NetworkSecuritySettings.Builder

Constructors

NetworkSecuritySettings(NetworkSecuritySettings.Builder settingsBuilder)

protectedNetworkSecuritySettings(NetworkSecuritySettings.BuildersettingsBuilder)
Parameter
Name Description
settingsBuilder NetworkSecuritySettings.Builder

Methods

createAuthorizationPolicyOperationSettings()

publicOperationCallSettings<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>createAuthorizationPolicyOperationSettings()

Returns the object with the settings used for calls to createAuthorizationPolicy.

Returns
Type Description
OperationCallSettings<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>

createAuthorizationPolicySettings()

publicUnaryCallSettings<CreateAuthorizationPolicyRequest,Operation>createAuthorizationPolicySettings()

Returns the object with the settings used for calls to createAuthorizationPolicy.

Returns
Type Description
UnaryCallSettings<CreateAuthorizationPolicyRequest,Operation>

createClientTlsPolicyOperationSettings()

publicOperationCallSettings<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>createClientTlsPolicyOperationSettings()

Returns the object with the settings used for calls to createClientTlsPolicy.

Returns
Type Description
OperationCallSettings<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>

createClientTlsPolicySettings()

publicUnaryCallSettings<CreateClientTlsPolicyRequest,Operation>createClientTlsPolicySettings()

Returns the object with the settings used for calls to createClientTlsPolicy.

Returns
Type Description
UnaryCallSettings<CreateClientTlsPolicyRequest,Operation>

createServerTlsPolicyOperationSettings()

publicOperationCallSettings<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>createServerTlsPolicyOperationSettings()

Returns the object with the settings used for calls to createServerTlsPolicy.

Returns
Type Description
OperationCallSettings<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>

createServerTlsPolicySettings()

publicUnaryCallSettings<CreateServerTlsPolicyRequest,Operation>createServerTlsPolicySettings()

Returns the object with the settings used for calls to createServerTlsPolicy.

Returns
Type Description
UnaryCallSettings<CreateServerTlsPolicyRequest,Operation>

deleteAuthorizationPolicyOperationSettings()

publicOperationCallSettings<DeleteAuthorizationPolicyRequest,Empty,OperationMetadata>deleteAuthorizationPolicyOperationSettings()

Returns the object with the settings used for calls to deleteAuthorizationPolicy.

Returns
Type Description
OperationCallSettings<DeleteAuthorizationPolicyRequest,Empty,OperationMetadata>

deleteAuthorizationPolicySettings()

publicUnaryCallSettings<DeleteAuthorizationPolicyRequest,Operation>deleteAuthorizationPolicySettings()

Returns the object with the settings used for calls to deleteAuthorizationPolicy.

Returns
Type Description
UnaryCallSettings<DeleteAuthorizationPolicyRequest,Operation>

deleteClientTlsPolicyOperationSettings()

publicOperationCallSettings<DeleteClientTlsPolicyRequest,Empty,OperationMetadata>deleteClientTlsPolicyOperationSettings()

Returns the object with the settings used for calls to deleteClientTlsPolicy.

Returns
Type Description
OperationCallSettings<DeleteClientTlsPolicyRequest,Empty,OperationMetadata>

deleteClientTlsPolicySettings()

publicUnaryCallSettings<DeleteClientTlsPolicyRequest,Operation>deleteClientTlsPolicySettings()

Returns the object with the settings used for calls to deleteClientTlsPolicy.

Returns
Type Description
UnaryCallSettings<DeleteClientTlsPolicyRequest,Operation>

deleteServerTlsPolicyOperationSettings()

publicOperationCallSettings<DeleteServerTlsPolicyRequest,Empty,OperationMetadata>deleteServerTlsPolicyOperationSettings()

Returns the object with the settings used for calls to deleteServerTlsPolicy.

Returns
Type Description
OperationCallSettings<DeleteServerTlsPolicyRequest,Empty,OperationMetadata>

deleteServerTlsPolicySettings()

publicUnaryCallSettings<DeleteServerTlsPolicyRequest,Operation>deleteServerTlsPolicySettings()

Returns the object with the settings used for calls to deleteServerTlsPolicy.

Returns
Type Description
UnaryCallSettings<DeleteServerTlsPolicyRequest,Operation>

getAuthorizationPolicySettings()

publicUnaryCallSettings<GetAuthorizationPolicyRequest,AuthorizationPolicy>getAuthorizationPolicySettings()

Returns the object with the settings used for calls to getAuthorizationPolicy.

Returns
Type Description
UnaryCallSettings<GetAuthorizationPolicyRequest,AuthorizationPolicy>

getClientTlsPolicySettings()

publicUnaryCallSettings<GetClientTlsPolicyRequest,ClientTlsPolicy>getClientTlsPolicySettings()

Returns the object with the settings used for calls to getClientTlsPolicy.

Returns
Type Description
UnaryCallSettings<GetClientTlsPolicyRequest,ClientTlsPolicy>

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.

Returns
Type Description
UnaryCallSettings<GetServerTlsPolicyRequest,ServerTlsPolicy>

listAuthorizationPoliciesSettings()

publicPagedCallSettings<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse,NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse>listAuthorizationPoliciesSettings()

Returns the object with the settings used for calls to listAuthorizationPolicies.

Returns
Type Description
PagedCallSettings<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse,ListAuthorizationPoliciesPagedResponse>

listClientTlsPoliciesSettings()

publicPagedCallSettings<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse,NetworkSecurityClient.ListClientTlsPoliciesPagedResponse>listClientTlsPoliciesSettings()

Returns the object with the settings used for calls to listClientTlsPolicies.

Returns
Type Description
PagedCallSettings<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse,ListClientTlsPoliciesPagedResponse>

listLocationsSettings()

publicPagedCallSettings<ListLocationsRequest,ListLocationsResponse,NetworkSecurityClient.ListLocationsPagedResponse>listLocationsSettings()

Returns the object with the settings used for calls to listLocations.

Returns
Type Description
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listServerTlsPoliciesSettings()

publicPagedCallSettings<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse,NetworkSecurityClient.ListServerTlsPoliciesPagedResponse>listServerTlsPoliciesSettings()

Returns the object with the settings used for calls to listServerTlsPolicies.

Returns
Type Description
PagedCallSettings<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse,ListServerTlsPoliciesPagedResponse>

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.

Returns
Type Description
NetworkSecuritySettings.Builder
Overrides

updateAuthorizationPolicyOperationSettings()

publicOperationCallSettings<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>updateAuthorizationPolicyOperationSettings()

Returns the object with the settings used for calls to updateAuthorizationPolicy.

Returns
Type Description
OperationCallSettings<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>

updateAuthorizationPolicySettings()

publicUnaryCallSettings<UpdateAuthorizationPolicyRequest,Operation>updateAuthorizationPolicySettings()

Returns the object with the settings used for calls to updateAuthorizationPolicy.

Returns
Type Description
UnaryCallSettings<UpdateAuthorizationPolicyRequest,Operation>

updateClientTlsPolicyOperationSettings()

publicOperationCallSettings<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>updateClientTlsPolicyOperationSettings()

Returns the object with the settings used for calls to updateClientTlsPolicy.

Returns
Type Description
OperationCallSettings<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>

updateClientTlsPolicySettings()

publicUnaryCallSettings<UpdateClientTlsPolicyRequest,Operation>updateClientTlsPolicySettings()

Returns the object with the settings used for calls to updateClientTlsPolicy.

Returns
Type Description
UnaryCallSettings<UpdateClientTlsPolicyRequest,Operation>

updateServerTlsPolicyOperationSettings()

publicOperationCallSettings<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>updateServerTlsPolicyOperationSettings()

Returns the object with the settings used for calls to updateServerTlsPolicy.

Returns
Type Description
OperationCallSettings<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>

updateServerTlsPolicySettings()

publicUnaryCallSettings<UpdateServerTlsPolicyRequest,Operation>updateServerTlsPolicySettings()

Returns the object with the settings used for calls to updateServerTlsPolicy.

Returns
Type Description
UnaryCallSettings<UpdateServerTlsPolicyRequest,Operation>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.