Represents a Generators
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.GeneratorsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Generators 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): Generators;Creates new Generators 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 |
Generators |
RPC service. Useful where requests and/or responses are streamed. |
createGenerator(request, callback)
public createGenerator(request: google.cloud.dialogflow.cx.v3.ICreateGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.CreateGeneratorCallback): void;Calls CreateGenerator.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGeneratorRequest
CreateGeneratorRequest message or plain object |
callback |
CreateGeneratorCallback
Node-style callback called with the error, if any, and Generator |
| Returns | |
|---|---|
| Type | Description |
void |
|
createGenerator(request)
public createGenerator(request: google.cloud.dialogflow.cx.v3.ICreateGeneratorRequest): Promise<google.cloud.dialogflow.cx.v3.Generator>;Calls CreateGenerator.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateGeneratorRequest
CreateGeneratorRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Generator> |
Promise |
deleteGenerator(request, callback)
public deleteGenerator(request: google.cloud.dialogflow.cx.v3.IDeleteGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.DeleteGeneratorCallback): void;Calls DeleteGenerator.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGeneratorRequest
DeleteGeneratorRequest message or plain object |
callback |
DeleteGeneratorCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteGenerator(request)
public deleteGenerator(request: google.cloud.dialogflow.cx.v3.IDeleteGeneratorRequest): Promise<google.protobuf.Empty>;Calls DeleteGenerator.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteGeneratorRequest
DeleteGeneratorRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getGenerator(request, callback)
public getGenerator(request: google.cloud.dialogflow.cx.v3.IGetGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.GetGeneratorCallback): void;Calls GetGenerator.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetGeneratorRequest
GetGeneratorRequest message or plain object |
callback |
GetGeneratorCallback
Node-style callback called with the error, if any, and Generator |
| Returns | |
|---|---|
| Type | Description |
void |
|
getGenerator(request)
public getGenerator(request: google.cloud.dialogflow.cx.v3.IGetGeneratorRequest): Promise<google.cloud.dialogflow.cx.v3.Generator>;Calls GetGenerator.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetGeneratorRequest
GetGeneratorRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Generator> |
Promise |
listGenerators(request, callback)
public listGenerators(request: google.cloud.dialogflow.cx.v3.IListGeneratorsRequest, callback: google.cloud.dialogflow.cx.v3.Generators.ListGeneratorsCallback): void;Calls ListGenerators.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGeneratorsRequest
ListGeneratorsRequest message or plain object |
callback |
ListGeneratorsCallback
Node-style callback called with the error, if any, and ListGeneratorsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listGenerators(request)
public listGenerators(request: google.cloud.dialogflow.cx.v3.IListGeneratorsRequest): Promise<google.cloud.dialogflow.cx.v3.ListGeneratorsResponse>;Calls ListGenerators.
| Parameter | |
|---|---|
| Name | Description |
request |
IListGeneratorsRequest
ListGeneratorsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.ListGeneratorsResponse> |
Promise |
updateGenerator(request, callback)
public updateGenerator(request: google.cloud.dialogflow.cx.v3.IUpdateGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.UpdateGeneratorCallback): void;Calls UpdateGenerator.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGeneratorRequest
UpdateGeneratorRequest message or plain object |
callback |
UpdateGeneratorCallback
Node-style callback called with the error, if any, and Generator |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGenerator(request)
public updateGenerator(request: google.cloud.dialogflow.cx.v3.IUpdateGeneratorRequest): Promise<google.cloud.dialogflow.cx.v3.Generator>;Calls UpdateGenerator.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateGeneratorRequest
UpdateGeneratorRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Generator> |
Promise |