Class LfpStoreServiceClient (0.4.0)

GitHub RepositoryProduct Reference

Service Description: Service for a LFP partner to submit local stores for a merchant.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   LfpStoreName name = LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]");
   LfpStore response = lfpStoreServiceClient.getLfpStore(name);
 }
 

Note: close() needs to be called on the LfpStoreServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

Methods
Method Description Method Variants

GetLfpStore

Retrieves information about a store.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLfpStore(GetLfpStoreRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getLfpStore(LfpStoreName name)

  • getLfpStore(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.

  • getLfpStoreCallable()

InsertLfpStore

Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • insertLfpStore(InsertLfpStoreRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • insertLfpStore(AccountName parent, LfpStore lfpStore)

  • insertLfpStore(String parent, LfpStore lfpStore)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • insertLfpStoreCallable()

DeleteLfpStore

Deletes a store for a target merchant.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteLfpStore(DeleteLfpStoreRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • deleteLfpStore(LfpStoreName name)

  • deleteLfpStore(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.

  • deleteLfpStoreCallable()

ListLfpStores

Lists the stores of the target merchant, specified by the filter in ListLfpStoresRequest.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listLfpStores(ListLfpStoresRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listLfpStores(AccountName parent)

  • listLfpStores(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.

  • listLfpStoresPagedCallable()

  • listLfpStoresCallable()

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 LfpStoreServiceSettings 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
 LfpStoreServiceSettings lfpStoreServiceSettings =
     LfpStoreServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 LfpStoreServiceClient lfpStoreServiceClient =
     LfpStoreServiceClient.create(lfpStoreServiceSettings);
 

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
 LfpStoreServiceSettings lfpStoreServiceSettings =
     LfpStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 LfpStoreServiceClient lfpStoreServiceClient =
     LfpStoreServiceClient.create(lfpStoreServiceSettings);
 

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
 LfpStoreServiceSettings lfpStoreServiceSettings =
     LfpStoreServiceSettings.newHttpJsonBuilder().build();
 LfpStoreServiceClient lfpStoreServiceClient =
     LfpStoreServiceClient.create(lfpStoreServiceSettings);
 

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

Inheritance

java.lang.Object > LfpStoreServiceClient

Static Methods

create()

public static final LfpStoreServiceClient create()

Constructs an instance of LfpStoreServiceClient with default settings.

Returns
Type Description
LfpStoreServiceClient
Exceptions
Type Description
IOException

create(LfpStoreServiceSettings settings)

public static final LfpStoreServiceClient create(LfpStoreServiceSettings settings)

Constructs an instance of LfpStoreServiceClient, 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 LfpStoreServiceSettings
Returns
Type Description
LfpStoreServiceClient
Exceptions
Type Description
IOException

create(LfpStoreServiceStub stub)

public static final LfpStoreServiceClient create(LfpStoreServiceStub stub)

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

Parameter
Name Description
stub LfpStoreServiceStub
Returns
Type Description
LfpStoreServiceClient

Constructors

LfpStoreServiceClient(LfpStoreServiceSettings settings)

protected LfpStoreServiceClient(LfpStoreServiceSettings settings)

Constructs an instance of LfpStoreServiceClient, 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 LfpStoreServiceSettings

LfpStoreServiceClient(LfpStoreServiceStub stub)

protected LfpStoreServiceClient(LfpStoreServiceStub stub)
Parameter
Name Description
stub LfpStoreServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()

deleteLfpStore(DeleteLfpStoreRequest request)

public final void deleteLfpStore(DeleteLfpStoreRequest request)

Deletes a store for a target merchant.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   DeleteLfpStoreRequest request =
       DeleteLfpStoreRequest.newBuilder()
           .setName(LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]").toString())
           .build();
   lfpStoreServiceClient.deleteLfpStore(request);
 }
 
Parameter
Name Description
request DeleteLfpStoreRequest

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

deleteLfpStore(LfpStoreName name)

public final void deleteLfpStore(LfpStoreName name)

Deletes a store for a target merchant.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   LfpStoreName name = LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]");
   lfpStoreServiceClient.deleteLfpStore(name);
 }
 
Parameter
Name Description
name LfpStoreName

Required. The name of the store to delete for the target merchant account. Format: accounts/{account}/lfpStores/{target_merchant}~{store_code}

deleteLfpStore(String name)

public final void deleteLfpStore(String name)

Deletes a store for a target merchant.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   String name = LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]").toString();
   lfpStoreServiceClient.deleteLfpStore(name);
 }
 
Parameter
Name Description
name String

Required. The name of the store to delete for the target merchant account. Format: accounts/{account}/lfpStores/{target_merchant}~{store_code}

deleteLfpStoreCallable()

public final UnaryCallable<DeleteLfpStoreRequest,Empty> deleteLfpStoreCallable()

Deletes a store for a target merchant.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   DeleteLfpStoreRequest request =
       DeleteLfpStoreRequest.newBuilder()
           .setName(LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]").toString())
           .build();
   ApiFuture<Empty> future = lfpStoreServiceClient.deleteLfpStoreCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteLfpStoreRequest,Empty>

getLfpStore(GetLfpStoreRequest request)

public final LfpStore getLfpStore(GetLfpStoreRequest request)

Retrieves information about a store.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   GetLfpStoreRequest request =
       GetLfpStoreRequest.newBuilder()
           .setName(LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]").toString())
           .build();
   LfpStore response = lfpStoreServiceClient.getLfpStore(request);
 }
 
Parameter
Name Description
request GetLfpStoreRequest

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

Returns
Type Description
LfpStore

getLfpStore(LfpStoreName name)

public final LfpStore getLfpStore(LfpStoreName name)

Retrieves information about a store.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   LfpStoreName name = LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]");
   LfpStore response = lfpStoreServiceClient.getLfpStore(name);
 }
 
Parameter
Name Description
name LfpStoreName

Required. The name of the store to retrieve. Format: accounts/{account}/lfpStores/{target_merchant}~{store_code}

Returns
Type Description
LfpStore

getLfpStore(String name)

public final LfpStore getLfpStore(String name)

Retrieves information about a store.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   String name = LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]").toString();
   LfpStore response = lfpStoreServiceClient.getLfpStore(name);
 }
 
Parameter
Name Description
name String

Required. The name of the store to retrieve. Format: accounts/{account}/lfpStores/{target_merchant}~{store_code}

Returns
Type Description
LfpStore

getLfpStoreCallable()

public final UnaryCallable<GetLfpStoreRequest,LfpStore> getLfpStoreCallable()

Retrieves information about a store.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   GetLfpStoreRequest request =
       GetLfpStoreRequest.newBuilder()
           .setName(LfpStoreName.of("[ACCOUNT]", "[TARGET_MERCHANT]", "[STORE_CODE]").toString())
           .build();
   ApiFuture<LfpStore> future = lfpStoreServiceClient.getLfpStoreCallable().futureCall(request);
   // Do something.
   LfpStore response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetLfpStoreRequest,LfpStore>

getSettings()

public final LfpStoreServiceSettings getSettings()
Returns
Type Description
LfpStoreServiceSettings

getStub()

public LfpStoreServiceStub getStub()
Returns
Type Description
LfpStoreServiceStub

insertLfpStore(AccountName parent, LfpStore lfpStore)

public final LfpStore insertLfpStore(AccountName parent, LfpStore lfpStore)

Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   AccountName parent = AccountName.of("[ACCOUNT]");
   LfpStore lfpStore = LfpStore.newBuilder().build();
   LfpStore response = lfpStoreServiceClient.insertLfpStore(parent, lfpStore);
 }
 
Parameters
Name Description
parent AccountName

Required. The LFP provider account Format: accounts/{account}

lfpStore LfpStore

Required. The store to insert.

Returns
Type Description
LfpStore

insertLfpStore(InsertLfpStoreRequest request)

public final LfpStore insertLfpStore(InsertLfpStoreRequest request)

Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   InsertLfpStoreRequest request =
       InsertLfpStoreRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setLfpStore(LfpStore.newBuilder().build())
           .build();
   LfpStore response = lfpStoreServiceClient.insertLfpStore(request);
 }
 
Parameter
Name Description
request InsertLfpStoreRequest

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

Returns
Type Description
LfpStore

insertLfpStore(String parent, LfpStore lfpStore)

public final LfpStore insertLfpStore(String parent, LfpStore lfpStore)

Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   String parent = AccountName.of("[ACCOUNT]").toString();
   LfpStore lfpStore = LfpStore.newBuilder().build();
   LfpStore response = lfpStoreServiceClient.insertLfpStore(parent, lfpStore);
 }
 
Parameters
Name Description
parent String

Required. The LFP provider account Format: accounts/{account}

lfpStore LfpStore

Required. The store to insert.

Returns
Type Description
LfpStore

insertLfpStoreCallable()

public final UnaryCallable<InsertLfpStoreRequest,LfpStore> insertLfpStoreCallable()

Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   InsertLfpStoreRequest request =
       InsertLfpStoreRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setLfpStore(LfpStore.newBuilder().build())
           .build();
   ApiFuture<LfpStore> future =
       lfpStoreServiceClient.insertLfpStoreCallable().futureCall(request);
   // Do something.
   LfpStore response = future.get();
 }
 
Returns
Type Description
UnaryCallable<InsertLfpStoreRequest,LfpStore>

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLfpStores(AccountName parent)

public final LfpStoreServiceClient.ListLfpStoresPagedResponse listLfpStores(AccountName parent)

Lists the stores of the target merchant, specified by the filter in ListLfpStoresRequest.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   AccountName parent = AccountName.of("[ACCOUNT]");
   for (LfpStore element : lfpStoreServiceClient.listLfpStores(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent AccountName

Required. The LFP partner. Format: accounts/{account}

Returns
Type Description
LfpStoreServiceClient.ListLfpStoresPagedResponse

listLfpStores(ListLfpStoresRequest request)

public final LfpStoreServiceClient.ListLfpStoresPagedResponse listLfpStores(ListLfpStoresRequest request)

Lists the stores of the target merchant, specified by the filter in ListLfpStoresRequest.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   ListLfpStoresRequest request =
       ListLfpStoresRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setTargetAccount(-475823745)
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (LfpStore element : lfpStoreServiceClient.listLfpStores(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListLfpStoresRequest

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

Returns
Type Description
LfpStoreServiceClient.ListLfpStoresPagedResponse

listLfpStores(String parent)

public final LfpStoreServiceClient.ListLfpStoresPagedResponse listLfpStores(String parent)

Lists the stores of the target merchant, specified by the filter in ListLfpStoresRequest.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   String parent = AccountName.of("[ACCOUNT]").toString();
   for (LfpStore element : lfpStoreServiceClient.listLfpStores(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The LFP partner. Format: accounts/{account}

Returns
Type Description
LfpStoreServiceClient.ListLfpStoresPagedResponse

listLfpStoresCallable()

public final UnaryCallable<ListLfpStoresRequest,ListLfpStoresResponse> listLfpStoresCallable()

Lists the stores of the target merchant, specified by the filter in ListLfpStoresRequest.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   ListLfpStoresRequest request =
       ListLfpStoresRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setTargetAccount(-475823745)
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLfpStoresResponse response =
         lfpStoreServiceClient.listLfpStoresCallable().call(request);
     for (LfpStore element : response.getLfpStoresList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListLfpStoresRequest,ListLfpStoresResponse>

listLfpStoresPagedCallable()

public final UnaryCallable<ListLfpStoresRequest,LfpStoreServiceClient.ListLfpStoresPagedResponse> listLfpStoresPagedCallable()

Lists the stores of the target merchant, specified by the filter in ListLfpStoresRequest.

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 (LfpStoreServiceClient lfpStoreServiceClient = LfpStoreServiceClient.create()) {
   ListLfpStoresRequest request =
       ListLfpStoresRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setTargetAccount(-475823745)
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<LfpStore> future =
       lfpStoreServiceClient.listLfpStoresPagedCallable().futureCall(request);
   // Do something.
   for (LfpStore element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListLfpStoresRequest,ListLfpStoresPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()