Class RegionsServiceGrpc.RegionsServiceStub (0.5.0)

public static final class RegionsServiceGrpc.RegionsServiceStub extends AbstractAsyncStub<RegionsServiceGrpc.RegionsServiceStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > RegionsServiceGrpc.RegionsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

createRegion(CreateRegionRequest request, StreamObserver<Region> responseObserver)

public void createRegion(CreateRegionRequest request, StreamObserver<Region> responseObserver)

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

Parameters
Name Description
request CreateRegionRequest
responseObserver io.grpc.stub.StreamObserver<Region>

deleteRegion(DeleteRegionRequest request, StreamObserver<Empty> responseObserver)

public void deleteRegion(DeleteRegionRequest request, StreamObserver<Empty> responseObserver)

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

Parameters
Name Description
request DeleteRegionRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getRegion(GetRegionRequest request, StreamObserver<Region> responseObserver)

public void getRegion(GetRegionRequest request, StreamObserver<Region> responseObserver)

Retrieves a region defined in your Merchant Center account.

Parameters
Name Description
request GetRegionRequest
responseObserver io.grpc.stub.StreamObserver<Region>

listRegions(ListRegionsRequest request, StreamObserver<ListRegionsResponse> responseObserver)

public void listRegions(ListRegionsRequest request, StreamObserver<ListRegionsResponse> responseObserver)

Lists the regions in your Merchant Center account.

Parameters
Name Description
request ListRegionsRequest
responseObserver io.grpc.stub.StreamObserver<ListRegionsResponse>

updateRegion(UpdateRegionRequest request, StreamObserver<Region> responseObserver)

public void updateRegion(UpdateRegionRequest request, StreamObserver<Region> responseObserver)

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

Parameters
Name Description
request UpdateRegionRequest
responseObserver io.grpc.stub.StreamObserver<Region>