Constructor
new Fulfillments(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Fulfillments service.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Extends
- $protobuf.rpc.Service
Methods
getFulfillment(request, callback) → {undefined}
Calls GetFulfillment.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.v2.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:
| Type | Description | 
|---|---|
| undefined | 
getFulfillment(request) → {Promise.<google.cloud.dialogflow.v2.Fulfillment>}
Calls GetFulfillment.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.v2.IGetFulfillmentRequest | GetFulfillmentRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.v2.Fulfillment> | Promise | 
updateFulfillment(request, callback) → {undefined}
Calls UpdateFulfillment.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
updateFulfillment(request) → {Promise.<google.cloud.dialogflow.v2.Fulfillment>}
Calls UpdateFulfillment.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.v2.IUpdateFulfillmentRequest | UpdateFulfillmentRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.v2.Fulfillment> | Promise | 
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Fulfillments}
Creates new Fulfillments service using the specified rpc implementation.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Returns:
| Type | Description | 
|---|---|
| Fulfillments | RPC service. Useful where requests and/or responses are streamed. | 
Type Definitions
GetFulfillmentCallback(error, responseopt)
Callback as used by getFulfillment.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.v2.Fulfillment | <optional> | Fulfillment | 
UpdateFulfillmentCallback(error, responseopt)
Callback as used by updateFulfillment.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.v2.Fulfillment | <optional> | Fulfillment |