Class LocationsGrpc.LocationsFutureStub (2.43.0)

public static final class LocationsGrpc.LocationsFutureStub extends AbstractFutureStub<LocationsGrpc.LocationsFutureStub>

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

An abstract interface that provides location-related information for a service. Service-specific metadata is provided through the Location.metadata field.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > LocationsGrpc.LocationsFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

getLocation(GetLocationRequest request)

public ListenableFuture<Location> getLocation(GetLocationRequest request)

Gets information about a location.

Parameter
Name Description
request GetLocationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Location>

listLocations(ListLocationsRequest request)

public ListenableFuture<ListLocationsResponse> listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Parameter
Name Description
request ListLocationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListLocationsResponse>