Class protos.google.cloud.dialogflow.v2.ConversationDatasets (5.6.0)

Represents a ConversationDatasets

Inheritance

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

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ConversationDatasets service.

Parameters
NameDescription
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): ConversationDatasets;

Creates new ConversationDatasets 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
ConversationDatasets

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

createConversationDataset(request, callback)

public createConversationDataset(request: google.cloud.dialogflow.v2.ICreateConversationDatasetRequest, callback: google.cloud.dialogflow.v2.ConversationDatasets.CreateConversationDatasetCallback): void;

Calls CreateConversationDataset.

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

CreateConversationDatasetRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationDatasets.CreateConversationDatasetCallback

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

Returns
TypeDescription
void

createConversationDataset(request)

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

Calls CreateConversationDataset.

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

CreateConversationDatasetRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteConversationDataset(request, callback)

public deleteConversationDataset(request: google.cloud.dialogflow.v2.IDeleteConversationDatasetRequest, callback: google.cloud.dialogflow.v2.ConversationDatasets.DeleteConversationDatasetCallback): void;

Calls DeleteConversationDataset.

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

DeleteConversationDatasetRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationDatasets.DeleteConversationDatasetCallback

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

Returns
TypeDescription
void

deleteConversationDataset(request)

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

Calls DeleteConversationDataset.

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

DeleteConversationDatasetRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getConversationDataset(request, callback)

public getConversationDataset(request: google.cloud.dialogflow.v2.IGetConversationDatasetRequest, callback: google.cloud.dialogflow.v2.ConversationDatasets.GetConversationDatasetCallback): void;

Calls GetConversationDataset.

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

GetConversationDatasetRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationDatasets.GetConversationDatasetCallback

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

Returns
TypeDescription
void

getConversationDataset(request)

public getConversationDataset(request: google.cloud.dialogflow.v2.IGetConversationDatasetRequest): Promise<google.cloud.dialogflow.v2.ConversationDataset>;

Calls GetConversationDataset.

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

GetConversationDatasetRequest message or plain object

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

Promise

importConversationData(request, callback)

public importConversationData(request: google.cloud.dialogflow.v2.IImportConversationDataRequest, callback: google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationDataCallback): void;

Calls ImportConversationData.

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

ImportConversationDataRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationDataCallback

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

Returns
TypeDescription
void

importConversationData(request)

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

Calls ImportConversationData.

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

ImportConversationDataRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listConversationDatasets(request, callback)

public listConversationDatasets(request: google.cloud.dialogflow.v2.IListConversationDatasetsRequest, callback: google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasetsCallback): void;

Calls ListConversationDatasets.

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

ListConversationDatasetsRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasetsCallback

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

Returns
TypeDescription
void

listConversationDatasets(request)

public listConversationDatasets(request: google.cloud.dialogflow.v2.IListConversationDatasetsRequest): Promise<google.cloud.dialogflow.v2.ListConversationDatasetsResponse>;

Calls ListConversationDatasets.

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

ListConversationDatasetsRequest message or plain object

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

Promise