LookupService

google.cloud.servicedirectory.v1beta1. 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

(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.

resolveService(request, callback) → {undefined}

Calls ResolveService.

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

ResolveServiceRequest message or plain object

callback google.cloud.servicedirectory.v1beta1.LookupService.ResolveServiceCallback

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

Returns:
Type Description
undefined

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

Calls ResolveService.

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

ResolveServiceRequest message or plain object

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

Promise

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.v1beta1.ResolveServiceResponse <optional>

ResolveServiceResponse