# Class EnterpriseKnowledgeGraphServiceClient (0.89.0)

0.89.0 (latest) 0.87.0 0.84.0 0.83.0 0.81.0 0.79.0 0.78.0 0.77.0 0.76.0 0.74.0 0.72.0 0.71.0 0.70.0 0.69.0 0.68.0 0.66.0 0.64.0 0.63.0 0.60.0 0.59.0 0.58.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.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.36.0 0.35.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.24.0 0.23.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.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.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-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java) | [Product Reference](https://cloud.google.com/enterprise-knowledge-graph/docs/overview) |

Service Description: APIs for enterprise knowledge graph product.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       EntityReconciliationJob entityReconciliationJob =
           EntityReconciliationJob.newBuilder().build();
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.createEntityReconciliationJob(
               parent, entityReconciliationJob);
     }
     
Note: close() needs to be called on the EnterpriseKnowledgeGraphServiceClient 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 |
|---|---|---|
| CreateEntityReconciliationJob | Creates a EntityReconciliationJob. A EntityReconciliationJob once created will right away be attempted to start. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createEntityReconciliationJob(CreateEntityReconciliationJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - createEntityReconciliationJob(LocationName parent, EntityReconciliationJob entityReconciliationJob) - createEntityReconciliationJob(String parent, EntityReconciliationJob entityReconciliationJob) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createEntityReconciliationJobCallable() |
| GetEntityReconciliationJob | Gets a EntityReconciliationJob. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getEntityReconciliationJob(GetEntityReconciliationJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getEntityReconciliationJob(EntityReconciliationJobName name) - getEntityReconciliationJob(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. - getEntityReconciliationJobCallable() |
| ListEntityReconciliationJobs | Lists Entity Reconciliation Jobs. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listEntityReconciliationJobs(ListEntityReconciliationJobsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listEntityReconciliationJobs(LocationName parent) - listEntityReconciliationJobs(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. - listEntityReconciliationJobsPagedCallable() - listEntityReconciliationJobsCallable() |
| CancelEntityReconciliationJob | Cancels a EntityReconciliationJob. Success of cancellation is not guaranteed. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - cancelEntityReconciliationJob(CancelEntityReconciliationJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - cancelEntityReconciliationJob(EntityReconciliationJobName name) - cancelEntityReconciliationJob(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. - cancelEntityReconciliationJobCallable() |
| DeleteEntityReconciliationJob | Deletes a EntityReconciliationJob. It only deletes the job when the job state is in FAILED, SUCCEEDED, and CANCELLED. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteEntityReconciliationJob(DeleteEntityReconciliationJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - deleteEntityReconciliationJob(EntityReconciliationJobName name) - deleteEntityReconciliationJob(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. - deleteEntityReconciliationJobCallable() |
| Lookup | Finds the Cloud KG entities with CKG ID(s). | Request object method variants only take one parameter, a request object, which must be constructed before the call. - lookup(LookupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - lookup(LocationName parent, List\<String\> ids) - lookup(String parent, List\<String\> ids) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - lookupCallable() |
| Search | Searches the Cloud KG entities with entity name. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - search(SearchRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - search(LocationName parent, String query) - search(String parent, String query) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - searchCallable() |
| LookupPublicKg | Finds the public KG entities with public KG ID(s). | Request object method variants only take one parameter, a request object, which must be constructed before the call. - lookupPublicKg(LookupPublicKgRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - lookupPublicKg(LocationName parent, List\<String\> ids) - lookupPublicKg(String parent, List\<String\> ids) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - lookupPublicKgCallable() |
| SearchPublicKg | Searches the public KG entities with entity name. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - searchPublicKg(SearchPublicKgRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - searchPublicKg(LocationName parent, String query) - searchPublicKg(String parent, String query) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - searchPublicKgCallable() |
[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
EnterpriseKnowledgeGraphServiceSettings 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
     EnterpriseKnowledgeGraphServiceSettings enterpriseKnowledgeGraphServiceSettings =
         EnterpriseKnowledgeGraphServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create(enterpriseKnowledgeGraphServiceSettings);
     
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
     EnterpriseKnowledgeGraphServiceSettings enterpriseKnowledgeGraphServiceSettings =
         EnterpriseKnowledgeGraphServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create(enterpriseKnowledgeGraphServiceSettings);
     
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
     EnterpriseKnowledgeGraphServiceSettings enterpriseKnowledgeGraphServiceSettings =
         EnterpriseKnowledgeGraphServiceSettings.newHttpJsonBuilder().build();
     EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create(enterpriseKnowledgeGraphServiceSettings);
     
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) \> EnterpriseKnowledgeGraphServiceClient

## Static Methods

### create()

    public static final EnterpriseKnowledgeGraphServiceClient create()

Constructs an instance of EnterpriseKnowledgeGraphServiceClient with default settings.

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

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

### create(EnterpriseKnowledgeGraphServiceSettings settings)

    public static final EnterpriseKnowledgeGraphServiceClient create(EnterpriseKnowledgeGraphServiceSettings settings)

Constructs an instance of EnterpriseKnowledgeGraphServiceClient, 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceSettings` |

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

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

### create(EnterpriseKnowledgeGraphServiceStub stub)

    public static final EnterpriseKnowledgeGraphServiceClient create(EnterpriseKnowledgeGraphServiceStub stub)

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

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

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

## Constructors

### EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceSettings settings)

    protected EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceSettings settings)

Constructs an instance of EnterpriseKnowledgeGraphServiceClient, 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceSettings` |

### EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceStub stub)

    protected EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceStub stub)

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

## 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` |   |

### cancelEntityReconciliationJob(CancelEntityReconciliationJobRequest request)

    public final void cancelEntityReconciliationJob(CancelEntityReconciliationJobRequest request)

Cancels a EntityReconciliationJob. Success of cancellation is not guaranteed.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       CancelEntityReconciliationJobRequest request =
           CancelEntityReconciliationJobRequest.newBuilder()
               .setName(
                   EntityReconciliationJobName.of(
                           "[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
                       .toString())
               .build();
       enterpriseKnowledgeGraphServiceClient.cancelEntityReconciliationJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest` The request object containing all of the parameters for the API call. |

### cancelEntityReconciliationJob(EntityReconciliationJobName name)

    public final void cancelEntityReconciliationJob(EntityReconciliationJobName name)

Cancels a EntityReconciliationJob. Success of cancellation is not guaranteed.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       EntityReconciliationJobName name =
           EntityReconciliationJobName.of("[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]");
       enterpriseKnowledgeGraphServiceClient.cancelEntityReconciliationJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobName` Required. The name of the EntityReconciliationJob resource. Format: `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` |

### cancelEntityReconciliationJob(String name)

    public final void cancelEntityReconciliationJob(String name)

Cancels a EntityReconciliationJob. Success of cancellation is not guaranteed.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String name =
           EntityReconciliationJobName.of("[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
               .toString();
       enterpriseKnowledgeGraphServiceClient.cancelEntityReconciliationJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the EntityReconciliationJob resource. Format: `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` |

### cancelEntityReconciliationJobCallable()

    public final UnaryCallable<CancelEntityReconciliationJobRequest,Empty> cancelEntityReconciliationJobCallable()

Cancels a EntityReconciliationJob. Success of cancellation is not guaranteed.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       CancelEntityReconciliationJobRequest request =
           CancelEntityReconciliationJobRequest.newBuilder()
               .setName(
                   EntityReconciliationJobName.of(
                           "[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
                       .toString())
               .build();
       ApiFuture<Empty> future =
           enterpriseKnowledgeGraphServiceClient
               .cancelEntityReconciliationJobCallable()
               .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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### close()

    public final void close()

### createEntityReconciliationJob(CreateEntityReconciliationJobRequest request)

    public final EntityReconciliationJob createEntityReconciliationJob(CreateEntityReconciliationJobRequest request)

Creates a EntityReconciliationJob. A EntityReconciliationJob once created will right away be
attempted to start.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       CreateEntityReconciliationJobRequest request =
           CreateEntityReconciliationJobRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setEntityReconciliationJob(EntityReconciliationJob.newBuilder().build())
               .build();
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.createEntityReconciliationJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob` |   |

### createEntityReconciliationJob(LocationName parent, EntityReconciliationJob entityReconciliationJob)

    public final EntityReconciliationJob createEntityReconciliationJob(LocationName parent, EntityReconciliationJob entityReconciliationJob)

Creates a EntityReconciliationJob. A EntityReconciliationJob once created will right away be
attempted to start.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       EntityReconciliationJob entityReconciliationJob =
           EntityReconciliationJob.newBuilder().build();
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.createEntityReconciliationJob(
               parent, entityReconciliationJob);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LocationName` Required. The resource name of the Location to create the EntityReconciliationJob in. Format: `projects/{project}/locations/{location}` |
| `entityReconciliationJob` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob` Required. The EntityReconciliationJob to create. |

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

### createEntityReconciliationJob(String parent, EntityReconciliationJob entityReconciliationJob)

    public final EntityReconciliationJob createEntityReconciliationJob(String parent, EntityReconciliationJob entityReconciliationJob)

Creates a EntityReconciliationJob. A EntityReconciliationJob once created will right away be
attempted to start.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       EntityReconciliationJob entityReconciliationJob =
           EntityReconciliationJob.newBuilder().build();
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.createEntityReconciliationJob(
               parent, entityReconciliationJob);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The resource name of the Location to create the EntityReconciliationJob in. Format: `projects/{project}/locations/{location}` |
| `entityReconciliationJob` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob` Required. The EntityReconciliationJob to create. |

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

### createEntityReconciliationJobCallable()

    public final UnaryCallable<CreateEntityReconciliationJobRequest,EntityReconciliationJob> createEntityReconciliationJobCallable()

Creates a EntityReconciliationJob. A EntityReconciliationJob once created will right away be
attempted to start.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       CreateEntityReconciliationJobRequest request =
           CreateEntityReconciliationJobRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setEntityReconciliationJob(EntityReconciliationJob.newBuilder().build())
               .build();
       ApiFuture<EntityReconciliationJob> future =
           enterpriseKnowledgeGraphServiceClient
               .createEntityReconciliationJobCallable()
               .futureCall(request);
       // Do something.
       EntityReconciliationJob 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>` |   |

### deleteEntityReconciliationJob(DeleteEntityReconciliationJobRequest request)

    public final void deleteEntityReconciliationJob(DeleteEntityReconciliationJobRequest request)

Deletes a EntityReconciliationJob. It only deletes the job when the job state is in FAILED,
SUCCEEDED, and CANCELLED.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       DeleteEntityReconciliationJobRequest request =
           DeleteEntityReconciliationJobRequest.newBuilder()
               .setName(
                   EntityReconciliationJobName.of(
                           "[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
                       .toString())
               .build();
       enterpriseKnowledgeGraphServiceClient.deleteEntityReconciliationJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest` The request object containing all of the parameters for the API call. |

### deleteEntityReconciliationJob(EntityReconciliationJobName name)

    public final void deleteEntityReconciliationJob(EntityReconciliationJobName name)

Deletes a EntityReconciliationJob. It only deletes the job when the job state is in FAILED,
SUCCEEDED, and CANCELLED.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       EntityReconciliationJobName name =
           EntityReconciliationJobName.of("[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]");
       enterpriseKnowledgeGraphServiceClient.deleteEntityReconciliationJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobName` Required. The name of the EntityReconciliationJob resource. Format: `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` |

### deleteEntityReconciliationJob(String name)

    public final void deleteEntityReconciliationJob(String name)

Deletes a EntityReconciliationJob. It only deletes the job when the job state is in FAILED,
SUCCEEDED, and CANCELLED.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String name =
           EntityReconciliationJobName.of("[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
               .toString();
       enterpriseKnowledgeGraphServiceClient.deleteEntityReconciliationJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the EntityReconciliationJob resource. Format: `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` |

### deleteEntityReconciliationJobCallable()

    public final UnaryCallable<DeleteEntityReconciliationJobRequest,Empty> deleteEntityReconciliationJobCallable()

Deletes a EntityReconciliationJob. It only deletes the job when the job state is in FAILED,
SUCCEEDED, and CANCELLED.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       DeleteEntityReconciliationJobRequest request =
           DeleteEntityReconciliationJobRequest.newBuilder()
               .setName(
                   EntityReconciliationJobName.of(
                           "[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
                       .toString())
               .build();
       ApiFuture<Empty> future =
           enterpriseKnowledgeGraphServiceClient
               .deleteEntityReconciliationJobCallable()
               .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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getEntityReconciliationJob(EntityReconciliationJobName name)

    public final EntityReconciliationJob getEntityReconciliationJob(EntityReconciliationJobName name)

Gets a EntityReconciliationJob.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       EntityReconciliationJobName name =
           EntityReconciliationJobName.of("[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]");
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.getEntityReconciliationJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobName` Required. The name of the EntityReconciliationJob resource. Format: `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` |

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

### getEntityReconciliationJob(GetEntityReconciliationJobRequest request)

    public final EntityReconciliationJob getEntityReconciliationJob(GetEntityReconciliationJobRequest request)

Gets a EntityReconciliationJob.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       GetEntityReconciliationJobRequest request =
           GetEntityReconciliationJobRequest.newBuilder()
               .setName(
                   EntityReconciliationJobName.of(
                           "[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
                       .toString())
               .build();
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.getEntityReconciliationJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob` |   |

### getEntityReconciliationJob(String name)

    public final EntityReconciliationJob getEntityReconciliationJob(String name)

Gets a EntityReconciliationJob.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String name =
           EntityReconciliationJobName.of("[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
               .toString();
       EntityReconciliationJob response =
           enterpriseKnowledgeGraphServiceClient.getEntityReconciliationJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the EntityReconciliationJob resource. Format: `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` |

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

### getEntityReconciliationJobCallable()

    public final UnaryCallable<GetEntityReconciliationJobRequest,EntityReconciliationJob> getEntityReconciliationJobCallable()

Gets a EntityReconciliationJob.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       GetEntityReconciliationJobRequest request =
           GetEntityReconciliationJobRequest.newBuilder()
               .setName(
                   EntityReconciliationJobName.of(
                           "[PROJECT]", "[LOCATION]", "[ENTITY_RECONCILIATION_JOB]")
                       .toString())
               .build();
       ApiFuture<EntityReconciliationJob> future =
           enterpriseKnowledgeGraphServiceClient
               .getEntityReconciliationJobCallable()
               .futureCall(request);
       // Do something.
       EntityReconciliationJob 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>` |   |

### getSettings()

    public final EnterpriseKnowledgeGraphServiceSettings getSettings()

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

### getStub()

    public EnterpriseKnowledgeGraphServiceStub getStub()

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

### 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` |   |

### listEntityReconciliationJobs(ListEntityReconciliationJobsRequest request)

    public final EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse listEntityReconciliationJobs(ListEntityReconciliationJobsRequest request)

Lists Entity Reconciliation Jobs.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       ListEntityReconciliationJobsRequest request =
           ListEntityReconciliationJobsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (EntityReconciliationJob element :
           enterpriseKnowledgeGraphServiceClient
               .listEntityReconciliationJobs(request)
               .iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse` |   |

### listEntityReconciliationJobs(LocationName parent)

    public final EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse listEntityReconciliationJobs(LocationName parent)

Lists Entity Reconciliation Jobs.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (EntityReconciliationJob element :
           enterpriseKnowledgeGraphServiceClient.listEntityReconciliationJobs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LocationName` Required. The name of the EntityReconciliationJob's parent resource. Format: `projects/{project}/locations/{location}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse` |   |

### listEntityReconciliationJobs(String parent)

    public final EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse listEntityReconciliationJobs(String parent)

Lists Entity Reconciliation Jobs.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (EntityReconciliationJob element :
           enterpriseKnowledgeGraphServiceClient.listEntityReconciliationJobs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the EntityReconciliationJob's parent resource. Format: `projects/{project}/locations/{location}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse` |   |

### listEntityReconciliationJobsCallable()

    public final UnaryCallable<ListEntityReconciliationJobsRequest,ListEntityReconciliationJobsResponse> listEntityReconciliationJobsCallable()

Lists Entity Reconciliation Jobs.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       ListEntityReconciliationJobsRequest request =
           ListEntityReconciliationJobsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListEntityReconciliationJobsResponse response =
             enterpriseKnowledgeGraphServiceClient
                 .listEntityReconciliationJobsCallable()
                 .call(request);
         for (EntityReconciliationJob element : response.getEntityReconciliationJobsList()) {
           // 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse>` |   |

### listEntityReconciliationJobsPagedCallable()

    public final UnaryCallable<ListEntityReconciliationJobsRequest,EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse> listEntityReconciliationJobsPagedCallable()

Lists Entity Reconciliation Jobs.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       ListEntityReconciliationJobsRequest request =
           ListEntityReconciliationJobsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<EntityReconciliationJob> future =
           enterpriseKnowledgeGraphServiceClient
               .listEntityReconciliationJobsPagedCallable()
               .futureCall(request);
       // Do something.
       for (EntityReconciliationJob 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClient.ListEntityReconciliationJobsPagedResponse>` |   |

### lookup(LocationName parent, List\<String\> ids)

    public final LookupResponse lookup(LocationName parent, List<String> ids)

Finds the Cloud KG entities with CKG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       List<String> ids = new ArrayList<>();
       LookupResponse response = enterpriseKnowledgeGraphServiceClient.lookup(parent, ids);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LocationName` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `ids` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` Required. The list of entity ids to be used for lookup. |

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

### lookup(LookupRequest request)

    public final LookupResponse lookup(LookupRequest request)

Finds the Cloud KG entities with CKG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LookupRequest request =
           LookupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .addAllIds(new ArrayList<String>())
               .addAllLanguages(new ArrayList<String>())
               .build();
       LookupResponse response = enterpriseKnowledgeGraphServiceClient.lookup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse` |   |

### lookup(String parent, List\<String\> ids)

    public final LookupResponse lookup(String parent, List<String> ids)

Finds the Cloud KG entities with CKG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       List<String> ids = new ArrayList<>();
       LookupResponse response = enterpriseKnowledgeGraphServiceClient.lookup(parent, ids);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `ids` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` Required. The list of entity ids to be used for lookup. |

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

### lookupCallable()

    public final UnaryCallable<LookupRequest,LookupResponse> lookupCallable()

Finds the Cloud KG entities with CKG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LookupRequest request =
           LookupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .addAllIds(new ArrayList<String>())
               .addAllLanguages(new ArrayList<String>())
               .build();
       ApiFuture<LookupResponse> future =
           enterpriseKnowledgeGraphServiceClient.lookupCallable().futureCall(request);
       // Do something.
       LookupResponse 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse>` |   |

### lookupPublicKg(LocationName parent, List\<String\> ids)

    public final LookupPublicKgResponse lookupPublicKg(LocationName parent, List<String> ids)

Finds the public KG entities with public KG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       List<String> ids = new ArrayList<>();
       LookupPublicKgResponse response =
           enterpriseKnowledgeGraphServiceClient.lookupPublicKg(parent, ids);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LocationName` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `ids` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` Required. The list of entity ids to be used for lookup. |

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

### lookupPublicKg(LookupPublicKgRequest request)

    public final LookupPublicKgResponse lookupPublicKg(LookupPublicKgRequest request)

Finds the public KG entities with public KG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LookupPublicKgRequest request =
           LookupPublicKgRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .addAllIds(new ArrayList<String>())
               .addAllLanguages(new ArrayList<String>())
               .build();
       LookupPublicKgResponse response =
           enterpriseKnowledgeGraphServiceClient.lookupPublicKg(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse` |   |

### lookupPublicKg(String parent, List\<String\> ids)

    public final LookupPublicKgResponse lookupPublicKg(String parent, List<String> ids)

Finds the public KG entities with public KG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       List<String> ids = new ArrayList<>();
       LookupPublicKgResponse response =
           enterpriseKnowledgeGraphServiceClient.lookupPublicKg(parent, ids);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `ids` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` Required. The list of entity ids to be used for lookup. |

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

### lookupPublicKgCallable()

    public final UnaryCallable<LookupPublicKgRequest,LookupPublicKgResponse> lookupPublicKgCallable()

Finds the public KG entities with public KG ID(s).

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LookupPublicKgRequest request =
           LookupPublicKgRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .addAllIds(new ArrayList<String>())
               .addAllLanguages(new ArrayList<String>())
               .build();
       ApiFuture<LookupPublicKgResponse> future =
           enterpriseKnowledgeGraphServiceClient.lookupPublicKgCallable().futureCall(request);
       // Do something.
       LookupPublicKgResponse 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse>` |   |

### search(LocationName parent, String query)

    public final SearchResponse search(LocationName parent, String query)

Searches the Cloud KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       String query = "query107944136";
       SearchResponse response = enterpriseKnowledgeGraphServiceClient.search(parent, query);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LocationName` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `query` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The literal query string for search. |

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

### search(SearchRequest request)

    public final SearchResponse search(SearchRequest request)

Searches the Cloud KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       SearchRequest request =
           SearchRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setQuery("query107944136")
               .addAllLanguages(new ArrayList<String>())
               .addAllTypes(new ArrayList<String>())
               .setLimit(Int32Value.newBuilder().build())
               .build();
       SearchResponse response = enterpriseKnowledgeGraphServiceClient.search(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse` |   |

### search(String parent, String query)

    public final SearchResponse search(String parent, String query)

Searches the Cloud KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       String query = "query107944136";
       SearchResponse response = enterpriseKnowledgeGraphServiceClient.search(parent, query);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `query` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The literal query string for search. |

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

### searchCallable()

    public final UnaryCallable<SearchRequest,SearchResponse> searchCallable()

Searches the Cloud KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       SearchRequest request =
           SearchRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setQuery("query107944136")
               .addAllLanguages(new ArrayList<String>())
               .addAllTypes(new ArrayList<String>())
               .setLimit(Int32Value.newBuilder().build())
               .build();
       ApiFuture<SearchResponse> future =
           enterpriseKnowledgeGraphServiceClient.searchCallable().futureCall(request);
       // Do something.
       SearchResponse 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse>` |   |

### searchPublicKg(LocationName parent, String query)

    public final SearchPublicKgResponse searchPublicKg(LocationName parent, String query)

Searches the public KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       String query = "query107944136";
       SearchPublicKgResponse response =
           enterpriseKnowledgeGraphServiceClient.searchPublicKg(parent, query);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.LocationName` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `query` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The literal query string for search. |

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

### searchPublicKg(SearchPublicKgRequest request)

    public final SearchPublicKgResponse searchPublicKg(SearchPublicKgRequest request)

Searches the public KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       SearchPublicKgRequest request =
           SearchPublicKgRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setQuery("query107944136")
               .addAllLanguages(new ArrayList<String>())
               .addAllTypes(new ArrayList<String>())
               .setLimit(Int32Value.newBuilder().build())
               .build();
       SearchPublicKgResponse response =
           enterpriseKnowledgeGraphServiceClient.searchPublicKg(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest` 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse` |   |

### searchPublicKg(String parent, String query)

    public final SearchPublicKgResponse searchPublicKg(String parent, String query)

Searches the public KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       String query = "query107944136";
       SearchPublicKgResponse response =
           enterpriseKnowledgeGraphServiceClient.searchPublicKg(parent, query);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the Entity's parent resource. Format: `projects/{project}/locations/{location}` |
| `query` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The literal query string for search. |

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

### searchPublicKgCallable()

    public final UnaryCallable<SearchPublicKgRequest,SearchPublicKgResponse> searchPublicKgCallable()

Searches the public KG entities with entity name.

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 (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
         EnterpriseKnowledgeGraphServiceClient.create()) {
       SearchPublicKgRequest request =
           SearchPublicKgRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setQuery("query107944136")
               .addAllLanguages(new ArrayList<String>())
               .addAllTypes(new ArrayList<String>())
               .setLimit(Int32Value.newBuilder().build())
               .build();
       ApiFuture<SearchPublicKgResponse> future =
           enterpriseKnowledgeGraphServiceClient.searchPublicKgCallable().futureCall(request);
       // Do something.
       SearchPublicKgResponse 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-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()