Class protos.google.cloud.dialogflow.v2.Fulfillments (6.8.0)

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

Creates new Fulfillments 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
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
Name Description
request IGetFulfillmentRequest

GetFulfillmentRequest message or plain object

callback GetFulfillmentCallback

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

Returns
Type Description
void

getFulfillment(request)

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

Calls GetFulfillment.

Parameter
Name Description
request IGetFulfillmentRequest

GetFulfillmentRequest message or plain object

Returns
Type Description
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
Name Description
request IUpdateFulfillmentRequest

UpdateFulfillmentRequest message or plain object

callback UpdateFulfillmentCallback

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

Returns
Type Description
void

updateFulfillment(request)

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

Calls UpdateFulfillment.

Parameter
Name Description
request IUpdateFulfillmentRequest

UpdateFulfillmentRequest message or plain object

Returns
Type Description
Promise<google.cloud.dialogflow.v2.Fulfillment>

Promise