Represents an Intents
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.IntentsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Intents 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): Intents;Creates new Intents 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 |
Intents |
RPC service. Useful where requests and/or responses are streamed. |
createIntent(request, callback)
public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback): void;Calls CreateIntent.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateIntentRequest
CreateIntentRequest message or plain object |
callback |
CreateIntentCallback
Node-style callback called with the error, if any, and Intent |
| Returns | |
|---|---|
| Type | Description |
void |
|
createIntent(request)
public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): Promise<google.cloud.dialogflow.cx.v3.Intent>;Calls CreateIntent.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateIntentRequest
CreateIntentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Intent> |
Promise |
deleteIntent(request, callback)
public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback): void;Calls DeleteIntent.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteIntentRequest
DeleteIntentRequest message or plain object |
callback |
DeleteIntentCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteIntent(request)
public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise<google.protobuf.Empty>;Calls DeleteIntent.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteIntentRequest
DeleteIntentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
exportIntents(request, callback)
public exportIntents(request: google.cloud.dialogflow.cx.v3.IExportIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ExportIntentsCallback): void;Calls ExportIntents.
| Parameters | |
|---|---|
| Name | Description |
request |
IExportIntentsRequest
ExportIntentsRequest message or plain object |
callback |
ExportIntentsCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
exportIntents(request)
public exportIntents(request: google.cloud.dialogflow.cx.v3.IExportIntentsRequest): Promise<google.longrunning.Operation>;Calls ExportIntents.
| Parameter | |
|---|---|
| Name | Description |
request |
IExportIntentsRequest
ExportIntentsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> |
Promise |
getIntent(request, callback)
public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback): void;Calls GetIntent.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetIntentRequest
GetIntentRequest message or plain object |
callback |
GetIntentCallback
Node-style callback called with the error, if any, and Intent |
| Returns | |
|---|---|
| Type | Description |
void |
|
getIntent(request)
public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest): Promise<google.cloud.dialogflow.cx.v3.Intent>;Calls GetIntent.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetIntentRequest
GetIntentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Intent> |
Promise |
importIntents(request, callback)
public importIntents(request: google.cloud.dialogflow.cx.v3.IImportIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ImportIntentsCallback): void;Calls ImportIntents.
| Parameters | |
|---|---|
| Name | Description |
request |
IImportIntentsRequest
ImportIntentsRequest message or plain object |
callback |
ImportIntentsCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
importIntents(request)
public importIntents(request: google.cloud.dialogflow.cx.v3.IImportIntentsRequest): Promise<google.longrunning.Operation>;Calls ImportIntents.
| Parameter | |
|---|---|
| Name | Description |
request |
IImportIntentsRequest
ImportIntentsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> |
Promise |
listIntents(request, callback)
public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback): void;Calls ListIntents.
| Parameters | |
|---|---|
| Name | Description |
request |
IListIntentsRequest
ListIntentsRequest message or plain object |
callback |
ListIntentsCallback
Node-style callback called with the error, if any, and ListIntentsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listIntents(request)
public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest): Promise<google.cloud.dialogflow.cx.v3.ListIntentsResponse>;Calls ListIntents.
| Parameter | |
|---|---|
| Name | Description |
request |
IListIntentsRequest
ListIntentsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.ListIntentsResponse> |
Promise |
updateIntent(request, callback)
public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback): void;Calls UpdateIntent.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateIntentRequest
UpdateIntentRequest message or plain object |
callback |
UpdateIntentCallback
Node-style callback called with the error, if any, and Intent |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateIntent(request)
public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): Promise<google.cloud.dialogflow.cx.v3.Intent>;Calls UpdateIntent.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateIntentRequest
UpdateIntentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Intent> |
Promise |