ConversationDatasets

google.cloud.dialogflow.v2. ConversationDatasets

Represents a ConversationDatasets

Constructor

new ConversationDatasets(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ConversationDatasets service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createConversationDataset(request, callback) → {undefined}

Calls CreateConversationDataset.

Parameters:
Name Type Description
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:
Type Description
undefined

createConversationDataset(request) → {Promise.<google.longrunning.Operation>}

Calls CreateConversationDataset.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICreateConversationDatasetRequest

CreateConversationDatasetRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteConversationDataset(request, callback) → {undefined}

Calls DeleteConversationDataset.

Parameters:
Name Type Description
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:
Type Description
undefined

deleteConversationDataset(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteConversationDataset.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IDeleteConversationDatasetRequest

DeleteConversationDatasetRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

getConversationDataset(request, callback) → {undefined}

Calls GetConversationDataset.

Parameters:
Name Type Description
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:
Type Description
undefined

getConversationDataset(request) → {Promise.<google.cloud.dialogflow.v2.ConversationDataset>}

Calls GetConversationDataset.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IGetConversationDatasetRequest

GetConversationDatasetRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.ConversationDataset>

Promise

importConversationData(request, callback) → {undefined}

Calls ImportConversationData.

Parameters:
Name Type Description
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:
Type Description
undefined

importConversationData(request) → {Promise.<google.longrunning.Operation>}

Calls ImportConversationData.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IImportConversationDataRequest

ImportConversationDataRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

listConversationDatasets(request, callback) → {undefined}

Calls ListConversationDatasets.

Parameters:
Name Type Description
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:
Type Description
undefined

listConversationDatasets(request) → {Promise.<google.cloud.dialogflow.v2.ListConversationDatasetsResponse>}

Calls ListConversationDatasets.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListConversationDatasetsRequest

ListConversationDatasetsRequest message or plain object

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

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {ConversationDatasets}

Creates new ConversationDatasets service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
ConversationDatasets

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

Type Definitions

CreateConversationDatasetCallback(error, responseopt)

Callback as used by createConversationDataset.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteConversationDatasetCallback(error, responseopt)

Callback as used by deleteConversationDataset.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetConversationDatasetCallback(error, responseopt)

Callback as used by getConversationDataset.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ConversationDataset <optional>

ConversationDataset

ImportConversationDataCallback(error, responseopt)

Callback as used by importConversationData.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

ListConversationDatasetsCallback(error, responseopt)

Callback as used by listConversationDatasets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ListConversationDatasetsResponse <optional>

ListConversationDatasetsResponse