Class LocationsGrpc.LocationsBlockingStub (2.40.0)

public static final class LocationsGrpc.LocationsBlockingStub extends AbstractBlockingStub<LocationsGrpc.LocationsBlockingStub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > LocationsGrpc.LocationsBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

getLocation(GetLocationRequest request)

public Location getLocation(GetLocationRequest request)

Gets information about a location.

Parameter
Name Description
request GetLocationRequest
Returns
Type Description
Location

listLocations(ListLocationsRequest request)

public ListLocationsResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Parameter
Name Description
request ListLocationsRequest
Returns
Type Description
ListLocationsResponse