Class EnterpriseKnowledgeGraphServiceClient (0.1.0)

public class EnterpriseKnowledgeGraphServiceClient implements BackgroundResource

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

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.newBuilder()
         .setTransportChannelProvider(
             EnterpriseKnowledgeGraphServiceSettings.defaultHttpJsonTransportProviderBuilder()
                 .build())
         .build();
 EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
     EnterpriseKnowledgeGraphServiceClient.create(enterpriseKnowledgeGraphServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > EnterpriseKnowledgeGraphServiceClient

Implements

BackgroundResource

Static Methods

create()

public static final EnterpriseKnowledgeGraphServiceClient create()

Constructs an instance of EnterpriseKnowledgeGraphServiceClient with default settings.

Returns
TypeDescription
EnterpriseKnowledgeGraphServiceClient
Exceptions
TypeDescription
IOException

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
NameDescription
settingsEnterpriseKnowledgeGraphServiceSettings
Returns
TypeDescription
EnterpriseKnowledgeGraphServiceClient
Exceptions
TypeDescription
IOException

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
NameDescription
stubEnterpriseKnowledgeGraphServiceStub
Returns
TypeDescription
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
NameDescription
settingsEnterpriseKnowledgeGraphServiceSettings

EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceStub stub)

protected EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceStub stub)
Parameter
NameDescription
stubEnterpriseKnowledgeGraphServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

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
NameDescription
requestCancelEntityReconciliationJobRequest

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
NameDescription
nameEntityReconciliationJobName

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
NameDescription
nameString

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
TypeDescription
UnaryCallable<CancelEntityReconciliationJobRequest,Empty>

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
NameDescription
requestCreateEntityReconciliationJobRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. The resource name of the Location to create the EntityReconciliationJob in. Format: projects/{project}/locations/{location}

entityReconciliationJobEntityReconciliationJob

Required. The EntityReconciliationJob to create.

Returns
TypeDescription
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
NameDescription
parentString

Required. The resource name of the Location to create the EntityReconciliationJob in. Format: projects/{project}/locations/{location}

entityReconciliationJobEntityReconciliationJob

Required. The EntityReconciliationJob to create.

Returns
TypeDescription
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
TypeDescription
UnaryCallable<CreateEntityReconciliationJobRequest,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
NameDescription
requestDeleteEntityReconciliationJobRequest

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
NameDescription
nameEntityReconciliationJobName

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
NameDescription
nameString

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
TypeDescription
UnaryCallable<DeleteEntityReconciliationJobRequest,Empty>

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
NameDescription
nameEntityReconciliationJobName

Required. The name of the EntityReconciliationJob resource. Format: projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}

Returns
TypeDescription
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
NameDescription
requestGetEntityReconciliationJobRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
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
NameDescription
nameString

Required. The name of the EntityReconciliationJob resource. Format: projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}

Returns
TypeDescription
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
TypeDescription
UnaryCallable<GetEntityReconciliationJobRequest,EntityReconciliationJob>

getSettings()

public final EnterpriseKnowledgeGraphServiceSettings getSettings()
Returns
TypeDescription
EnterpriseKnowledgeGraphServiceSettings

getStub()

public EnterpriseKnowledgeGraphServiceStub getStub()
Returns
TypeDescription
EnterpriseKnowledgeGraphServiceStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

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
NameDescription
requestListEntityReconciliationJobsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. The name of the EntityReconciliationJob's parent resource. Format: projects/{project}/locations/{location}

Returns
TypeDescription
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
NameDescription
parentString

Required. The name of the EntityReconciliationJob's parent resource. Format: projects/{project}/locations/{location}

Returns
TypeDescription
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
TypeDescription
UnaryCallable<ListEntityReconciliationJobsRequest,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
TypeDescription
UnaryCallable<ListEntityReconciliationJobsRequest,ListEntityReconciliationJobsPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()