Class protos.google.cloud.dialogflow.v2.Fulfillments

Represents a Fulfillments

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Fulfillments

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getFulfillment(request, callback)

public getFulfillment(request: google.cloud.dialogflow.v2.IGetFulfillmentRequest, callback: google.cloud.dialogflow.v2.Fulfillments.GetFulfillmentCallback): void;

Calls GetFulfillment.

Parameters
NameDescription
request IGetFulfillmentRequest

GetFulfillmentRequest message or plain object

callback google.cloud.dialogflow.v2.Fulfillments.GetFulfillmentCallback

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

Returns
TypeDescription
void

getFulfillment(request)

public getFulfillment(request: google.cloud.dialogflow.v2.IGetFulfillmentRequest): Promise<google.cloud.dialogflow.v2.Fulfillment>;

Calls GetFulfillment.

Parameter
NameDescription
request IGetFulfillmentRequest

GetFulfillmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Fulfillment>

Promise

updateFulfillment(request, callback)

public updateFulfillment(request: google.cloud.dialogflow.v2.IUpdateFulfillmentRequest, callback: google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillmentCallback): void;

Calls UpdateFulfillment.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IUpdateFulfillmentRequest

UpdateFulfillmentRequest message or plain object

callback google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillmentCallback

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

Returns
TypeDescription
void

updateFulfillment(request)

public updateFulfillment(request: google.cloud.dialogflow.v2.IUpdateFulfillmentRequest): Promise<google.cloud.dialogflow.v2.Fulfillment>;

Calls UpdateFulfillment.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IUpdateFulfillmentRequest

UpdateFulfillmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Fulfillment>

Promise