Represents a Fulfillments
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.FulfillmentsPackage
@google-cloud/dialogflow!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Fulfillments service.
| 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.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
getFulfillment(request)
public getFulfillment(request: google.cloud.dialogflow.v2beta1.IGetFulfillmentRequest): Promise<google.cloud.dialogflow.v2beta1.Fulfillment>;Calls GetFulfillment.
| Name | Description |
| request |
google.cloud.dialogflow.v2beta1.IGetFulfillmentRequest
GetFulfillmentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
updateFulfillment(request)
public updateFulfillment(request: google.cloud.dialogflow.v2beta1.IUpdateFulfillmentRequest): Promise<google.cloud.dialogflow.v2beta1.Fulfillment>;Calls UpdateFulfillment.
| Name | Description |
| request |
google.cloud.dialogflow.v2beta1.IUpdateFulfillmentRequest
UpdateFulfillmentRequest message or plain object |
| Type | Description |
| Promise<google.cloud.dialogflow.v2beta1.Fulfillment> | Promise |