Class protos.google.cloud.policysimulator.v1.Simulator (0.5.1)

Represents a Simulator

Inheritance

$protobuf.rpc.Service > protos.google.cloud.policysimulator.v1.Simulator

Package

@google-cloud/policysimulator

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Simulator 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): Simulator;

Creates new Simulator 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
Simulator

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

createReplay(request, callback)

public createReplay(request: google.cloud.policysimulator.v1.ICreateReplayRequest, callback: google.cloud.policysimulator.v1.Simulator.CreateReplayCallback): void;

Calls CreateReplay.

Parameters
Name Description
request ICreateReplayRequest

CreateReplayRequest message or plain object

callback CreateReplayCallback

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

Returns
Type Description
void

createReplay(request)

public createReplay(request: google.cloud.policysimulator.v1.ICreateReplayRequest): Promise<google.longrunning.Operation>;

Calls CreateReplay.

Parameter
Name Description
request ICreateReplayRequest

CreateReplayRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getReplay(request, callback)

public getReplay(request: google.cloud.policysimulator.v1.IGetReplayRequest, callback: google.cloud.policysimulator.v1.Simulator.GetReplayCallback): void;

Calls GetReplay.

Parameters
Name Description
request IGetReplayRequest

GetReplayRequest message or plain object

callback GetReplayCallback

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

Returns
Type Description
void

getReplay(request)

public getReplay(request: google.cloud.policysimulator.v1.IGetReplayRequest): Promise<google.cloud.policysimulator.v1.Replay>;

Calls GetReplay.

Parameter
Name Description
request IGetReplayRequest

GetReplayRequest message or plain object

Returns
Type Description
Promise<google.cloud.policysimulator.v1.Replay>

Promise

listReplayResults(request, callback)

public listReplayResults(request: google.cloud.policysimulator.v1.IListReplayResultsRequest, callback: google.cloud.policysimulator.v1.Simulator.ListReplayResultsCallback): void;

Calls ListReplayResults.

Parameters
Name Description
request IListReplayResultsRequest

ListReplayResultsRequest message or plain object

callback ListReplayResultsCallback

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

Returns
Type Description
void

listReplayResults(request)

public listReplayResults(request: google.cloud.policysimulator.v1.IListReplayResultsRequest): Promise<google.cloud.policysimulator.v1.ListReplayResultsResponse>;

Calls ListReplayResults.

Parameter
Name Description
request IListReplayResultsRequest

ListReplayResultsRequest message or plain object

Returns
Type Description
Promise<google.cloud.policysimulator.v1.ListReplayResultsResponse>

Promise