Represents a LookupService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.servicedirectory.v1beta1.LookupServicePackage
@google-cloud/service-directory!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new LookupService service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | 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 |
Type | Description |
void |
resolveService(request)
public resolveService(request: google.cloud.servicedirectory.v1beta1.IResolveServiceRequest): Promise<google.cloud.servicedirectory.v1beta1.ResolveServiceResponse>;
Calls ResolveService.
Name | Description |
request |
google.cloud.servicedirectory.v1beta1.IResolveServiceRequest
ResolveServiceRequest message or plain object |
Type | Description |
Promise<google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> | Promise |