# Class ConfidentialComputingClient (0.79.0)

0.79.0 (latest) 0.77.0 0.74.0 0.73.0 0.71.0 0.69.0 0.68.0 0.67.0 0.66.0 0.64.0 0.62.0 0.61.0 0.60.0 0.59.0 0.58.0 0.56.0 0.54.0 0.53.0 0.50.0 0.49.0 0.48.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.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.13.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java) | [Product Reference](https://cloud.google.com/confidential-computing/) |

Service Description: Service describing handlers for resources

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Challenge challenge = Challenge.newBuilder().build();
       Challenge response = confidentialComputingClient.createChallenge(parent, challenge);
     }
     
Note: close() needs to be called on the ConfidentialComputingClient 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 |
|---|---|---|
| CreateChallenge | Creates a new Challenge in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createChallenge(CreateChallengeRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - createChallenge(LocationName parent, Challenge challenge) - createChallenge(String parent, Challenge challenge) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createChallengeCallable() |
| VerifyAttestation | Verifies the provided attestation info, returning a signed attestation token. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - verifyAttestation(VerifyAttestationRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - verifyAttestationCallable() |
| VerifyConfidentialSpace | Verifies whether the provided attestation info is valid, returning a signed attestation token if so. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - verifyConfidentialSpace(VerifyConfidentialSpaceRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - verifyConfidentialSpaceCallable() |
| VerifyConfidentialGke | Verifies the provided Confidential GKE attestation info, returning a signed OIDC token. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - verifyConfidentialGke(VerifyConfidentialGkeRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - verifyConfidentialGkeCallable() |
| 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() |
[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 ConfidentialComputingSettings
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
     ConfidentialComputingSettings confidentialComputingSettings =
         ConfidentialComputingSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create(confidentialComputingSettings);
     
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
     ConfidentialComputingSettings confidentialComputingSettings =
         ConfidentialComputingSettings.newBuilder().setEndpoint(myEndpoint).build();
     ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create(confidentialComputingSettings);
     
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
the wire:


     // 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
     ConfidentialComputingSettings confidentialComputingSettings =
         ConfidentialComputingSettings.newHttpJsonBuilder().build();
     ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create(confidentialComputingSettings);
     
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) \> ConfidentialComputingClient

## Static Methods

### create()

    public static final ConfidentialComputingClient create()

Constructs an instance of ConfidentialComputingClient with default settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient` |   |

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

### create(ConfidentialComputingSettings settings)

    public static final ConfidentialComputingClient create(ConfidentialComputingSettings settings)

Constructs an instance of ConfidentialComputingClient, 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient` |   |

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

### create(ConfidentialComputingStub stub)

    public static final ConfidentialComputingClient create(ConfidentialComputingStub stub)

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.stub.ConfidentialComputingStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient` |   |

## Constructors

### ConfidentialComputingClient(ConfidentialComputingSettings settings)

    protected ConfidentialComputingClient(ConfidentialComputingSettings settings)

Constructs an instance of ConfidentialComputingClient, 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingSettings` |

### ConfidentialComputingClient(ConfidentialComputingStub stub)

    protected ConfidentialComputingClient(ConfidentialComputingStub stub)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.stub.ConfidentialComputingStub` |

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

### createChallenge(CreateChallengeRequest request)

    public final Challenge createChallenge(CreateChallengeRequest request)

Creates a new Challenge 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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       CreateChallengeRequest request =
           CreateChallengeRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setChallenge(Challenge.newBuilder().build())
               .build();
       Challenge response = confidentialComputingClient.createChallenge(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest` 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.Challenge` |   |

### createChallenge(LocationName parent, Challenge challenge)

    public final Challenge createChallenge(LocationName parent, Challenge challenge)

Creates a new Challenge 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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Challenge challenge = Challenge.newBuilder().build();
       Challenge response = confidentialComputingClient.createChallenge(parent, challenge);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.LocationName` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.Challenge` |   |

### createChallenge(String parent, Challenge challenge)

    public final Challenge createChallenge(String parent, Challenge challenge)

Creates a new Challenge 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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Challenge challenge = Challenge.newBuilder().build();
       Challenge response = confidentialComputingClient.createChallenge(parent, challenge);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.Challenge` |   |

### createChallengeCallable()

    public final UnaryCallable<CreateChallengeRequest,Challenge> createChallengeCallable()

Creates a new Challenge 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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       CreateChallengeRequest request =
           CreateChallengeRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setChallenge(Challenge.newBuilder().build())
               .build();
       ApiFuture<Challenge> future =
           confidentialComputingClient.createChallengeCallable().futureCall(request);
       // Do something.
       Challenge 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.Challenge>` |   |

### 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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       Location response = confidentialComputingClient.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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       ApiFuture<Location> future =
           confidentialComputingClient.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>` |   |

### getSettings()

    public final ConfidentialComputingSettings getSettings()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingSettings` |   |

### getStub()

    public ConfidentialComputingStub getStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.stub.ConfidentialComputingStub` |   |

### 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 ConfidentialComputingClient.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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (Location element : confidentialComputingClient.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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient.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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListLocationsResponse response =
             confidentialComputingClient.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,ConfidentialComputingClient.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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<Location> future =
           confidentialComputingClient.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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient.ListLocationsPagedResponse>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()

### verifyAttestation(VerifyAttestationRequest request)

    public final VerifyAttestationResponse verifyAttestation(VerifyAttestationRequest request)

Verifies the provided attestation info, returning a signed attestation token.

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       VerifyAttestationRequest request =
           VerifyAttestationRequest.newBuilder()
               .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
               .setGcpCredentials(GcpCredentials.newBuilder().build())
               .setTpmAttestation(TpmAttestation.newBuilder().build())
               .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
               .setTokenOptions(TokenOptions.newBuilder().build())
               .setAttester("attester542920370")
               .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
               .build();
       VerifyAttestationResponse response = confidentialComputingClient.verifyAttestation(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest` 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse` |   |

### verifyAttestationCallable()

    public final UnaryCallable<VerifyAttestationRequest,VerifyAttestationResponse> verifyAttestationCallable()

Verifies the provided attestation info, returning a signed attestation token.

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       VerifyAttestationRequest request =
           VerifyAttestationRequest.newBuilder()
               .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
               .setGcpCredentials(GcpCredentials.newBuilder().build())
               .setTpmAttestation(TpmAttestation.newBuilder().build())
               .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
               .setTokenOptions(TokenOptions.newBuilder().build())
               .setAttester("attester542920370")
               .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
               .build();
       ApiFuture<VerifyAttestationResponse> future =
           confidentialComputingClient.verifyAttestationCallable().futureCall(request);
       // Do something.
       VerifyAttestationResponse 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>` |   |

### verifyConfidentialGke(VerifyConfidentialGkeRequest request)

    public final VerifyConfidentialGkeResponse verifyConfidentialGke(VerifyConfidentialGkeRequest request)

Verifies the provided Confidential GKE attestation info, returning a signed OIDC token.

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       VerifyConfidentialGkeRequest request =
           VerifyConfidentialGkeRequest.newBuilder()
               .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
               .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build())
               .build();
       VerifyConfidentialGkeResponse response =
           confidentialComputingClient.verifyConfidentialGke(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest` 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse` |   |

### verifyConfidentialGkeCallable()

    public final UnaryCallable<VerifyConfidentialGkeRequest,VerifyConfidentialGkeResponse> verifyConfidentialGkeCallable()

Verifies the provided Confidential GKE attestation info, returning a signed OIDC token.

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       VerifyConfidentialGkeRequest request =
           VerifyConfidentialGkeRequest.newBuilder()
               .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
               .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build())
               .build();
       ApiFuture<VerifyConfidentialGkeResponse> future =
           confidentialComputingClient.verifyConfidentialGkeCallable().futureCall(request);
       // Do something.
       VerifyConfidentialGkeResponse 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse>` |   |

### verifyConfidentialSpace(VerifyConfidentialSpaceRequest request)

    public final VerifyConfidentialSpaceResponse verifyConfidentialSpace(VerifyConfidentialSpaceRequest request)

Verifies whether the provided attestation info is valid, returning a signed attestation token
if so.

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       VerifyConfidentialSpaceRequest request =
           VerifyConfidentialSpaceRequest.newBuilder()
               .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
               .setGcpCredentials(GcpCredentials.newBuilder().build())
               .addAllSignedEntities(new ArrayList<SignedEntity>())
               .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build())
               .setOptions(
                   VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build())
               .setNvidiaAttestation(NvidiaAttestation.newBuilder().build())
               .build();
       VerifyConfidentialSpaceResponse response =
           confidentialComputingClient.verifyConfidentialSpace(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest` 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse` |   |

### verifyConfidentialSpaceCallable()

    public final UnaryCallable<VerifyConfidentialSpaceRequest,VerifyConfidentialSpaceResponse> verifyConfidentialSpaceCallable()

Verifies whether the provided attestation info is valid, returning a signed attestation token
if so.

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 (ConfidentialComputingClient confidentialComputingClient =
         ConfidentialComputingClient.create()) {
       VerifyConfidentialSpaceRequest request =
           VerifyConfidentialSpaceRequest.newBuilder()
               .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
               .setGcpCredentials(GcpCredentials.newBuilder().build())
               .addAllSignedEntities(new ArrayList<SignedEntity>())
               .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build())
               .setOptions(
                   VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build())
               .setNvidiaAttestation(NvidiaAttestation.newBuilder().build())
               .build();
       ApiFuture<VerifyConfidentialSpaceResponse> future =
           confidentialComputingClient.verifyConfidentialSpaceCallable().futureCall(request);
       // Do something.
       VerifyConfidentialSpaceResponse 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-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse>` |   |