Class protos.google.cloud.servicedirectory.v1beta1.LookupService (4.0.7)

Represents a LookupService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.servicedirectory.v1beta1.LookupService

Package

@google-cloud/service-directory

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new LookupService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LookupService;

Creates new LookupService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
LookupService

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

resolveService(request, callback)

public resolveService(request: google.cloud.servicedirectory.v1beta1.IResolveServiceRequest, callback: google.cloud.servicedirectory.v1beta1.LookupService.ResolveServiceCallback): void;

Calls ResolveService.

Parameters
NameDescription
request 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
TypeDescription
void

resolveService(request)

public resolveService(request: google.cloud.servicedirectory.v1beta1.IResolveServiceRequest): Promise<google.cloud.servicedirectory.v1beta1.ResolveServiceResponse>;

Calls ResolveService.

Parameter
NameDescription
request IResolveServiceRequest

ResolveServiceRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicedirectory.v1beta1.ResolveServiceResponse>

Promise