Class NetworkSecurityStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<NetworkSecurityStubSettings>
-
- com.google.cloud.networksecurity.v1.stub.NetworkSecurityStubSettings
-
@Generated("by gapic-generator-java") public class NetworkSecurityStubSettings extends com.google.api.gax.rpc.StubSettings<NetworkSecurityStubSettings>
Settings class to configure an instance ofNetworkSecurityStub
.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 NetworkSecurityStubSettings.Builder networkSecuritySettingsBuilder = NetworkSecurityStubSettings.newBuilder(); networkSecuritySettingsBuilder .getAuthorizationPolicySettings() .setRetrySettings( networkSecuritySettingsBuilder .getAuthorizationPolicySettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); NetworkSecurityStubSettings networkSecuritySettings = networkSecuritySettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkSecurityStubSettings.Builder
Builder for NetworkSecurityStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
NetworkSecurityStubSettings(NetworkSecurityStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.OperationCallSettings<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>
createAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to createAuthorizationPolicy.com.google.api.gax.rpc.UnaryCallSettings<CreateAuthorizationPolicyRequest,com.google.longrunning.Operation>
createAuthorizationPolicySettings()
Returns the object with the settings used for calls to createAuthorizationPolicy.com.google.api.gax.rpc.OperationCallSettings<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>
createClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to createClientTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<CreateClientTlsPolicyRequest,com.google.longrunning.Operation>
createClientTlsPolicySettings()
Returns the object with the settings used for calls to createClientTlsPolicy.com.google.api.gax.rpc.OperationCallSettings<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>
createServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to createServerTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<CreateServerTlsPolicyRequest,com.google.longrunning.Operation>
createServerTlsPolicySettings()
Returns the object with the settings used for calls to createServerTlsPolicy.NetworkSecurityStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.OperationCallSettings<DeleteAuthorizationPolicyRequest,com.google.protobuf.Empty,OperationMetadata>
deleteAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to deleteAuthorizationPolicy.com.google.api.gax.rpc.UnaryCallSettings<DeleteAuthorizationPolicyRequest,com.google.longrunning.Operation>
deleteAuthorizationPolicySettings()
Returns the object with the settings used for calls to deleteAuthorizationPolicy.com.google.api.gax.rpc.OperationCallSettings<DeleteClientTlsPolicyRequest,com.google.protobuf.Empty,OperationMetadata>
deleteClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to deleteClientTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<DeleteClientTlsPolicyRequest,com.google.longrunning.Operation>
deleteClientTlsPolicySettings()
Returns the object with the settings used for calls to deleteClientTlsPolicy.com.google.api.gax.rpc.OperationCallSettings<DeleteServerTlsPolicyRequest,com.google.protobuf.Empty,OperationMetadata>
deleteServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to deleteServerTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<DeleteServerTlsPolicyRequest,com.google.longrunning.Operation>
deleteServerTlsPolicySettings()
Returns the object with the settings used for calls to deleteServerTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<GetAuthorizationPolicyRequest,AuthorizationPolicy>
getAuthorizationPolicySettings()
Returns the object with the settings used for calls to getAuthorizationPolicy.com.google.api.gax.rpc.UnaryCallSettings<GetClientTlsPolicyRequest,ClientTlsPolicy>
getClientTlsPolicySettings()
Returns the object with the settings used for calls to getClientTlsPolicy.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.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.com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the object with the settings used for calls to getLocation.com.google.api.gax.rpc.UnaryCallSettings<GetServerTlsPolicyRequest,ServerTlsPolicy>
getServerTlsPolicySettings()
Returns the object with the settings used for calls to getServerTlsPolicy.com.google.api.gax.rpc.PagedCallSettings<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse,NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse>
listAuthorizationPoliciesSettings()
Returns the object with the settings used for calls to listAuthorizationPolicies.com.google.api.gax.rpc.PagedCallSettings<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse,NetworkSecurityClient.ListClientTlsPoliciesPagedResponse>
listClientTlsPoliciesSettings()
Returns the object with the settings used for calls to listClientTlsPolicies.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,NetworkSecurityClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse,NetworkSecurityClient.ListServerTlsPoliciesPagedResponse>
listServerTlsPoliciesSettings()
Returns the object with the settings used for calls to listServerTlsPolicies.static NetworkSecurityStubSettings.Builder
newBuilder()
Returns a new builder for this class.static NetworkSecurityStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.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.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.NetworkSecurityStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>
updateAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to updateAuthorizationPolicy.com.google.api.gax.rpc.UnaryCallSettings<UpdateAuthorizationPolicyRequest,com.google.longrunning.Operation>
updateAuthorizationPolicySettings()
Returns the object with the settings used for calls to updateAuthorizationPolicy.com.google.api.gax.rpc.OperationCallSettings<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>
updateClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to updateClientTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<UpdateClientTlsPolicyRequest,com.google.longrunning.Operation>
updateClientTlsPolicySettings()
Returns the object with the settings used for calls to updateClientTlsPolicy.com.google.api.gax.rpc.OperationCallSettings<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>
updateServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to updateServerTlsPolicy.com.google.api.gax.rpc.UnaryCallSettings<UpdateServerTlsPolicyRequest,com.google.longrunning.Operation>
updateServerTlsPolicySettings()
Returns the object with the settings used for calls to updateServerTlsPolicy.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
NetworkSecurityStubSettings
protected NetworkSecurityStubSettings(NetworkSecurityStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listAuthorizationPoliciesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse,NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesSettings()
Returns the object with the settings used for calls to listAuthorizationPolicies.
-
getAuthorizationPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<GetAuthorizationPolicyRequest,AuthorizationPolicy> getAuthorizationPolicySettings()
Returns the object with the settings used for calls to getAuthorizationPolicy.
-
createAuthorizationPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateAuthorizationPolicyRequest,com.google.longrunning.Operation> createAuthorizationPolicySettings()
Returns the object with the settings used for calls to createAuthorizationPolicy.
-
createAuthorizationPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata> createAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to createAuthorizationPolicy.
-
updateAuthorizationPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateAuthorizationPolicyRequest,com.google.longrunning.Operation> updateAuthorizationPolicySettings()
Returns the object with the settings used for calls to updateAuthorizationPolicy.
-
updateAuthorizationPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata> updateAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to updateAuthorizationPolicy.
-
deleteAuthorizationPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteAuthorizationPolicyRequest,com.google.longrunning.Operation> deleteAuthorizationPolicySettings()
Returns the object with the settings used for calls to deleteAuthorizationPolicy.
-
deleteAuthorizationPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteAuthorizationPolicyRequest,com.google.protobuf.Empty,OperationMetadata> deleteAuthorizationPolicyOperationSettings()
Returns the object with the settings used for calls to deleteAuthorizationPolicy.
-
listServerTlsPoliciesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse,NetworkSecurityClient.ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesSettings()
Returns the object with the settings used for calls to listServerTlsPolicies.
-
getServerTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<GetServerTlsPolicyRequest,ServerTlsPolicy> getServerTlsPolicySettings()
Returns the object with the settings used for calls to getServerTlsPolicy.
-
createServerTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateServerTlsPolicyRequest,com.google.longrunning.Operation> createServerTlsPolicySettings()
Returns the object with the settings used for calls to createServerTlsPolicy.
-
createServerTlsPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata> createServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to createServerTlsPolicy.
-
updateServerTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateServerTlsPolicyRequest,com.google.longrunning.Operation> updateServerTlsPolicySettings()
Returns the object with the settings used for calls to updateServerTlsPolicy.
-
updateServerTlsPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata> updateServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to updateServerTlsPolicy.
-
deleteServerTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteServerTlsPolicyRequest,com.google.longrunning.Operation> deleteServerTlsPolicySettings()
Returns the object with the settings used for calls to deleteServerTlsPolicy.
-
deleteServerTlsPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteServerTlsPolicyRequest,com.google.protobuf.Empty,OperationMetadata> deleteServerTlsPolicyOperationSettings()
Returns the object with the settings used for calls to deleteServerTlsPolicy.
-
listClientTlsPoliciesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse,NetworkSecurityClient.ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesSettings()
Returns the object with the settings used for calls to listClientTlsPolicies.
-
getClientTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<GetClientTlsPolicyRequest,ClientTlsPolicy> getClientTlsPolicySettings()
Returns the object with the settings used for calls to getClientTlsPolicy.
-
createClientTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateClientTlsPolicyRequest,com.google.longrunning.Operation> createClientTlsPolicySettings()
Returns the object with the settings used for calls to createClientTlsPolicy.
-
createClientTlsPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata> createClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to createClientTlsPolicy.
-
updateClientTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateClientTlsPolicyRequest,com.google.longrunning.Operation> updateClientTlsPolicySettings()
Returns the object with the settings used for calls to updateClientTlsPolicy.
-
updateClientTlsPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata> updateClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to updateClientTlsPolicy.
-
deleteClientTlsPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteClientTlsPolicyRequest,com.google.longrunning.Operation> deleteClientTlsPolicySettings()
Returns the object with the settings used for calls to deleteClientTlsPolicy.
-
deleteClientTlsPolicyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteClientTlsPolicyRequest,com.google.protobuf.Empty,OperationMetadata> deleteClientTlsPolicyOperationSettings()
Returns the object with the settings used for calls to deleteClientTlsPolicy.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,NetworkSecurityClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
-
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.
-
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.
-
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.
-
createStub
public NetworkSecurityStub createStub() throws IOException
- Throws:
IOException
-
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 NetworkSecurityStubSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilder
public static NetworkSecurityStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public NetworkSecurityStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<NetworkSecurityStubSettings>
-
-