Class protos.google.cloud.dialogflow.v2beta1.Fulfillments (4.1.4)

Represents a Fulfillments

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.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.v2beta1.IGetFulfillmentRequest, callback: google.cloud.dialogflow.v2beta1.Fulfillments.GetFulfillmentCallback): void;

Calls GetFulfillment.

Parameters
NameDescription
request google.cloud.dialogflow.v2beta1.IGetFulfillmentRequest

GetFulfillmentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Fulfillments.GetFulfillmentCallback

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

Returns
TypeDescription
void

getFulfillment(request)

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

Calls GetFulfillment.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.IGetFulfillmentRequest

GetFulfillmentRequest message or plain object

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

Promise

updateFulfillment(request, callback)

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

Calls UpdateFulfillment.

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

UpdateFulfillmentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Fulfillments.UpdateFulfillmentCallback

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

Returns
TypeDescription
void

updateFulfillment(request)

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

Calls UpdateFulfillment.

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

UpdateFulfillmentRequest message or plain object

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

Promise