# Class SecurityProfileGroupServiceClient (0.96.0)

0.96.0 (latest) 0.94.0 0.91.0 0.90.0 0.88.0 0.86.0 0.85.0 0.83.0 0.81.0 0.79.0 0.78.0 0.77.0 0.76.0 0.75.0 0.73.0 0.71.0 0.70.0 0.67.0 0.66.0 0.65.0 0.63.0 0.62.0 0.61.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.4

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceClient.java) | [Product Reference](https://cloud.google.com/traffic-director/docs/reference/network-security/rest) |

Service Description: SecurityProfileGroup is a resource that defines an action for specific
threat signatures or severity levels.

This class provides the ability to make remote calls to the backing service through method
calls that map to API methods. Sample code to get started:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfileGroupName name =
           SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
       SecurityProfileGroup response =
           securityProfileGroupServiceClient.getSecurityProfileGroup(name);
     }
     
Note: close() needs to be called on the SecurityProfileGroupServiceClient object to clean up
resources such as threads. In the example above, try-with-resources is used, which automatically
calls close().

| Method | Description | Method Variants |
|---|---|---|
| ListSecurityProfileGroups | Lists SecurityProfileGroups in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listSecurityProfileGroups(ListSecurityProfileGroupsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listSecurityProfileGroups(LocationName parent) - listSecurityProfileGroups(OrganizationLocationName parent) - listSecurityProfileGroups(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listSecurityProfileGroupsPagedCallable() - listSecurityProfileGroupsCallable() |
| GetSecurityProfileGroup | Gets details of a single SecurityProfileGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getSecurityProfileGroup(GetSecurityProfileGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getSecurityProfileGroup(SecurityProfileGroupName name) - getSecurityProfileGroup(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getSecurityProfileGroupCallable() |
| CreateSecurityProfileGroup | Creates a new SecurityProfileGroup in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createSecurityProfileGroupAsync(LocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) - createSecurityProfileGroupAsync(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) - createSecurityProfileGroupAsync(String parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createSecurityProfileGroupOperationCallable() - createSecurityProfileGroupCallable() |
| UpdateSecurityProfileGroup | Updates the parameters of a single SecurityProfileGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateSecurityProfileGroupAsync(SecurityProfileGroup securityProfileGroup, FieldMask updateMask) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateSecurityProfileGroupOperationCallable() - updateSecurityProfileGroupCallable() |
| DeleteSecurityProfileGroup | Deletes a single SecurityProfileGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteSecurityProfileGroupAsync(SecurityProfileGroupName name) - deleteSecurityProfileGroupAsync(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - deleteSecurityProfileGroupOperationCallable() - deleteSecurityProfileGroupCallable() |
| ListSecurityProfiles | Lists SecurityProfiles in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listSecurityProfiles(ListSecurityProfilesRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listSecurityProfiles(LocationName parent) - listSecurityProfiles(OrganizationLocationName parent) - listSecurityProfiles(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listSecurityProfilesPagedCallable() - listSecurityProfilesCallable() |
| GetSecurityProfile | Gets details of a single SecurityProfile. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getSecurityProfile(GetSecurityProfileRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getSecurityProfile(SecurityProfileName name) - getSecurityProfile(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getSecurityProfileCallable() |
| CreateSecurityProfile | Creates a new SecurityProfile in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createSecurityProfileAsync(CreateSecurityProfileRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createSecurityProfileAsync(LocationName parent, SecurityProfile securityProfile, String securityProfileId) - createSecurityProfileAsync(OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId) - createSecurityProfileAsync(String parent, SecurityProfile securityProfile, String securityProfileId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createSecurityProfileOperationCallable() - createSecurityProfileCallable() |
| UpdateSecurityProfile | Updates the parameters of a single SecurityProfile. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateSecurityProfileAsync(UpdateSecurityProfileRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateSecurityProfileAsync(SecurityProfile securityProfile, FieldMask updateMask) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateSecurityProfileOperationCallable() - updateSecurityProfileCallable() |
| DeleteSecurityProfile | Deletes a single SecurityProfile. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteSecurityProfileAsync(DeleteSecurityProfileRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteSecurityProfileAsync(SecurityProfileName name) - deleteSecurityProfileAsync(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - deleteSecurityProfileOperationCallable() - deleteSecurityProfileCallable() |
| ListLocations | Lists information about the supported locations for this service. This method lists locations based on the resource scope provided inthe ListLocationsRequest.name field: \*\*\*Global locations\*\*: If `name` is empty, the method lists thepublic locations available to all projects. \* \*\*Project-specificlocations\*\*: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listLocations(ListLocationsRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listLocationsPagedCallable() - listLocationsCallable() |
| GetLocation | Gets information about a location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getLocation(GetLocationRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getLocationCallable() |
| SetIamPolicy | Sets the access control policy on the specified resource. Replacesany existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - setIamPolicy(SetIamPolicyRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - setIamPolicyCallable() |
| GetIamPolicy | Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getIamPolicy(GetIamPolicyRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getIamPolicyCallable() |
| TestIamPermissions | Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - testIamPermissions(TestIamPermissionsRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - testIamPermissionsCallable() |
[Methods]

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with
these names, this class includes a format method for each type of name, and additionally a parse
method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of
SecurityProfileGroupServiceSettings to create(). For example:

To customize credentials:


     // 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
     SecurityProfileGroupServiceSettings securityProfileGroupServiceSettings =
         SecurityProfileGroupServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create(securityProfileGroupServiceSettings);
     
To customize the endpoint:


     // 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
     SecurityProfileGroupServiceSettings securityProfileGroupServiceSettings =
         SecurityProfileGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create(securityProfileGroupServiceSettings);
     
Please refer to the GitHub repository's samples for more quickstart code snippets.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> SecurityProfileGroupServiceClient

## Static Methods

### create()

    public static final SecurityProfileGroupServiceClient create()

Constructs an instance of SecurityProfileGroupServiceClient with default settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(SecurityProfileGroupServiceSettings settings)

    public static final SecurityProfileGroupServiceClient create(SecurityProfileGroupServiceSettings settings)

Constructs an instance of SecurityProfileGroupServiceClient, using the given settings. The
channels are created based on the settings passed in, or defaults for any settings that are not
set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(SecurityProfileGroupServiceStub stub)

    public static final SecurityProfileGroupServiceClient create(SecurityProfileGroupServiceStub stub)

Constructs an instance of SecurityProfileGroupServiceClient, using the given stub for making
calls. This is for advanced usage - prefer using create(SecurityProfileGroupServiceSettings).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.stub.SecurityProfileGroupServiceStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient` |   |

## Constructors

### SecurityProfileGroupServiceClient(SecurityProfileGroupServiceSettings settings)

    protected SecurityProfileGroupServiceClient(SecurityProfileGroupServiceSettings settings)

Constructs an instance of SecurityProfileGroupServiceClient, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceSettings` |

### SecurityProfileGroupServiceClient(SecurityProfileGroupServiceStub stub)

    protected SecurityProfileGroupServiceClient(SecurityProfileGroupServiceStub stub)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.stub.SecurityProfileGroupServiceStub` |

## Methods

### awaitTermination(long duration, TimeUnit unit)

    public boolean awaitTermination(long duration, TimeUnit unit)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `unit` | `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### close()

    public final void close()

### createSecurityProfileAsync(CreateSecurityProfileRequest request)

    public final OperationFuture<SecurityProfile,OperationMetadata> createSecurityProfileAsync(CreateSecurityProfileRequest request)

Creates a new SecurityProfile in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       CreateSecurityProfileRequest request =
           CreateSecurityProfileRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setSecurityProfileId("securityProfileId-1121673916")
               .setSecurityProfile(SecurityProfile.newBuilder().build())
               .build();
       SecurityProfile response =
           securityProfileGroupServiceClient.createSecurityProfileAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileAsync(LocationName parent, SecurityProfile securityProfile, String securityProfileId)

    public final OperationFuture<SecurityProfile,OperationMetadata> createSecurityProfileAsync(LocationName parent, SecurityProfile securityProfile, String securityProfileId)

Creates a new SecurityProfile in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
       String securityProfileId = "securityProfileId-1121673916";
       SecurityProfile response =
           securityProfileGroupServiceClient
               .createSecurityProfileAsync(parent, securityProfile, securityProfileId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent resource of the SecurityProfile. Must be in the format `projects|organizations/*/locations/{location}`. |
| `securityProfile` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` Required. SecurityProfile resource to be created. |
| `securityProfileId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Short name of the SecurityProfile resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile1". |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileAsync(OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId)

    public final OperationFuture<SecurityProfile,OperationMetadata> createSecurityProfileAsync(OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId)

Creates a new SecurityProfile in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
       SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
       String securityProfileId = "securityProfileId-1121673916";
       SecurityProfile response =
           securityProfileGroupServiceClient
               .createSecurityProfileAsync(parent, securityProfile, securityProfileId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OrganizationLocationName` Required. The parent resource of the SecurityProfile. Must be in the format `projects|organizations/*/locations/{location}`. |
| `securityProfile` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` Required. SecurityProfile resource to be created. |
| `securityProfileId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Short name of the SecurityProfile resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile1". |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileAsync(String parent, SecurityProfile securityProfile, String securityProfileId)

    public final OperationFuture<SecurityProfile,OperationMetadata> createSecurityProfileAsync(String parent, SecurityProfile securityProfile, String securityProfileId)

Creates a new SecurityProfile in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
       SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
       String securityProfileId = "securityProfileId-1121673916";
       SecurityProfile response =
           securityProfileGroupServiceClient
               .createSecurityProfileAsync(parent, securityProfile, securityProfileId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent resource of the SecurityProfile. Must be in the format `projects|organizations/*/locations/{location}`. |
| `securityProfile` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` Required. SecurityProfile resource to be created. |
| `securityProfileId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Short name of the SecurityProfile resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile1". |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileCallable()

    public final UnaryCallable<CreateSecurityProfileRequest,Operation> createSecurityProfileCallable()

Creates a new SecurityProfile in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       CreateSecurityProfileRequest request =
           CreateSecurityProfileRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setSecurityProfileId("securityProfileId-1121673916")
               .setSecurityProfile(SecurityProfile.newBuilder().build())
               .build();
       ApiFuture<Operation> future =
           securityProfileGroupServiceClient.createSecurityProfileCallable().futureCall(request);
       // Do something.
       Operation response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request)

    public final OperationFuture<SecurityProfileGroup,OperationMetadata> createSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request)

Creates a new SecurityProfileGroup in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       CreateSecurityProfileGroupRequest request =
           CreateSecurityProfileGroupRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setSecurityProfileGroupId("securityProfileGroupId-357991055")
               .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
               .build();
       SecurityProfileGroup response =
           securityProfileGroupServiceClient.createSecurityProfileGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileGroupAsync(LocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId)

    public final OperationFuture<SecurityProfileGroup,OperationMetadata> createSecurityProfileGroupAsync(LocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId)

Creates a new SecurityProfileGroup in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
       String securityProfileGroupId = "securityProfileGroupId-357991055";
       SecurityProfileGroup response =
           securityProfileGroupServiceClient
               .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent resource of the SecurityProfileGroup. Must be in the format `projects|organizations/*/locations/{location}`. |
| `securityProfileGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` Required. SecurityProfileGroup resource to be created. |
| `securityProfileGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Short name of the SecurityProfileGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile_group1". |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileGroupAsync(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId)

    public final OperationFuture<SecurityProfileGroup,OperationMetadata> createSecurityProfileGroupAsync(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId)

Creates a new SecurityProfileGroup in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
       SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
       String securityProfileGroupId = "securityProfileGroupId-357991055";
       SecurityProfileGroup response =
           securityProfileGroupServiceClient
               .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OrganizationLocationName` Required. The parent resource of the SecurityProfileGroup. Must be in the format `projects|organizations/*/locations/{location}`. |
| `securityProfileGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` Required. SecurityProfileGroup resource to be created. |
| `securityProfileGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Short name of the SecurityProfileGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile_group1". |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileGroupAsync(String parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId)

    public final OperationFuture<SecurityProfileGroup,OperationMetadata> createSecurityProfileGroupAsync(String parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId)

Creates a new SecurityProfileGroup in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
       SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
       String securityProfileGroupId = "securityProfileGroupId-357991055";
       SecurityProfileGroup response =
           securityProfileGroupServiceClient
               .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent resource of the SecurityProfileGroup. Must be in the format `projects|organizations/*/locations/{location}`. |
| `securityProfileGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` Required. SecurityProfileGroup resource to be created. |
| `securityProfileGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Short name of the SecurityProfileGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "security_profile_group1". |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileGroupCallable()

    public final UnaryCallable<CreateSecurityProfileGroupRequest,Operation> createSecurityProfileGroupCallable()

Creates a new SecurityProfileGroup in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       CreateSecurityProfileGroupRequest request =
           CreateSecurityProfileGroupRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setSecurityProfileGroupId("securityProfileGroupId-357991055")
               .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
               .build();
       ApiFuture<Operation> future =
           securityProfileGroupServiceClient
               .createSecurityProfileGroupCallable()
               .futureCall(request);
       // Do something.
       Operation response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createSecurityProfileGroupOperationCallable()

    public final OperationCallable<CreateSecurityProfileGroupRequest,SecurityProfileGroup,OperationMetadata> createSecurityProfileGroupOperationCallable()

Creates a new SecurityProfileGroup in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       CreateSecurityProfileGroupRequest request =
           CreateSecurityProfileGroupRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setSecurityProfileGroupId("securityProfileGroupId-357991055")
               .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
               .build();
       OperationFuture<SecurityProfileGroup, OperationMetadata> future =
           securityProfileGroupServiceClient
               .createSecurityProfileGroupOperationCallable()
               .futureCall(request);
       // Do something.
       SecurityProfileGroup response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createSecurityProfileOperationCallable()

    public final OperationCallable<CreateSecurityProfileRequest,SecurityProfile,OperationMetadata> createSecurityProfileOperationCallable()

Creates a new SecurityProfile in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       CreateSecurityProfileRequest request =
           CreateSecurityProfileRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setSecurityProfileId("securityProfileId-1121673916")
               .setSecurityProfile(SecurityProfile.newBuilder().build())
               .build();
       OperationFuture<SecurityProfile, OperationMetadata> future =
           securityProfileGroupServiceClient
               .createSecurityProfileOperationCallable()
               .futureCall(request);
       // Do something.
       SecurityProfile response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileAsync(DeleteSecurityProfileRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteSecurityProfileAsync(DeleteSecurityProfileRequest request)

Deletes a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       DeleteSecurityProfileRequest request =
           DeleteSecurityProfileRequest.newBuilder()
               .setName(
                   SecurityProfileName.ofProjectLocationSecurityProfileName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]")
                       .toString())
               .setEtag("etag3123477")
               .build();
       securityProfileGroupServiceClient.deleteSecurityProfileAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileAsync(SecurityProfileName name)

    public final OperationFuture<Empty,OperationMetadata> deleteSecurityProfileAsync(SecurityProfileName name)

Deletes a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfileName name =
           SecurityProfileName.ofProjectLocationSecurityProfileName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]");
       securityProfileGroupServiceClient.deleteSecurityProfileAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileName` Required. A name of the SecurityProfile to delete. Must be in the format `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteSecurityProfileAsync(String name)

Deletes a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String name =
           SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                   "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
               .toString();
       securityProfileGroupServiceClient.deleteSecurityProfileAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. A name of the SecurityProfile to delete. Must be in the format `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileCallable()

    public final UnaryCallable<DeleteSecurityProfileRequest,Operation> deleteSecurityProfileCallable()

Deletes a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       DeleteSecurityProfileRequest request =
           DeleteSecurityProfileRequest.newBuilder()
               .setName(
                   SecurityProfileName.ofProjectLocationSecurityProfileName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]")
                       .toString())
               .setEtag("etag3123477")
               .build();
       ApiFuture<Operation> future =
           securityProfileGroupServiceClient.deleteSecurityProfileCallable().futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest request)

Deletes a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       DeleteSecurityProfileGroupRequest request =
           DeleteSecurityProfileGroupRequest.newBuilder()
               .setName(
                   SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                       .toString())
               .setEtag("etag3123477")
               .build();
       securityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileGroupAsync(SecurityProfileGroupName name)

    public final OperationFuture<Empty,OperationMetadata> deleteSecurityProfileGroupAsync(SecurityProfileGroupName name)

Deletes a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfileGroupName name =
           SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
       securityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupName` Required. A name of the SecurityProfileGroup to delete. Must be in the format `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileGroupAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteSecurityProfileGroupAsync(String name)

Deletes a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String name =
           SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                   "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
               .toString();
       securityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. A name of the SecurityProfileGroup to delete. Must be in the format `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileGroupCallable()

    public final UnaryCallable<DeleteSecurityProfileGroupRequest,Operation> deleteSecurityProfileGroupCallable()

Deletes a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       DeleteSecurityProfileGroupRequest request =
           DeleteSecurityProfileGroupRequest.newBuilder()
               .setName(
                   SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                       .toString())
               .setEtag("etag3123477")
               .build();
       ApiFuture<Operation> future =
           securityProfileGroupServiceClient
               .deleteSecurityProfileGroupCallable()
               .futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteSecurityProfileGroupOperationCallable()

    public final OperationCallable<DeleteSecurityProfileGroupRequest,Empty,OperationMetadata> deleteSecurityProfileGroupOperationCallable()

Deletes a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       DeleteSecurityProfileGroupRequest request =
           DeleteSecurityProfileGroupRequest.newBuilder()
               .setName(
                   SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                       .toString())
               .setEtag("etag3123477")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           securityProfileGroupServiceClient
               .deleteSecurityProfileGroupOperationCallable()
               .futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteSecurityProfileOperationCallable()

    public final OperationCallable<DeleteSecurityProfileRequest,Empty,OperationMetadata> deleteSecurityProfileOperationCallable()

Deletes a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       DeleteSecurityProfileRequest request =
           DeleteSecurityProfileRequest.newBuilder()
               .setName(
                   SecurityProfileName.ofProjectLocationSecurityProfileName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]")
                       .toString())
               .setEtag("etag3123477")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           securityProfileGroupServiceClient
               .deleteSecurityProfileOperationCallable()
               .futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### getIamPolicy(GetIamPolicyRequest request)

    public final Policy getIamPolicy(GetIamPolicyRequest request)

Gets the access control policy for a resource. Returns an empty policyif the resource exists
and does not have a policy set.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setOptions(GetPolicyOptions.newBuilder().build())
               .build();
       Policy response = securityProfileGroupServiceClient.getIamPolicy(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.GetIamPolicyRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.iam.v1.Policy` |   |

### getIamPolicyCallable()

    public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()

Gets the access control policy for a resource. Returns an empty policyif the resource exists
and does not have a policy set.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setOptions(GetPolicyOptions.newBuilder().build())
               .build();
       ApiFuture<Policy> future =
           securityProfileGroupServiceClient.getIamPolicyCallable().futureCall(request);
       // Do something.
       Policy response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>` |   |

### getLocation(GetLocationRequest request)

    public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       Location response = securityProfileGroupServiceClient.getLocation(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.cloud.location.GetLocationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.location.Location` |   |

### getLocationCallable()

    public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       ApiFuture<Location> future =
           securityProfileGroupServiceClient.getLocationCallable().futureCall(request);
       // Do something.
       Location response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>` |   |

### getOperationsClient()

    public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.OperationsClient.html` |   |

### getSecurityProfile(GetSecurityProfileRequest request)

    public final SecurityProfile getSecurityProfile(GetSecurityProfileRequest request)

Gets details of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetSecurityProfileRequest request =
           GetSecurityProfileRequest.newBuilder()
               .setName(
                   SecurityProfileName.ofProjectLocationSecurityProfileName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]")
                       .toString())
               .build();
       SecurityProfile response = securityProfileGroupServiceClient.getSecurityProfile(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetSecurityProfileRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` |   |

### getSecurityProfile(SecurityProfileName name)

    public final SecurityProfile getSecurityProfile(SecurityProfileName name)

Gets details of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfileName name =
           SecurityProfileName.ofProjectLocationSecurityProfileName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]");
       SecurityProfile response = securityProfileGroupServiceClient.getSecurityProfile(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileName` Required. A name of the SecurityProfile to get. Must be in the format `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` |   |

### getSecurityProfile(String name)

    public final SecurityProfile getSecurityProfile(String name)

Gets details of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String name =
           SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                   "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
               .toString();
       SecurityProfile response = securityProfileGroupServiceClient.getSecurityProfile(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. A name of the SecurityProfile to get. Must be in the format `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` |   |

### getSecurityProfileCallable()

    public final UnaryCallable<GetSecurityProfileRequest,SecurityProfile> getSecurityProfileCallable()

Gets details of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetSecurityProfileRequest request =
           GetSecurityProfileRequest.newBuilder()
               .setName(
                   SecurityProfileName.ofProjectLocationSecurityProfileName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE]")
                       .toString())
               .build();
       ApiFuture<SecurityProfile> future =
           securityProfileGroupServiceClient.getSecurityProfileCallable().futureCall(request);
       // Do something.
       SecurityProfile response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetSecurityProfileRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile>` |   |

### getSecurityProfileGroup(GetSecurityProfileGroupRequest request)

    public final SecurityProfileGroup getSecurityProfileGroup(GetSecurityProfileGroupRequest request)

Gets details of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetSecurityProfileGroupRequest request =
           GetSecurityProfileGroupRequest.newBuilder()
               .setName(
                   SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                       .toString())
               .build();
       SecurityProfileGroup response =
           securityProfileGroupServiceClient.getSecurityProfileGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` |   |

### getSecurityProfileGroup(SecurityProfileGroupName name)

    public final SecurityProfileGroup getSecurityProfileGroup(SecurityProfileGroupName name)

Gets details of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfileGroupName name =
           SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
       SecurityProfileGroup response =
           securityProfileGroupServiceClient.getSecurityProfileGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupName` Required. A name of the SecurityProfileGroup to get. Must be in the format `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` |   |

### getSecurityProfileGroup(String name)

    public final SecurityProfileGroup getSecurityProfileGroup(String name)

Gets details of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String name =
           SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                   "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
               .toString();
       SecurityProfileGroup response =
           securityProfileGroupServiceClient.getSecurityProfileGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. A name of the SecurityProfileGroup to get. Must be in the format `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` |   |

### getSecurityProfileGroupCallable()

    public final UnaryCallable<GetSecurityProfileGroupRequest,SecurityProfileGroup> getSecurityProfileGroupCallable()

Gets details of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       GetSecurityProfileGroupRequest request =
           GetSecurityProfileGroupRequest.newBuilder()
               .setName(
                   SecurityProfileGroupName.ofProjectLocationSecurityProfileGroupName(
                           "[PROJECT]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                       .toString())
               .build();
       ApiFuture<SecurityProfileGroup> future =
           securityProfileGroupServiceClient.getSecurityProfileGroupCallable().futureCall(request);
       // Do something.
       SecurityProfileGroup response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup>` |   |

### getSettings()

    public final SecurityProfileGroupServiceSettings getSettings()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceSettings` |   |

### getStub()

    public SecurityProfileGroupServiceStub getStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.stub.SecurityProfileGroupServiceStub` |   |

### isShutdown()

    public boolean isShutdown()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isTerminated()

    public boolean isTerminated()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listLocations(ListLocationsRequest request)

    public final SecurityProfileGroupServiceClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe
ListLocationsRequest.name field:
\*\*\*Global locations\*\*: If `name` is empty, the method lists thepublic
locations available to all projects. \* \*\*Project-specificlocations\*\*: If
`name` follows the format`projects/{project}`, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.

For gRPC and client library implementations, the resource name ispassed as the `name` field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (Location element :
           securityProfileGroupServiceClient.listLocations(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.cloud.location.ListLocationsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListLocationsPagedResponse` |   |

### listLocationsCallable()

    public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe
ListLocationsRequest.name field:
\*\*\*Global locations\*\*: If `name` is empty, the method lists thepublic
locations available to all projects. \* \*\*Project-specificlocations\*\*: If
`name` follows the format`projects/{project}`, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.

For gRPC and client library implementations, the resource name ispassed as the `name` field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListLocationsResponse response =
             securityProfileGroupServiceClient.listLocationsCallable().call(request);
         for (Location element : response.getLocationsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>` |   |

### listLocationsPagedCallable()

    public final UnaryCallable<ListLocationsRequest,SecurityProfileGroupServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe
ListLocationsRequest.name field:
\*\*\*Global locations\*\*: If `name` is empty, the method lists thepublic
locations available to all projects. \* \*\*Project-specificlocations\*\*: If
`name` follows the format`projects/{project}`, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.

For gRPC and client library implementations, the resource name ispassed as the `name` field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<Location> future =
           securityProfileGroupServiceClient.listLocationsPagedCallable().futureCall(request);
       // Do something.
       for (Location element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListLocationsPagedResponse>` |   |

### listSecurityProfileGroups(ListSecurityProfileGroupsRequest request)

    public final SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups(ListSecurityProfileGroupsRequest request)

Lists SecurityProfileGroups in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListSecurityProfileGroupsRequest request =
           ListSecurityProfileGroupsRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (SecurityProfileGroup element :
           securityProfileGroupServiceClient.listSecurityProfileGroups(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse` |   |

### listSecurityProfileGroups(LocationName parent)

    public final SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups(LocationName parent)

Lists SecurityProfileGroups in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (SecurityProfileGroup element :
           securityProfileGroupServiceClient.listSecurityProfileGroups(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format `projects|organizations/*/locations/{location}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse` |   |

### listSecurityProfileGroups(OrganizationLocationName parent)

    public final SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups(OrganizationLocationName parent)

Lists SecurityProfileGroups in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
       for (SecurityProfileGroup element :
           securityProfileGroupServiceClient.listSecurityProfileGroups(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OrganizationLocationName` Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format `projects|organizations/*/locations/{location}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse` |   |

### listSecurityProfileGroups(String parent)

    public final SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups(String parent)

Lists SecurityProfileGroups in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
       for (SecurityProfileGroup element :
           securityProfileGroupServiceClient.listSecurityProfileGroups(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the format `projects|organizations/*/locations/{location}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse` |   |

### listSecurityProfileGroupsCallable()

    public final UnaryCallable<ListSecurityProfileGroupsRequest,ListSecurityProfileGroupsResponse> listSecurityProfileGroupsCallable()

Lists SecurityProfileGroups in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListSecurityProfileGroupsRequest request =
           ListSecurityProfileGroupsRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListSecurityProfileGroupsResponse response =
             securityProfileGroupServiceClient.listSecurityProfileGroupsCallable().call(request);
         for (SecurityProfileGroup element : response.getSecurityProfileGroupsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse>` |   |

### listSecurityProfileGroupsPagedCallable()

    public final UnaryCallable<ListSecurityProfileGroupsRequest,SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse> listSecurityProfileGroupsPagedCallable()

Lists SecurityProfileGroups in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListSecurityProfileGroupsRequest request =
           ListSecurityProfileGroupsRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<SecurityProfileGroup> future =
           securityProfileGroupServiceClient
               .listSecurityProfileGroupsPagedCallable()
               .futureCall(request);
       // Do something.
       for (SecurityProfileGroup element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse>` |   |

### listSecurityProfiles(ListSecurityProfilesRequest request)

    public final SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse listSecurityProfiles(ListSecurityProfilesRequest request)

Lists SecurityProfiles in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListSecurityProfilesRequest request =
           ListSecurityProfilesRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (SecurityProfile element :
           securityProfileGroupServiceClient.listSecurityProfiles(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse` |   |

### listSecurityProfiles(LocationName parent)

    public final SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse listSecurityProfiles(LocationName parent)

Lists SecurityProfiles in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (SecurityProfile element :
           securityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format `projects|organizations/*/locations/{location}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse` |   |

### listSecurityProfiles(OrganizationLocationName parent)

    public final SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse listSecurityProfiles(OrganizationLocationName parent)

Lists SecurityProfiles in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
       for (SecurityProfile element :
           securityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OrganizationLocationName` Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format `projects|organizations/*/locations/{location}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse` |   |

### listSecurityProfiles(String parent)

    public final SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse listSecurityProfiles(String parent)

Lists SecurityProfiles in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
       for (SecurityProfile element :
           securityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the format `projects|organizations/*/locations/{location}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse` |   |

### listSecurityProfilesCallable()

    public final UnaryCallable<ListSecurityProfilesRequest,ListSecurityProfilesResponse> listSecurityProfilesCallable()

Lists SecurityProfiles in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListSecurityProfilesRequest request =
           ListSecurityProfilesRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListSecurityProfilesResponse response =
             securityProfileGroupServiceClient.listSecurityProfilesCallable().call(request);
         for (SecurityProfile element : response.getSecurityProfilesList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse>` |   |

### listSecurityProfilesPagedCallable()

    public final UnaryCallable<ListSecurityProfilesRequest,SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse> listSecurityProfilesPagedCallable()

Lists SecurityProfiles in a given project and location.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       ListSecurityProfilesRequest request =
           ListSecurityProfilesRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<SecurityProfile> future =
           securityProfileGroupServiceClient.listSecurityProfilesPagedCallable().futureCall(request);
       // Do something.
       for (SecurityProfile element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse>` |   |

### setIamPolicy(SetIamPolicyRequest request)

    public final Policy setIamPolicy(SetIamPolicyRequest request)

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setPolicy(Policy.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       Policy response = securityProfileGroupServiceClient.setIamPolicy(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.SetIamPolicyRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.iam.v1.Policy` |   |

### setIamPolicyCallable()

    public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setPolicy(Policy.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       ApiFuture<Policy> future =
           securityProfileGroupServiceClient.setIamPolicyCallable().futureCall(request);
       // Do something.
       Policy response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()

### testIamPermissions(TestIamPermissionsRequest request)

    public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)

Returns permissions that a caller has on the specified resource. If theresource does not exist,
this will return an empty set ofpermissions, not a `NOT_FOUND` error.

Note: This operation is designed to be used for buildingpermission-aware UIs and
command-line tools, not for authorizationchecking. This operation may "fail open" without
warning.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .addAllPermissions(new ArrayList<String>())
               .build();
       TestIamPermissionsResponse response =
           securityProfileGroupServiceClient.testIamPermissions(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.TestIamPermissionsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.iam.v1.TestIamPermissionsResponse` |   |

### testIamPermissionsCallable()

    public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()

Returns permissions that a caller has on the specified resource. If theresource does not exist,
this will return an empty set ofpermissions, not a `NOT_FOUND` error.

Note: This operation is designed to be used for buildingpermission-aware UIs and
command-line tools, not for authorizationchecking. This operation may "fail open" without
warning.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .addAllPermissions(new ArrayList<String>())
               .build();
       ApiFuture<TestIamPermissionsResponse> future =
           securityProfileGroupServiceClient.testIamPermissionsCallable().futureCall(request);
       // Do something.
       TestIamPermissionsResponse response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>` |   |

### updateSecurityProfileAsync(SecurityProfile securityProfile, FieldMask updateMask)

    public final OperationFuture<SecurityProfile,OperationMetadata> updateSecurityProfileAsync(SecurityProfile securityProfile, FieldMask updateMask)

Updates the parameters of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       SecurityProfile response =
           securityProfileGroupServiceClient
               .updateSecurityProfileAsync(securityProfile, updateMask)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityProfile` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile` Required. Updated SecurityProfile resource. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the SecurityProfile resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateSecurityProfileAsync(UpdateSecurityProfileRequest request)

    public final OperationFuture<SecurityProfile,OperationMetadata> updateSecurityProfileAsync(UpdateSecurityProfileRequest request)

Updates the parameters of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       UpdateSecurityProfileRequest request =
           UpdateSecurityProfileRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setSecurityProfile(SecurityProfile.newBuilder().build())
               .build();
       SecurityProfile response =
           securityProfileGroupServiceClient.updateSecurityProfileAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateSecurityProfileCallable()

    public final UnaryCallable<UpdateSecurityProfileRequest,Operation> updateSecurityProfileCallable()

Updates the parameters of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       UpdateSecurityProfileRequest request =
           UpdateSecurityProfileRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setSecurityProfile(SecurityProfile.newBuilder().build())
               .build();
       ApiFuture<Operation> future =
           securityProfileGroupServiceClient.updateSecurityProfileCallable().futureCall(request);
       // Do something.
       Operation response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateSecurityProfileGroupAsync(SecurityProfileGroup securityProfileGroup, FieldMask updateMask)

    public final OperationFuture<SecurityProfileGroup,OperationMetadata> updateSecurityProfileGroupAsync(SecurityProfileGroup securityProfileGroup, FieldMask updateMask)

Updates the parameters of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       SecurityProfileGroup response =
           securityProfileGroupServiceClient
               .updateSecurityProfileGroupAsync(securityProfileGroup, updateMask)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityProfileGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup` Required. Updated SecurityProfileGroup resource. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the SecurityProfileGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request)

    public final OperationFuture<SecurityProfileGroup,OperationMetadata> updateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request)

Updates the parameters of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       UpdateSecurityProfileGroupRequest request =
           UpdateSecurityProfileGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
               .build();
       SecurityProfileGroup response =
           securityProfileGroupServiceClient.updateSecurityProfileGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateSecurityProfileGroupCallable()

    public final UnaryCallable<UpdateSecurityProfileGroupRequest,Operation> updateSecurityProfileGroupCallable()

Updates the parameters of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       UpdateSecurityProfileGroupRequest request =
           UpdateSecurityProfileGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
               .build();
       ApiFuture<Operation> future =
           securityProfileGroupServiceClient
               .updateSecurityProfileGroupCallable()
               .futureCall(request);
       // Do something.
       Operation response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateSecurityProfileGroupOperationCallable()

    public final OperationCallable<UpdateSecurityProfileGroupRequest,SecurityProfileGroup,OperationMetadata> updateSecurityProfileGroupOperationCallable()

Updates the parameters of a single SecurityProfileGroup.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       UpdateSecurityProfileGroupRequest request =
           UpdateSecurityProfileGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
               .build();
       OperationFuture<SecurityProfileGroup, OperationMetadata> future =
           securityProfileGroupServiceClient
               .updateSecurityProfileGroupOperationCallable()
               .futureCall(request);
       // Do something.
       SecurityProfileGroup response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfileGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateSecurityProfileOperationCallable()

    public final OperationCallable<UpdateSecurityProfileRequest,SecurityProfile,OperationMetadata> updateSecurityProfileOperationCallable()

Updates the parameters of a single SecurityProfile.

Sample code:


     // 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
     try (SecurityProfileGroupServiceClient securityProfileGroupServiceClient =
         SecurityProfileGroupServiceClient.create()) {
       UpdateSecurityProfileRequest request =
           UpdateSecurityProfileRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setSecurityProfile(SecurityProfile.newBuilder().build())
               .build();
       OperationFuture<SecurityProfile, OperationMetadata> future =
           securityProfileGroupServiceClient
               .updateSecurityProfileOperationCallable()
               .futureCall(request);
       // Do something.
       SecurityProfile response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.SecurityProfile,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |