Class protos.google.cloud.dialogflow.v2.Intents

Represents an Intents

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Intents

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Intents service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

batchDeleteIntents(request, callback)

public batchDeleteIntents(request: google.cloud.dialogflow.v2.IBatchDeleteIntentsRequest, callback: google.cloud.dialogflow.v2.Intents.BatchDeleteIntentsCallback): void;

Calls BatchDeleteIntents.

Parameters
NameDescription
request IBatchDeleteIntentsRequest

BatchDeleteIntentsRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.BatchDeleteIntentsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

batchDeleteIntents(request)

public batchDeleteIntents(request: google.cloud.dialogflow.v2.IBatchDeleteIntentsRequest): Promise<google.longrunning.Operation>;

Calls BatchDeleteIntents.

Parameter
NameDescription
request IBatchDeleteIntentsRequest

BatchDeleteIntentsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

batchUpdateIntents(request, callback)

public batchUpdateIntents(request: google.cloud.dialogflow.v2.IBatchUpdateIntentsRequest, callback: google.cloud.dialogflow.v2.Intents.BatchUpdateIntentsCallback): void;

Calls BatchUpdateIntents.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IBatchUpdateIntentsRequest

BatchUpdateIntentsRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.BatchUpdateIntentsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

batchUpdateIntents(request)

public batchUpdateIntents(request: google.cloud.dialogflow.v2.IBatchUpdateIntentsRequest): Promise<google.longrunning.Operation>;

Calls BatchUpdateIntents.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IBatchUpdateIntentsRequest

BatchUpdateIntentsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Intents

RPC service. Useful where requests and/or responses are streamed.

createIntent(request, callback)

public createIntent(request: google.cloud.dialogflow.v2.ICreateIntentRequest, callback: google.cloud.dialogflow.v2.Intents.CreateIntentCallback): void;

Calls CreateIntent.

Parameters
NameDescription
request ICreateIntentRequest

CreateIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.CreateIntentCallback

Node-style callback called with the error, if any, and Intent

Returns
TypeDescription
void

createIntent(request)

public createIntent(request: google.cloud.dialogflow.v2.ICreateIntentRequest): Promise<google.cloud.dialogflow.v2.Intent>;

Calls CreateIntent.

Parameter
NameDescription
request ICreateIntentRequest

CreateIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Intent>

Promise

deleteIntent(request, callback)

public deleteIntent(request: google.cloud.dialogflow.v2.IDeleteIntentRequest, callback: google.cloud.dialogflow.v2.Intents.DeleteIntentCallback): void;

Calls DeleteIntent.

Parameters
NameDescription
request IDeleteIntentRequest

DeleteIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.DeleteIntentCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteIntent(request)

public deleteIntent(request: google.cloud.dialogflow.v2.IDeleteIntentRequest): Promise<google.protobuf.Empty>;

Calls DeleteIntent.

Parameter
NameDescription
request IDeleteIntentRequest

DeleteIntentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getIntent(request, callback)

public getIntent(request: google.cloud.dialogflow.v2.IGetIntentRequest, callback: google.cloud.dialogflow.v2.Intents.GetIntentCallback): void;

Calls GetIntent.

Parameters
NameDescription
request IGetIntentRequest

GetIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.GetIntentCallback

Node-style callback called with the error, if any, and Intent

Returns
TypeDescription
void

getIntent(request)

public getIntent(request: google.cloud.dialogflow.v2.IGetIntentRequest): Promise<google.cloud.dialogflow.v2.Intent>;

Calls GetIntent.

Parameter
NameDescription
request IGetIntentRequest

GetIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Intent>

Promise

listIntents(request, callback)

public listIntents(request: google.cloud.dialogflow.v2.IListIntentsRequest, callback: google.cloud.dialogflow.v2.Intents.ListIntentsCallback): void;

Calls ListIntents.

Parameters
NameDescription
request IListIntentsRequest

ListIntentsRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.ListIntentsCallback

Node-style callback called with the error, if any, and ListIntentsResponse

Returns
TypeDescription
void

listIntents(request)

public listIntents(request: google.cloud.dialogflow.v2.IListIntentsRequest): Promise<google.cloud.dialogflow.v2.ListIntentsResponse>;

Calls ListIntents.

Parameter
NameDescription
request IListIntentsRequest

ListIntentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.ListIntentsResponse>

Promise

updateIntent(request, callback)

public updateIntent(request: google.cloud.dialogflow.v2.IUpdateIntentRequest, callback: google.cloud.dialogflow.v2.Intents.UpdateIntentCallback): void;

Calls UpdateIntent.

Parameters
NameDescription
request IUpdateIntentRequest

UpdateIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.UpdateIntentCallback

Node-style callback called with the error, if any, and Intent

Returns
TypeDescription
void

updateIntent(request)

public updateIntent(request: google.cloud.dialogflow.v2.IUpdateIntentRequest): Promise<google.cloud.dialogflow.v2.Intent>;

Calls UpdateIntent.

Parameter
NameDescription
request IUpdateIntentRequest

UpdateIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Intent>

Promise