Constructor
new Generators(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Generators 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
createGenerator(request, callback) → {undefined}
Calls CreateGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.ICreateGeneratorRequest |
CreateGeneratorRequest message or plain object |
callback |
google.cloud.dialogflow.v2.Generators.CreateGeneratorCallback |
Node-style callback called with the error, if any, and Generator |
Returns:
Type | Description |
---|---|
undefined |
createGenerator(request) → {Promise.<google.cloud.dialogflow.v2.Generator>}
Calls CreateGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.ICreateGeneratorRequest |
CreateGeneratorRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2.Generator> |
Promise |
deleteGenerator(request, callback) → {undefined}
Calls DeleteGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IDeleteGeneratorRequest |
DeleteGeneratorRequest message or plain object |
callback |
google.cloud.dialogflow.v2.Generators.DeleteGeneratorCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteGenerator(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IDeleteGeneratorRequest |
DeleteGeneratorRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getGenerator(request, callback) → {undefined}
Calls GetGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IGetGeneratorRequest |
GetGeneratorRequest message or plain object |
callback |
google.cloud.dialogflow.v2.Generators.GetGeneratorCallback |
Node-style callback called with the error, if any, and Generator |
Returns:
Type | Description |
---|---|
undefined |
getGenerator(request) → {Promise.<google.cloud.dialogflow.v2.Generator>}
Calls GetGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IGetGeneratorRequest |
GetGeneratorRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2.Generator> |
Promise |
listGenerators(request, callback) → {undefined}
Calls ListGenerators.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IListGeneratorsRequest |
ListGeneratorsRequest message or plain object |
callback |
google.cloud.dialogflow.v2.Generators.ListGeneratorsCallback |
Node-style callback called with the error, if any, and ListGeneratorsResponse |
Returns:
Type | Description |
---|---|
undefined |
listGenerators(request) → {Promise.<google.cloud.dialogflow.v2.ListGeneratorsResponse>}
Calls ListGenerators.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IListGeneratorsRequest |
ListGeneratorsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2.ListGeneratorsResponse> |
Promise |
updateGenerator(request, callback) → {undefined}
Calls UpdateGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IUpdateGeneratorRequest |
UpdateGeneratorRequest message or plain object |
callback |
google.cloud.dialogflow.v2.Generators.UpdateGeneratorCallback |
Node-style callback called with the error, if any, and Generator |
Returns:
Type | Description |
---|---|
undefined |
updateGenerator(request) → {Promise.<google.cloud.dialogflow.v2.Generator>}
Calls UpdateGenerator.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2.IUpdateGeneratorRequest |
UpdateGeneratorRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2.Generator> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Generators}
Creates new Generators 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 |
---|---|
Generators |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateGeneratorCallback(error, responseopt)
Callback as used by createGenerator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2.Generator |
<optional> |
Generator |
DeleteGeneratorCallback(error, responseopt)
Callback as used by deleteGenerator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetGeneratorCallback(error, responseopt)
Callback as used by getGenerator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2.Generator |
<optional> |
Generator |
ListGeneratorsCallback(error, responseopt)
Callback as used by listGenerators.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2.ListGeneratorsResponse |
<optional> |
ListGeneratorsResponse |
UpdateGeneratorCallback(error, responseopt)
Callback as used by updateGenerator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2.Generator |
<optional> |
Generator |