Class protos.google.cloud.chronicle.v1.InstanceService (0.10.1)

Represents an InstanceService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.chronicle.v1.InstanceService

Package

@google-cloud/chronicle

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new InstanceService service.

Parameters
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): InstanceService;

Creates new InstanceService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
InstanceService

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

getInstance(request, callback)

public getInstance(request: google.cloud.chronicle.v1.IGetInstanceRequest, callback: google.cloud.chronicle.v1.InstanceService.GetInstanceCallback): void;

Calls GetInstance.

Parameters
Name Description
request IGetInstanceRequest

GetInstanceRequest message or plain object

callback GetInstanceCallback

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

Returns
Type Description
void

getInstance(request)

public getInstance(request: google.cloud.chronicle.v1.IGetInstanceRequest): Promise<google.cloud.chronicle.v1.Instance>;

Calls GetInstance.

Parameter
Name Description
request IGetInstanceRequest

GetInstanceRequest message or plain object

Returns
Type Description
Promise<google.cloud.chronicle.v1.Instance>

Promise