Class RegionsServiceGrpc.RegionsServiceFutureStub (0.8.0)

public static final class RegionsServiceGrpc.RegionsServiceFutureStub extends AbstractFutureStub<RegionsServiceGrpc.RegionsServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service RegionsService.

Manages regions configuration. This API defines the following resource model:

  • Region

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > RegionsServiceGrpc.RegionsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected RegionsServiceGrpc.RegionsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
RegionsServiceGrpc.RegionsServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createRegion(CreateRegionRequest request)

public ListenableFuture<Region> createRegion(CreateRegionRequest request)

Creates a region definition in your Merchant Center account. Executing this method requires admin access.

Parameter
Name Description
request CreateRegionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Region>

deleteRegion(DeleteRegionRequest request)

public ListenableFuture<Empty> deleteRegion(DeleteRegionRequest request)

Deletes a region definition from your Merchant Center account. Executing this method requires admin access.

Parameter
Name Description
request DeleteRegionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getRegion(GetRegionRequest request)

public ListenableFuture<Region> getRegion(GetRegionRequest request)

Retrieves a region defined in your Merchant Center account.

Parameter
Name Description
request GetRegionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Region>

listRegions(ListRegionsRequest request)

public ListenableFuture<ListRegionsResponse> listRegions(ListRegionsRequest request)

Lists the regions in your Merchant Center account.

Parameter
Name Description
request ListRegionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListRegionsResponse>

updateRegion(UpdateRegionRequest request)

public ListenableFuture<Region> updateRegion(UpdateRegionRequest request)

Updates a region definition in your Merchant Center account. Executing this method requires admin access.

Parameter
Name Description
request UpdateRegionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Region>