Class LocationsGrpc (2.42.0)

public final class LocationsGrpc

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 > LocationsGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(LocationsGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(LocationsGrpc.AsyncService service)
Parameter
Name Description
service LocationsGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getGetLocationMethod()

public static MethodDescriptor<GetLocationRequest,Location> getGetLocationMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetLocationRequest,Location>

getListLocationsMethod()

public static MethodDescriptor<ListLocationsRequest,ListLocationsResponse> getListLocationsMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListLocationsRequest,ListLocationsResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

public static LocationsGrpc.LocationsBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LocationsGrpc.LocationsBlockingStub

newFutureStub(Channel channel)

public static LocationsGrpc.LocationsFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LocationsGrpc.LocationsFutureStub

newStub(Channel channel)

public static LocationsGrpc.LocationsStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LocationsGrpc.LocationsStub