KnowledgeBases

google.cloud.dialogflow.v2beta1. KnowledgeBases

Represents a KnowledgeBases

Constructor

new KnowledgeBases(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new KnowledgeBases 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

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

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

createKnowledgeBase(request, callback) → {undefined}

Calls CreateKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.ICreateKnowledgeBaseRequest

CreateKnowledgeBaseRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBaseCallback

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

createKnowledgeBase(request) → {Promise.<google.cloud.dialogflow.v2beta1.KnowledgeBase>}

Calls CreateKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.ICreateKnowledgeBaseRequest

CreateKnowledgeBaseRequest message or plain object

deleteKnowledgeBase(request, callback) → {undefined}

Calls DeleteKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IDeleteKnowledgeBaseRequest

DeleteKnowledgeBaseRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBaseCallback

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

deleteKnowledgeBase(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IDeleteKnowledgeBaseRequest

DeleteKnowledgeBaseRequest message or plain object

getKnowledgeBase(request, callback) → {undefined}

Calls GetKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IGetKnowledgeBaseRequest

GetKnowledgeBaseRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBaseCallback

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

getKnowledgeBase(request) → {Promise.<google.cloud.dialogflow.v2beta1.KnowledgeBase>}

Calls GetKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IGetKnowledgeBaseRequest

GetKnowledgeBaseRequest message or plain object

listKnowledgeBases(request, callback) → {undefined}

Calls ListKnowledgeBases.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IListKnowledgeBasesRequest

ListKnowledgeBasesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBasesCallback

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

listKnowledgeBases(request) → {Promise.<google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse>}

Calls ListKnowledgeBases.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IListKnowledgeBasesRequest

ListKnowledgeBasesRequest message or plain object

updateKnowledgeBase(request, callback) → {undefined}

Calls UpdateKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IUpdateKnowledgeBaseRequest

UpdateKnowledgeBaseRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBaseCallback

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

updateKnowledgeBase(request) → {Promise.<google.cloud.dialogflow.v2beta1.KnowledgeBase>}

Calls UpdateKnowledgeBase.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IUpdateKnowledgeBaseRequest

UpdateKnowledgeBaseRequest message or plain object

Type Definitions

CreateKnowledgeBaseCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.KnowledgeBases#createKnowledgeBase.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.KnowledgeBase <optional>

KnowledgeBase

DeleteKnowledgeBaseCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.KnowledgeBases#deleteKnowledgeBase.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetKnowledgeBaseCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.KnowledgeBases#getKnowledgeBase.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.KnowledgeBase <optional>

KnowledgeBase

ListKnowledgeBasesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.KnowledgeBases#listKnowledgeBases.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse <optional>

ListKnowledgeBasesResponse

UpdateKnowledgeBaseCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.KnowledgeBases#updateKnowledgeBase.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.KnowledgeBase <optional>

KnowledgeBase