LookupService

google.cloud.servicedirectory.v1. LookupService

Represents a LookupService

Constructor

new LookupService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new LookupService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

resolveService(request, callback) → {undefined}

Calls ResolveService.

Parameters:
Name Type Description
request google.cloud.servicedirectory.v1.IResolveServiceRequest

ResolveServiceRequest message or plain object

callback google.cloud.servicedirectory.v1.LookupService.ResolveServiceCallback

Node-style callback called with the error, if any, and ResolveServiceResponse

Returns:
Type Description
undefined

resolveService(request) → {Promise.<google.cloud.servicedirectory.v1.ResolveServiceResponse>}

Calls ResolveService.

Parameters:
Name Type Description
request google.cloud.servicedirectory.v1.IResolveServiceRequest

ResolveServiceRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.servicedirectory.v1.ResolveServiceResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {LookupService}

Creates new LookupService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
LookupService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

ResolveServiceCallback(error, responseopt)

Callback as used by resolveService.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.servicedirectory.v1.ResolveServiceResponse <optional>

ResolveServiceResponse