Class protos.google.cloud.dialogflow.v2.ConversationDatasets (6.13.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
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): ConversationDatasets;

Creates new ConversationDatasets 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
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
Name Description
request ICreateConversationDatasetRequest

CreateConversationDatasetRequest message or plain object

callback CreateConversationDatasetCallback

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

Returns
Type Description
void

createConversationDataset(request)

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

Calls CreateConversationDataset.

Parameter
Name Description
request ICreateConversationDatasetRequest

CreateConversationDatasetRequest message or plain object

Returns
Type Description
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
Name Description
request IDeleteConversationDatasetRequest

DeleteConversationDatasetRequest message or plain object

callback DeleteConversationDatasetCallback

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

Returns
Type Description
void

deleteConversationDataset(request)

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

Calls DeleteConversationDataset.

Parameter
Name Description
request IDeleteConversationDatasetRequest

DeleteConversationDatasetRequest message or plain object

Returns
Type Description
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
Name Description
request IGetConversationDatasetRequest

GetConversationDatasetRequest message or plain object

callback GetConversationDatasetCallback

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

Returns
Type Description
void

getConversationDataset(request)

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

Calls GetConversationDataset.

Parameter
Name Description
request IGetConversationDatasetRequest

GetConversationDatasetRequest message or plain object

Returns
Type Description
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
Name Description
request IImportConversationDataRequest

ImportConversationDataRequest message or plain object

callback ImportConversationDataCallback

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

Returns
Type Description
void

importConversationData(request)

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

Calls ImportConversationData.

Parameter
Name Description
request IImportConversationDataRequest

ImportConversationDataRequest message or plain object

Returns
Type Description
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
Name Description
request IListConversationDatasetsRequest

ListConversationDatasetsRequest message or plain object

callback ListConversationDatasetsCallback

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

Returns
Type Description
void

listConversationDatasets(request)

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

Calls ListConversationDatasets.

Parameter
Name Description
request IListConversationDatasetsRequest

ListConversationDatasetsRequest message or plain object

Returns
Type Description
Promise<google.cloud.dialogflow.v2.ListConversationDatasetsResponse>

Promise