Class LocationsGrpc.LocationsFutureStub (2.11.0)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestGetLocationRequest
Returns
TypeDescription
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
NameDescription
requestListLocationsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListLocationsResponse>