public static final class LocationsGrpc.LocationsStub extends AbstractAsyncStub<LocationsGrpc.LocationsStub>
A stub to allow clients to do asynchronous 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.AbstractAsyncStub > LocationsGrpc.LocationsStubMethods
build(Channel channel, CallOptions callOptions)
protected LocationsGrpc.LocationsStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel | io.grpc.Channel |
callOptions | io.grpc.CallOptions |
Returns | |
---|---|
Type | Description |
LocationsGrpc.LocationsStub |
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
getLocation(GetLocationRequest request, StreamObserver<Location> responseObserver)
public void getLocation(GetLocationRequest request, StreamObserver<Location> responseObserver)
Gets information about a location.
Parameters | |
---|---|
Name | Description |
request | GetLocationRequest |
responseObserver | io.grpc.stub.StreamObserver<Location> |
listLocations(ListLocationsRequest request, StreamObserver<ListLocationsResponse> responseObserver)
public void listLocations(ListLocationsRequest request, StreamObserver<ListLocationsResponse> responseObserver)
Lists information about the supported locations for this service.
Parameters | |
---|---|
Name | Description |
request | ListLocationsRequest |
responseObserver | io.grpc.stub.StreamObserver<ListLocationsResponse> |