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