Class NetworkSecuritySettings (0.6.4)

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
Returns
Type Description
Exceptions
Type Description

defaultApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
Returns
Type Description

defaultCredentialsProviderBuilder()

publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description

defaultExecutorProviderBuilder()

publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description

defaultGrpcTransportProviderBuilder()

publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
Type Description

defaultHttpJsonTransportProviderBuilder()

publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
Type Description

defaultTransportChannelProvider()

publicstaticTransportChannelProviderdefaultTransportChannelProvider()
Returns
Type Description

getDefaultEndpoint()

publicstaticStringgetDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description

newBuilder()

publicstaticNetworkSecuritySettings.BuildernewBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description

newBuilder(ClientContext clientContext)

publicstaticNetworkSecuritySettings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description

newHttpJsonBuilder()

publicstaticNetworkSecuritySettings.BuildernewHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description

Constructors

NetworkSecuritySettings(NetworkSecuritySettings.Builder settingsBuilder)

protectedNetworkSecuritySettings(NetworkSecuritySettings.BuildersettingsBuilder)
Parameter
Name Description

Methods

createAuthorizationPolicyOperationSettings()

publicOperationCallSettings<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>createAuthorizationPolicyOperationSettings()

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

Returns
Type Description

createAuthorizationPolicySettings()

publicUnaryCallSettings<CreateAuthorizationPolicyRequest,Operation>createAuthorizationPolicySettings()

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

Returns
Type Description

createClientTlsPolicyOperationSettings()

publicOperationCallSettings<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>createClientTlsPolicyOperationSettings()

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

Returns
Type Description

createClientTlsPolicySettings()

publicUnaryCallSettings<CreateClientTlsPolicyRequest,Operation>createClientTlsPolicySettings()

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

Returns
Type Description

createServerTlsPolicyOperationSettings()

publicOperationCallSettings<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>createServerTlsPolicyOperationSettings()

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

Returns
Type Description

createServerTlsPolicySettings()

publicUnaryCallSettings<CreateServerTlsPolicyRequest,Operation>createServerTlsPolicySettings()

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

Returns
Type Description

deleteAuthorizationPolicyOperationSettings()

publicOperationCallSettings<DeleteAuthorizationPolicyRequest,Empty,OperationMetadata>deleteAuthorizationPolicyOperationSettings()

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

Returns
Type Description

deleteAuthorizationPolicySettings()

publicUnaryCallSettings<DeleteAuthorizationPolicyRequest,Operation>deleteAuthorizationPolicySettings()

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

Returns
Type Description

deleteClientTlsPolicyOperationSettings()

publicOperationCallSettings<DeleteClientTlsPolicyRequest,Empty,OperationMetadata>deleteClientTlsPolicyOperationSettings()

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

Returns
Type Description

deleteClientTlsPolicySettings()

publicUnaryCallSettings<DeleteClientTlsPolicyRequest,Operation>deleteClientTlsPolicySettings()

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

Returns
Type Description

deleteServerTlsPolicyOperationSettings()

publicOperationCallSettings<DeleteServerTlsPolicyRequest,Empty,OperationMetadata>deleteServerTlsPolicyOperationSettings()

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

Returns
Type Description

deleteServerTlsPolicySettings()

publicUnaryCallSettings<DeleteServerTlsPolicyRequest,Operation>deleteServerTlsPolicySettings()

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

Returns
Type Description

getAuthorizationPolicySettings()

publicUnaryCallSettings<GetAuthorizationPolicyRequest,AuthorizationPolicy>getAuthorizationPolicySettings()

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

Returns
Type Description

getClientTlsPolicySettings()

publicUnaryCallSettings<GetClientTlsPolicyRequest,ClientTlsPolicy>getClientTlsPolicySettings()

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

Returns
Type Description

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

listAuthorizationPoliciesSettings()

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

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

Returns
Type Description

listClientTlsPoliciesSettings()

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

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

Returns
Type Description

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

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
Overrides

updateAuthorizationPolicyOperationSettings()

publicOperationCallSettings<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>updateAuthorizationPolicyOperationSettings()

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

Returns
Type Description

updateAuthorizationPolicySettings()

publicUnaryCallSettings<UpdateAuthorizationPolicyRequest,Operation>updateAuthorizationPolicySettings()

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

Returns
Type Description

updateClientTlsPolicyOperationSettings()

publicOperationCallSettings<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>updateClientTlsPolicyOperationSettings()

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

Returns
Type Description

updateClientTlsPolicySettings()

publicUnaryCallSettings<UpdateClientTlsPolicyRequest,Operation>updateClientTlsPolicySettings()

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

Returns
Type Description

updateServerTlsPolicyOperationSettings()

publicOperationCallSettings<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>updateServerTlsPolicyOperationSettings()

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

Returns
Type Description

updateServerTlsPolicySettings()

publicUnaryCallSettings<UpdateServerTlsPolicyRequest,Operation>updateServerTlsPolicySettings()

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

Returns
Type Description

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.