Google.Cloud.Location - Class Locations.LocationsBase (2.2.0)

[BindServiceMethod(typeof(Locations), "BindService")]
public abstract class Locations.LocationsBase

Reference documentation and code samples for the Google.Cloud.Location class Locations.LocationsBase.

Base class for server-side implementations of Locations

Inheritance

object > Locations.LocationsBase

Namespace

Google.Cloud.Location

Assembly

Google.Cloud.Location.dll

Methods

GetLocation(GetLocationRequest, ServerCallContext)

public virtual Task<Location> GetLocation(GetLocationRequest request, ServerCallContext context)

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskLocation

The response to send back to the client (wrapped by a task).

ListLocations(ListLocationsRequest, ServerCallContext)

public virtual Task<ListLocationsResponse> ListLocations(ListLocationsRequest request, ServerCallContext context)

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListLocationsResponse

The response to send back to the client (wrapped by a task).